/* 提取自 PracticeView.vue */
.practice-page {
  min-height: 100vh;
  padding: 130px 0 100px;
  background: var(--bg);
}

.practice-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.practice-head {
  margin-bottom: 40px;
}

.practice-head h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  margin-top: 10px;
}

.pc-desc {
  margin-top: 14px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 卡片网格 */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
  min-height: 150px;
}

.pc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(6, 20, 27, 0.1);
}

.pc-index {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}

.pc-passed {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(47, 143, 91, 0.16);
  color: #2f8f5b;
  font-size: 11.5px;
  font-weight: 700;
}

.pc-name {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
}

.pc-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* 历史记录 */
.history-block {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.hb-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  margin-bottom: 20px;
}

.hb-num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.hb-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hb-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s;
}

.hb-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.hb-model {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-acc {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}

.hb-acc.pass {
  color: #2f8f5b;
}

.hb-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.hb-badge.pass {
  background: rgba(47, 143, 91, 0.16);
  color: #2f8f5b;
}

.hb-badge.fail {
  background: rgba(211, 47, 47, 0.12);
  color: #d32f2f;
}

.hb-date {
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.hb-open {
  color: var(--accent);
  font-size: 16px;
}

.hb-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

@media (max-width: 700px) {
  .hb-date {
    display: none;
  }
}