.detail-page {
  padding-bottom: 24px;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-head {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-head-main {
  flex: 1;
  min-width: 0;
}

.detail-head-action {
  flex-shrink: 0;
}

.detail-head-btn {
  width: auto;
  min-width: 176px;
  padding: 0 24px;
  height: 46px;
}

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

.head-school {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.head-major {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin-top: 6px;
}

.head-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.group-tip {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background-color: var(--navy-soft);
  border: 1px solid var(--navy-border);
  font-size: 12px;
  color: var(--navy);
  line-height: 1.5;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.detail-left-col,
.detail-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.verdict-card {
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--gold-border);
  background-color: var(--gold-soft);
}

.verdict-chong {
  border-color: var(--red-border);
  background-color: var(--red-soft);
}

.verdict-bao {
  border-color: var(--green-border);
  background-color: var(--green-soft);
}

.verdict-out {
  border-color: var(--border-strong);
  background-color: var(--surface-warm);
}

.verdict-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.verdict-text {
  font-size: 14px;
  color: #44403c;
  line-height: 1.65;
}

.table-card {
  padding: 22px 26px;
}

.table-head {
  margin-bottom: 10px;
}

.tbl-row {
  display: flex;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid var(--surface-warm);
  font-size: 14px;
  color: var(--ink);
}

.tbl-th {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 6px 12px;
  border-bottom: 1px solid var(--border);
}

.tbl-row-old {
  background-color: var(--surface-subtle);
}

.tbl-row-last {
  border-bottom: none;
}

.col-year {
  width: 28%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-score {
  width: 21%;
}

.col-rank {
  width: 22%;
}

.col-diff {
  width: 29%;
  text-align: right;
  font-weight: 700;
}

.txt-bold {
  font-weight: 700;
}

.diff-ok {
  color: var(--green);
}

.diff-miss {
  color: var(--red);
}

.old-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-light);
}

.info-card {
  padding: 20px 22px;
}

.info-head {
  margin-bottom: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-cell {
  background-color: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.info-k {
  font-size: 12px;
  color: var(--ink-muted);
}

.info-v {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}

.mobile-detail-footer {
  display: none;
}

.btn-saved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background-color: var(--surface-warm);
  color: var(--ink-sub);
  border: 1px solid #d6d0c4;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.btn-saved:hover {
  background-color: var(--border);
}

@media (max-width: 899px) {
  .detail-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .detail-head {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-head-action {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-right-col {
    order: -1;
  }

  .head-school {
    font-size: 18px;
  }

  .head-major {
    font-size: 15px;
  }

  .table-card {
    padding: 16px;
  }

  .tbl-row {
    font-size: 13px;
    padding: 11px 4px;
  }

  .mobile-detail-footer {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
  }

  .sticky-footer-inner {
    max-width: 640px;
    margin: 0 auto;
  }
}
