/* achievements.css — 成就面板样式（独立成文件，因为 index.html / end.html / shared.html 都要用）
 *
 * 面板结构：
 *   .ach-panel
 *     .ach-head / .ach-sub        标题与跨局累计说明
 *     .ach-tabs > .ach-tab        两栏 Tab（🏅 成就 / ❓ 隐藏成就）
 *     .ach-section                每一栏（内含 .ach-cats / .ach-group-title / .ach-grid）
 *     .ach-foot                   档案说明 + 清空按钮
 * 卡片：.ach-card（外显 .ach-public / 隐藏 .ach-secret，已解锁 .ach-on）
 */

/* =========== 隐藏成就 =========== */
.ach-panel { margin-top: 6px; }
.ach-panel .ach-head { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 2px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ach-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  transition: .15s;
}
.ach-card .ach-title { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.ach-card .ach-desc { font-size: 12px; line-height: 1.6; }
.ach-card.ach-on {
  border: 1px solid rgba(245,158,11,0.55);
  background: linear-gradient(120deg, rgba(245,158,11,0.16), rgba(236,72,153,0.14));
  color: #92400e;
  box-shadow: 0 2px 10px rgba(245,158,11,0.15);
}

/* 跨局累计说明 + 底部档案区 */
.ach-panel .ach-sub {
  margin: -2px 0 10px;
  font-size: 12px;
  line-height: 1.7;
}
.ach-panel .ach-foot {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ach-panel .ach-foot code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: #475569;
}
.ach-panel .ach-reset {
  appearance: none;
  border: 1px solid #e5c0c0;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: .15s;
}
.ach-panel .ach-reset:hover { background: #fee2e2; border-color: #f0a8a8; }

/* 成就面板的两栏 Tab（🏅 成就 / ❓ 隐藏成就） */
.ach-panel .ach-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
  border-bottom: 1px solid #e5e9f0;
  padding-bottom: 0;
}
.ach-panel .ach-tab {
  appearance: none;
  border: 1px solid #dbe3ec;
  border-bottom: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: .15s;
}
.ach-panel .ach-tab:hover { color: #334155; background: #e8eef5; }
.ach-panel .ach-tab.ach-tab-on {
  background: #fff;
  color: #92400e;
  border-color: rgba(245,158,11,0.55);
  box-shadow: 0 -2px 8px rgba(245,158,11,0.10);
  position: relative;
  top: 1px;
}
.ach-panel .ach-tab .ach-tab-num {
  font-weight: 400;
  font-size: 11.5px;
  opacity: 0.75;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.ach-panel .ach-section { padding-top: 2px; }
.ach-panel .ach-section .ach-hint { margin-bottom: 10px; }

/* 外显成就：锁着也看得见名字，用实线边框区分于隐藏成就 */
.ach-card.ach-public {
  border-style: solid;
  border-color: #dbe3ec;
  background: #fff;
}
.ach-card.ach-public:not(.ach-on) .ach-title { color: #475569; }
.ach-card.ach-public:not(.ach-on) .ach-progress-bar {
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
}
.ach-card.ach-public.ach-on {
  border: 1px solid rgba(59,130,246,0.5);
  background: linear-gradient(120deg, rgba(59,130,246,0.14), rgba(16,185,129,0.12));
  color: #1e40af;
}
.ach-card.ach-public.ach-on .ach-title { color: #1e40af; }

/* 成就分类总览（一行小胶囊） */
.ach-panel .ach-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ach-panel .ach-cat-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #dbe3ec;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.ach-panel .ach-cat-chip.ach-cat-done {
  border-color: rgba(245,158,11,0.6);
  background: linear-gradient(120deg, rgba(245,158,11,0.20), rgba(236,72,153,0.18));
  color: #92400e;
  font-weight: 600;
}

/* 分类标题 */
.ach-panel .ach-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 14px 0 8px;
  padding-left: 8px;
  border-left: 3px solid rgba(245,158,11,0.7);
}
.ach-panel .ach-group-title .muted { font-weight: 400; }

/* 未解锁成就的进度条 */
.ach-card .ach-progress {
  margin-top: 8px;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.ach-card .ach-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #94a3b8, #64748b);
  transition: width .25s ease;
}
.ach-card .ach-progress-text {
  margin-top: 3px;
  font-size: 11px;
  text-align: right;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
