/* v304 数据中心：紧凑筛选时间线 */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.data-center-view.data-center-view {
  width: min(100%, 860px);
  padding-bottom: 120px;
}

.data-center-hero {
  display: block;
  margin: 0 0 22px;
}

.data-center-hero h1 {
  color: #101a34;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
  text-align: left;
}

.data-center-primary-tools {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}

.data-center-primary-tools .data-center-search {
  margin: 0;
}

.data-center-search > svg {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: #6f7b79;
  pointer-events: none;
  transform: translateY(-50%);
}

.data-center-search .table-search {
  min-height: 48px;
  padding: 0 22px 0 54px;
  border-radius: 22px;
  font-size: 16px;
}

.data-center-filter-menu {
  position: relative;
}

.data-center-filter-menu > summary {
  display: inline-flex;
  min-width: 98px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #73aa7f;
  border-radius: 22px;
  color: #fff;
  background: #4f9d62;
  box-shadow: 0 10px 24px rgba(43, 117, 64, .2);
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.data-center-filter-menu > summary::-webkit-details-marker { display: none; }
.data-center-filter-menu > summary svg { width: 18px; height: 18px; }
.data-center-filter-menu > summary b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #28783f;
  background: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.data-center-filter-menu > summary:active { background: #438a55; }
.data-center-filter-menu > summary:focus-visible { outline: 3px solid rgba(84, 66, 220, .28); outline-offset: 3px; }

.data-center-filter-sheet {
  position: fixed;
  right: 0;
  bottom: calc(clamp(68px, 13.05vw, 167px) + env(safe-area-inset-bottom));
  left: 0;
  z-index: 950;
  display: grid;
  width: min(calc(100% - 20px), 540px);
  gap: 14px;
  margin: 0 auto;
  padding: 10px 16px 18px;
  border: 1px solid #dce7dd;
  border-radius: 26px 26px 18px 18px;
  background: rgba(248, 251, 248, .985);
  box-shadow: 0 -18px 54px rgba(18, 52, 31, .24);
}

.data-center-filter-handle {
  width: 44px;
  height: 5px;
  justify-self: center;
  border-radius: 999px;
  background: #c7d2c9;
}

.data-center-filter-sheet > header {
  display: grid;
  gap: 3px;
  text-align: center;
}
.data-center-filter-sheet > header strong { color: #13213a; font-size: 19px; }
.data-center-filter-sheet > header small { color: #6a7689; font-size: 12px; }

.data-center-panel .data-center-filter-sheet .data-center-date-tools {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.data-center-panel .data-center-filter-sheet .data-center-date-left {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-center-filter-sheet .data-center-date-left label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #59667a;
  font-size: 12px;
  font-weight: 750;
}

.data-center-panel .data-center-filter-sheet .data-center-date-left select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 30px 0 12px;
  border: 1px solid #dbe4dc;
  border-radius: 14px;
  color: #16213a;
  background-color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.data-center-filter-sheet .data-center-more-menu {
  width: 100%;
}
.data-center-filter-sheet .data-center-more-menu > summary {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  color: #315b41;
  background: #edf6ef;
  box-shadow: none;
}
.data-center-filter-sheet .data-center-more-menu > div {
  position: static;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
}

.data-center-filter-done {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #25874d;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
}
.data-center-filter-done:active { background: #1e7542; }
.data-center-filter-done:focus-visible { outline: 3px solid rgba(84, 66, 220, .28); outline-offset: 2px; }

.data-center-panel .data-center-tabs {
  gap: 8px;
  margin-bottom: 18px;
}

.data-center-panel .data-center-tabs button {
  min-height: 48px;
  padding-inline: 4px;
  border-radius: 17px;
  font-size: 14px;
  touch-action: manipulation;
}

.data-center-timeline { gap: 10px; }

.data-center-day-group {
  position: relative;
  overflow: hidden;
  padding-left: 0;
  border: 1px solid rgba(224, 233, 226, .98);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(37, 72, 47, .065);
}

.data-center-day-group::before {
  top: 29px;
  bottom: 22px;
  left: 23px;
  z-index: 1;
  background: #cfe2d4;
}
.data-center-day-group:last-child::before { bottom: 22px; }

.data-center-day-group > h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  border-bottom: 1px solid #edf1ed;
}
.data-center-day-group > h2::before { display: none; }
.data-center-day-group > h2 button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 0 44px;
  border: 0;
  color: #277a45;
  background: transparent;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  text-align: left;
}
.data-center-day-group > h2 button::before {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 12px;
  height: 12px;
  border: 2px solid #eff7f1;
  border-radius: 50%;
  background: #4a9d64;
  box-shadow: 0 0 0 1px #9ec8aa;
  content: "";
}
.data-center-day-group > h2 button > span { display: inline-flex; align-items: baseline; gap: 8px; }
.data-center-day-group > h2 button span span { margin: 0; font-size: 13px; }
.data-center-day-group > h2 button svg { width: 20px; height: 20px; transition: transform .18s ease; }
.data-center-day-group.collapsed > h2 button svg { transform: rotate(180deg); }
.data-center-day-group.collapsed .data-center-day-list { display: none; }
.data-center-day-group.collapsed::before { display: none; }

.data-center-day-list {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.data-center-timeline-row {
  position: relative;
  grid-template-columns: 54px 68px minmax(0, 1fr) auto 44px;
  min-height: 56px;
  gap: 9px;
  padding: 5px 10px 5px 44px;
}
.data-center-timeline-row::before {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #f5faf6;
  border-radius: 50%;
  background: #4a9d64;
  box-shadow: 0 0 0 1px #a7cdb1;
  content: "";
  transform: translateY(-50%);
}

.data-center-row-more svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .data-center-view.data-center-view { padding-inline: 10px; }
  .data-center-hero { margin-bottom: 16px; }
  .data-center-hero h1 { font-size: 30px; }
  .data-center-primary-tools { gap: 8px; margin-bottom: 14px; }
  .data-center-search .table-search { min-height: 48px; padding-left: 48px; border-radius: 18px; }
  .data-center-search > svg { left: 17px; width: 20px; height: 20px; }
  .data-center-filter-menu > summary { min-width: 98px; min-height: 48px; padding-inline: 9px; border-radius: 18px; font-size: 14px; }
  .data-center-panel .data-center-tabs { gap: 6px; margin-bottom: 15px; }
  .data-center-panel .data-center-tabs button { min-height: 46px; border-radius: 15px; font-size: 12px; }
  .data-center-day-group { border-radius: 19px; }
  .data-center-day-group::before { left: 18px; }
  .data-center-day-group > h2 button { min-height: 48px; padding: 0 14px 0 36px; font-size: 17px; }
  .data-center-day-group > h2 button::before { top: 17px; left: 13px; width: 10px; height: 10px; }
  .data-center-day-group > h2 button span span { font-size: 12px; }
  .data-center-timeline-row { grid-template-columns: 38px 48px minmax(0, 1fr) auto 36px; min-height: 56px; gap: 5px; padding: 5px 5px 5px 34px; }
  .data-center-timeline-row::before { left: 13px; width: 9px; height: 9px; }
  .data-center-timeline-row > time { font-size: 11px; }
  .data-center-category-badge { min-height: 28px; padding-inline: 6px; font-size: 10px; }
  .data-center-row-main b { font-size: 13px; }
  .data-center-row-main small { font-size: 10px; }
  .data-center-timeline-row > strong { font-size: 13px; }
  .data-center-row-more { width: 36px; height: 44px; }
}

@media (max-width: 390px) {
  .data-center-view.data-center-view { padding-inline: 6px; }
  .data-center-filter-menu > summary span { display: inline; }
  .data-center-filter-menu > summary { min-width: 98px; }
  .data-center-panel .data-center-tabs button { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .data-center-day-group > h2 button svg { transition: none; }
}
