/* 辅助还原原站字体与细节 */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.bg-brand-orange { background-color: #FFF3E0; } /* 还原 2029 卡片的浅橙色背景 */
.text-brand-orange { color: #E65100; } /* 还原 2029 数字颜色 */

/* ===== Year Toggle Button ===== */
.year-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.year-toggle-btn:hover {
  background: #e2e8f0;
}
.year-toggle-btn.active {
  background: #9dc3ff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.year-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.year-toggle-btn.active .year-dot {
  opacity: 1;
  background: #f59e0b;
}

/* ===== Stack Card ===== */
.stack-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}
.stack-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.stack-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.stack-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
}
.stack-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}
.stack-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}
.stack-tag-max {
  background: #dcfce7;
  color: #16a34a;
}
.stack-tag-min {
  background: #fee2e2;
  color: #dc2626;
}
.stack-val {
  font-size: 0.85rem;
  min-width: 52px;
}
.stack-date {
  font-size: 0.75rem;
}
.stack-detail {
  font-size: 0.72rem;
  margin-left: 2.4rem;
  margin-top: 0.15rem;
}

/* hidden helper */
.hidden-card {
  display: none !important;
}