/* IA V2.2 C1.7A — 练习中心：一屏工具页 + 错题档案表 */

.site-body--practice-center {
  --pc-ink: #2a1c12;
  --pc-muted: rgba(62, 36, 18, 0.58);
  --pc-accent: #f58220;
}

.site-body--practice-center .site-bg::before,
.site-body--practice-center.site-bg-tier--explore .site-bg::before {
  opacity: 0.16 !important;
  filter: blur(26px) saturate(0.88) brightness(1.05);
}

.site-body--practice-center .site-scrim {
  background: linear-gradient(
    115deg,
    rgba(255, 250, 244, 0.78) 0%,
    rgba(255, 248, 242, 0.38) 48%,
    rgba(255, 248, 242, 0.12) 100%
  ) !important;
}

.site-body--practice-center .student-page {
  color: var(--pc-ink);
}

/* 一屏：表格区内部滚动 */
.page--practice-center.page,
.page--practice-center {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.site-body--practice-center .student-page--one-screen {
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  box-sizing: border-box;
}

.site-body--practice-center .pc-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
  box-sizing: border-box;
  min-height: 0;
}

.pc-header-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
}

.pc-header-inline .student-page-header__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.pc-header-inline__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--pc-muted);
  line-height: 1.3;
}

.pc-header-inline__sep {
  margin: 0 0.25em;
}

.pc-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  flex: 0 0 auto;
}

.pc-tabs__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(62, 36, 18, 0.28);
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.pc-tabs__item:hover,
.pc-tabs__item:focus-visible {
  border-color: rgba(245, 130, 32, 0.55);
  outline: none;
}

.pc-tabs__item.is-active {
  background: rgba(255, 255, 255, 0.42);
  border-color: #f58220;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 6px 14px rgba(245, 130, 32, 0.16);
}

.pc-tabs__title {
  font-size: 16px;
  font-weight: 850;
}

.pc-tabs__desc {
  font-size: 12px;
  font-weight: 650;
  color: var(--pc-muted);
}

.pc-panel--fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pc-archive-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-archive-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-filter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.pc-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pc-ms {
  position: relative;
}

.pc-ms__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  user-select: none;
}

.pc-ms__summary::-webkit-details-marker {
  display: none;
}

.pc-ms[open] > .pc-ms__summary {
  border-color: rgba(245, 130, 32, 0.45);
  background: rgba(255, 255, 255, 0.42);
}

.pc-ms__panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  min-width: 9.5rem;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 250, 244, 0.98);
  border: 1px solid rgba(62, 36, 18, 0.12);
  box-shadow: 0 10px 24px rgba(42, 28, 18, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-ms--wide .pc-ms__panel {
  min-width: 14rem;
}

.pc-ms__panel--scroll {
  max-height: 220px;
  overflow: auto;
}

.pc-ms__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pc-ms__option:hover {
  background: rgba(245, 130, 32, 0.1);
}

.pc-ms__empty {
  margin: 0;
  padding: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--pc-muted);
}

.pc-wrong-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pc-select {
  min-height: 32px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(62, 36, 18, 0.16);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-ink);
}

.pc-select--n {
  min-width: 3.2rem;
}

.pc-btn--secondary {
  min-height: 32px;
  padding: 4px 14px;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(245, 130, 32, 0.18);
}

.pc-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pc-sort-row__gap {
  margin-left: 6px;
}

.pc-sort-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pc-sort-btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ff9a3d 0%, #f58220 100%);
  border-color: transparent;
}

.pc-sort-btn--reset {
  color: var(--pc-muted);
}

.pc-check-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 800;
}

.pc-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pc-hidden-form {
  display: none;
}


.pc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex: 0 0 auto;
}

.pc-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
}

.pc-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
}

.pc-panel__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--pc-muted);
}

.pc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  flex: 0 0 auto;
}

.pc-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pc-filters__label {
  font-size: 12px;
  font-weight: 750;
  color: var(--pc-muted);
}

.pc-filters__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pc-filters__chip.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ff9a3d 0%, #f58220 100%);
  border-color: transparent;
}

.pc-archive-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--pc-muted);
  line-height: 1.35;
  flex: 0 0 auto;
}

.pc-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pc-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 250, 244, 0.96);
}

.pc-table th,
.pc-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(62, 36, 18, 0.08);
}

.pc-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pc-muted);
  white-space: nowrap;
}

.pc-table__check {
  width: 2.2rem;
  text-align: center;
}

.pc-table__stem {
  max-width: 22rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pc-status--pending {
  color: #9a3412;
  background: rgba(245, 130, 32, 0.16);
}

.pc-status--mastered {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 18px;
  border-radius: 12px;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ff9a3d 0%, #f58220 100%);
  box-shadow: 0 6px 14px rgba(245, 130, 32, 0.24);
  cursor: pointer;
  flex: 0 0 auto;
}

.pc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.pc-empty {
  padding: 20px 18px;
}

.pc-empty--compact {
  padding: 16px;
}

.pc-empty__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 850;
}

.pc-empty__text {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--pc-muted);
  line-height: 1.4;
}

.pc-panel__empty {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--pc-muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .site-body--practice-center .student-page--one-screen {
    height: auto;
    max-height: none;
  }

  .page--practice-center.page,
  .page--practice-center {
    max-height: none;
    overflow: auto;
  }

  .site-body--practice-center .pc-shell {
    height: auto;
    gap: 12px;
  }

  .pc-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .pc-table-wrap {
    max-height: 52vh;
  }

  .pc-table th:nth-child(5),
  .pc-table td:nth-child(5) {
    display: none;
  }

  .pc-table__stem {
    max-width: 10rem;
  }

  .pc-toolbar {
    align-items: stretch;
  }

  .pc-btn {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-height: 820px) {
  .pc-tabs__item {
    padding: 8px 12px;
  }

  .pc-table th,
  .pc-table td {
    padding: 6px 8px;
  }
}
