/* 档案页 */
/* 站内“苹方”实际是版权改名后的 MinxTok Sans（minxtok-cjk.woff2） */
.arch-wrap,
.arch-wrap * {
  font-family: "MinxTok Sans", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", sans-serif !important;
}
#pageBody .arch-hero {
  padding: 2px 2px 16px;
}
.arch-kicker {
  color: var(--muted);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.arch-hero h1 {
  margin: 12px 0 8px;
  font-family: var(--font-title);
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 650;
  letter-spacing: -.04em;
}
.arch-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.arch-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 22px;
}
.arch-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--text);
  text-align: left;
  font-family: var(--font);
}
.arch-stat:active { transform: scale(.975); }
.arch-stat-label { color: var(--muted); font-size: 11px; }
.arch-stat b {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.03em;
}
.arch-stat small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.arch-section {
  margin: 0 0 18px;
  padding: 16px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-2) 56%, transparent);
}
.arch-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.arch-sec-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -.02em;
}
.arch-sec-head span { color: var(--muted); font-size: 10px; }
.arch-summary {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}
.arch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-chips span {
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted);
  font-size: 10px;
}
.arch-chips .muted { color: var(--muted); opacity: .75; }
.arch-chart {
  display: flex;
  align-items: stretch;
  gap: 7px;
  height: 150px;
  padding-top: 8px;
}
.arch-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
}
.arch-bar-track {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.arch-bar-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  border-radius: 7px;
  background: color-mix(in srgb, var(--text) 28%, transparent);
  transition: height .4s cubic-bezier(.2,.8,.2,1), background .2s;
}
.arch-bar.good .arch-bar-track i { background: linear-gradient(180deg, #98d6b0, #5fae83); }
.arch-bar.mid .arch-bar-track i { background: linear-gradient(180deg, #d9c98b, #b6a45b); }
.arch-bar.low .arch-bar-track i { background: linear-gradient(180deg, #c9a0a0, #a87575); }
.arch-bar.empty .arch-bar-track i { background: color-mix(in srgb, var(--text) 14%, transparent); }
.arch-bar-label { font-size: 9px; text-align: center; white-space: nowrap; }
.arch-bar.on .arch-bar-track { outline: 1px solid color-mix(in srgb, var(--text) 32%, transparent); outline-offset: 2px; }
.arch-bar.on .arch-bar-label { color: var(--text); font-weight: 650; }
.arch-detail {
  min-height: 86px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  transition: opacity .16s ease, filter .16s ease, transform .16s ease;
}
.arch-detail.switching {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(4px);
}
.arch-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.arch-detail-head b { font-size: 13px; }
.arch-detail-head span { color: var(--muted); font-size: 10px; text-align: right; }
.arch-emo-row {
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 10px;
}
.arch-emo-row > i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.arch-emo-row > i b { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--text) 38%, transparent); }
.arch-emo-row em { font-style: normal; text-align: right; }
.arch-detail-empty { color: var(--muted); font-size: 12px; line-height: 1.6; }
.arch-recent { display: flex; flex-direction: column; gap: 2px; }
.arch-recent-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
}
.arch-recent-row:last-child { border-bottom: 0; }
.arch-mode { color: var(--muted); font-size: 10px; }
.arch-recent-row b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arch-recent-row small { color: var(--muted); font-size: 10px; }
.arch-error { padding: 40px 16px; color: var(--muted); text-align: center; font-size: 13px; }

/* 骨架：和页面其他骨架同一套呼吸节奏 */
.arch-skel-line,
.arch-skel-card,
.arch-skel-chart,
.arch-skel-section {
  border-radius: 18px;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--text) 5%, transparent) 20%,
    color-mix(in srgb, var(--text) 11%, transparent) 38%,
    color-mix(in srgb, var(--text) 5%, transparent) 56%);
  background-size: 220% 100%;
  animation: archShimmer 1.35s ease-in-out infinite;
}
.arch-skel-line { height: 13px; margin: 3px 0 16px; border-radius: 99px; }
.arch-skel-line.w58 { width: 58%; }
.arch-skel-line.w42 { width: 42%; }
.arch-skel-line.w34 { width: 34%; }
.arch-skel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.arch-skel-card { height: 104px; padding: 14px; }
.arch-skel-card i,
.arch-skel-card b,
.arch-skel-card em {
  display: block;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.arch-skel-card i { width: 38%; height: 10px; }
.arch-skel-card b { width: 42%; height: 26px; margin-top: 12px; }
.arch-skel-card em { width: 58%; height: 9px; margin-top: 9px; }
.arch-skel-section { height: 198px; padding: 16px 14px; margin-bottom: 18px; }
.arch-skel-section .arch-skel-line { background: transparent; animation: none; }
.arch-skel-chart { height: 122px; margin-top: 14px; border-radius: 12px; }
.arch-skel-chart.short { height: 98px; }
@keyframes archShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@media (max-width: 360px) {
  .arch-stats { gap: 8px; }
  .arch-stat { min-height: 96px; padding: 11px; }
  .arch-stat b { font-size: 26px; }
  .arch-chart { gap: 5px; }
}
