/* ============================================================
   ST-20 ~ ST-24 刷题与模考
   pc = 刷题中心 / pl = 试卷列表 / pi = 模考说明
   pp = 模考答题 / pr = 成绩单
   ============================================================ */

/* ================= ST-20 刷题中心 ================= */

.pc-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.pc-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--on-dark-1);
  background:
    radial-gradient(520px 260px at 88% -30%, rgba(91, 139, 255, 0.34), transparent 68%),
    linear-gradient(135deg, #101d38 0%, #0a1428 100%);
  box-shadow: 0 18px 40px rgba(10, 25, 55, 0.18);
}

.pc-hero::after {
  content: "問";
  position: absolute;
  right: 18px;
  bottom: -46px;
  font-family: var(--font-lang);
  font-size: 150px;
  line-height: 1;
  color: #fff;
  opacity: 0.035;
  pointer-events: none;
}

.pc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--on-dark-3);
}

.pc-hero h1 {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pc-hero > div > p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--on-dark-2);
}

.pc-metrics {
  display: flex;
  gap: 10px;
  flex: none;
}

.pc-metrics > div {
  min-width: 104px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
}

.pc-metrics span {
  display: block;
  font-size: 11px;
  color: var(--on-dark-2);
}

.pc-metrics b {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}

.pc-metrics b small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--on-dark-2);
}

.pc-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pc-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}

.pc-entry:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.pc-entry .e-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand-600);
}

.pc-entry.alt .e-ico {
  background: #fff4e5;
  color: var(--warn-deep);
}

.pc-entry .e-txt b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.pc-entry .e-txt span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-600);
}

.pc-entry > .ico {
  margin-left: auto;
  flex: none;
  color: var(--ink-300);
}

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

.pc-type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}

.pc-type:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.pc-type .t-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-600);
}

.pc-type:nth-child(2) .t-ico { background: #e8f8f2; color: var(--success-deep); }
.pc-type:nth-child(3) .t-ico { background: #fff4e5; color: var(--warn-deep); }
.pc-type:nth-child(4) .t-ico { background: #fdf0e9; color: var(--danger-deep); }
.pc-type:nth-child(5) .t-ico { background: #f2ecff; color: #6d4bd1; }

.pc-type b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}

.pc-type .t-meta {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-600);
}

.pc-type .t-bar {
  height: 5px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.pc-type .t-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand-500);
}

.pc-type:nth-child(2) .t-bar i { background: var(--success); }
.pc-type:nth-child(3) .t-bar i { background: var(--warn); }
.pc-type:nth-child(4) .t-bar i { background: var(--danger); }

.pc-type .t-rate {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
}

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

.pc-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}

.pc-paper:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.pc-paper .p-year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-400);
}

.pc-paper b {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-900);
}

.pc-paper .p-meta {
  font-size: 11.5px;
  color: var(--ink-600);
}

.pc-paper .p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--ink-400);
}

.pc-paper .p-foot b {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand-600);
}

.pc-paper .p-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--brand-050);
  color: var(--brand-600);
}

.pc-paper .p-tag.done {
  background: var(--success-bg);
  color: var(--success-deep);
}

.pc-trend {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pc-trend svg {
  display: block;
  width: 100%;
  height: auto;
}

.pc-trend .tr-empty {
  padding: 26px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-400);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-600);
}

.section-more .ico {
  width: 14px;
  height: 14px;
}

/* ================= ST-21 试卷列表 ================= */

.pl-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.pl-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pl-select {
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646A73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-700);
  appearance: none;
  cursor: pointer;
}

.pl-select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--shadow-focus);
}

.pl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pl-chip {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 12px;
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease-soft);
}

.pl-chip.is-on {
  border-color: var(--brand-200);
  background: var(--brand-050);
  color: var(--brand-600);
  font-weight: 600;
}

.pl-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-400);
}

.pl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.pl-row:hover {
  transform: translateY(-2px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.pl-row .pl-main {
  flex: 1;
  min-width: 0;
}

.pl-row .pl-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.pl-row .pl-name .pl-done {
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success-deep);
}

.pl-row .pl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-400);
}

.pl-row .pl-score {
  flex: none;
  text-align: right;
}

.pl-row .pl-score span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-400);
}

.pl-row .pl-score b {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--brand-600);
}

.pl-row .pl-score b small {
  font-size: 11px;
  color: var(--ink-400);
}

/* ================= ST-22 模考说明 ================= */

.pi-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.pi-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pi-head .pi-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-400);
}

.pi-head h1 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.pi-head p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-600);
}

.pi-total {
  flex: none;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: var(--brand-050);
  text-align: center;
}

.pi-total b {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-600);
}

.pi-total span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-600);
}

.pi-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pi-meta > div {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.pi-meta span {
  display: block;
  font-size: 11px;
  color: var(--ink-400);
}

.pi-meta b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-900);
}

.pi-struct {
  margin-top: 20px;
}

.pi-struct h3,
.pi-notes h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}

.pi-struct h3::before,
.pi-notes h3::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand-500);
}

.pi-row {
  display: grid;
  grid-template-columns: 1.4fr 72px 72px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-600);
}

.pi-row:first-of-type {
  margin-top: 10px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--ink-400);
}

.pi-row b {
  color: var(--ink-900);
}

.pi-row .pi-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.pi-row .pi-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand-400);
}

.pi-notes {
  margin-top: 20px;
}

.pi-notes ul {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pi-notes li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-600);
}

.pi-notes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
}

.pi-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.pi-actions .primary-btn,
.pi-actions .ghost-btn {
  flex: 1;
  justify-content: center;
}

/* ================= ST-23 模考答题 ================= */

.pp-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.pp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pp-head .pp-title {
  flex: 1;
  min-width: 200px;
}

.pp-head .pp-title b {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
}

.pp-head .pp-title span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-400);
}

.pp-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--brand-050);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pp-timer.is-low {
  background: var(--danger-bg);
  color: var(--danger-deep);
  animation: pp-blink 1s steps(2, start) infinite;
}

@keyframes pp-blink {
  50% { opacity: 0.45; }
}

.pp-sheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-700);
}

.pp-progress {
  height: 5px;
  margin: 14px 0 16px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.pp-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: width var(--dur-base) var(--ease-soft);
}

.pp-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pp-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-050);
  color: var(--brand-600);
}

.pp-card .qz-stem {
  margin-top: 12px;
}

.pp-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.pp-audio .a-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  transition: background var(--dur-fast);
}

.pp-audio .a-play:disabled {
  background: var(--ink-300);
  cursor: not-allowed;
}

.pp-audio .a-info {
  flex: 1;
  min-width: 0;
}

.pp-audio .a-info b {
  display: block;
  font-size: 12.5px;
  color: var(--ink-900);
}

.pp-audio .a-info span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-400);
}

.pp-audio .a-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
  height: 22px;
}

.pp-audio .a-wave i {
  width: 3px;
  border-radius: 3px;
  background: var(--brand-200);
}

.pp-audio .a-wave i:nth-child(1) { height: 8px; }
.pp-audio .a-wave i:nth-child(2) { height: 16px; }
.pp-audio .a-wave i:nth-child(3) { height: 11px; }
.pp-audio .a-wave i:nth-child(4) { height: 20px; }
.pp-audio .a-wave i:nth-child(5) { height: 13px; }

.pp-passage {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-family: var(--font-lang);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-700);
}

.pp-writing {
  margin-top: 12px;
}

.pp-writing textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--font-lang);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-900);
  resize: vertical;
}

.pp-writing textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--shadow-focus);
}

.pp-wordcount {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-400);
}

.pp-wordcount em {
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--brand-600);
}

.pp-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.pp-footer .pp-spacer {
  flex: 1;
}

.pp-footer button {
  height: 42px;
  min-width: 92px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all var(--dur-fast) var(--ease-soft);
}

.pp-footer button:hover:not(:disabled) {
  border-color: var(--brand-200);
  color: var(--brand-600);
}

.pp-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pp-footer button.primary {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
}

.pp-footer .pp-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-400);
}

/* 答题卡抽屉 */
.pp-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: var(--mask);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-soft), visibility var(--dur-base);
}

.pp-sheet-mask.open {
  opacity: 1;
  visibility: visible;
}

.pp-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 131;
  display: flex;
  flex-direction: column;
  width: 340px;
  max-width: 92vw;
  padding: 20px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 60px rgba(10, 25, 55, 0.18);
  transform: translateX(102%);
  transition: transform var(--dur-base) var(--ease-out);
}

.pp-sheet.open {
  transform: translateX(0);
}

.pp-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pp-sheet-head b {
  font-size: 15px;
  color: var(--ink-900);
}

.pp-sheet-head .pp-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink-400);
}

.pp-sheet-head .pp-close:hover {
  background: var(--surface-2);
  color: var(--ink-700);
}

.pp-sheet-stat {
  display: flex;
  gap: 10px;
  margin: 14px 0 4px;
}

.pp-sheet-stat > div {
  flex: 1;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  text-align: center;
}

.pp-sheet-stat span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-400);
}

.pp-sheet-stat b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--ink-900);
}

.pp-sheet-sec {
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-400);
}

.pp-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pp-cell {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease-soft);
}

.pp-cell.is-done {
  border-color: var(--brand-200);
  background: var(--brand-050);
  color: var(--brand-600);
  font-weight: 700;
}

.pp-cell.is-cur {
  border-color: var(--brand-500);
  box-shadow: inset 0 0 0 1px var(--brand-500);
  color: var(--brand-600);
}

.pp-sheet-foot {
  margin-top: auto;
  padding-top: 18px;
}

.pp-sheet-foot .primary-btn {
  width: 100%;
  justify-content: center;
}

/* ================= ST-24 成绩单 ================= */

.pr-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.pr-score {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 24px 26px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--on-dark-1);
  background:
    radial-gradient(520px 260px at 90% -40%, rgba(18, 184, 134, 0.22), transparent 70%),
    linear-gradient(135deg, #101d38, #0a1428);
  box-shadow: 0 18px 40px rgba(10, 25, 55, 0.18);
}

.pr-score::after {
  content: "成";
  position: absolute;
  right: 18px;
  bottom: -46px;
  font-family: var(--font-lang);
  font-size: 150px;
  line-height: 1;
  color: #fff;
  opacity: 0.035;
  pointer-events: none;
}

.pr-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--v, 77) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.pr-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0d1a31;
}

.pr-ring b {
  position: relative;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}

.pr-ring b small {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-dark-2);
}

.pr-ring span {
  position: relative;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--on-dark-2);
}

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

.pr-main .pr-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--on-dark-3);
}

.pr-main h1 {
  margin-top: 7px;
  font-size: 22px;
  font-weight: 700;
}

.pr-main > p {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-2);
}

.pr-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
}

.pr-metrics span {
  display: block;
  font-size: 10.5px;
  color: var(--on-dark-2);
}

.pr-metrics b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: #fff;
}

.pr-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pr-sec {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pr-sec .s-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pr-sec .s-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
}

.pr-sec .s-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.pr-sec .s-val small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
}

.pr-sec .s-bar {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.pr-sec .s-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand-500);
}

.pr-sec .s-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-400);
}

.pr-sec .s-diff.up { color: var(--success-deep); }
.pr-sec .s-diff.down { color: var(--danger-deep); }
.pr-sec .s-diff.flat { color: var(--ink-400); }

.pr-sec.is-pending .s-val {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--warn-deep);
}

.pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.pr-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pr-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
}

.pr-card h3::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--brand-500);
}

.pr-card .pr-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-400);
}

.pr-radar {
  display: grid;
  place-items: center;
  margin-top: 8px;
}

.pr-radar svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.pr-writing p {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-600);
}

.pr-writing .w-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.pr-writing .w-score b {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--brand-600);
}

.pr-writing .w-score span {
  font-size: 11.5px;
  color: var(--ink-400);
}

.pr-writing .w-ai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn-deep);
  font-size: 11px;
}

.pr-writing .ghost-btn {
  margin-top: 12px;
}

.pr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pr-actions .primary-btn,
.pr-actions .ghost-btn {
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

/* ================= 手机壳 ================= */

html.is-mobile .pc-hero {
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  gap: 16px;
}

html.is-mobile .pc-hero h1 {
  font-size: 20px;
}

html.is-mobile .pc-metrics {
  gap: 8px;
}

html.is-mobile .pc-metrics > div {
  flex: 1;
  min-width: 0;
  padding: 10px;
}

html.is-mobile .pc-metrics b {
  font-size: 18px;
}

html.is-mobile .pc-entries {
  grid-template-columns: 1fr;
}

html.is-mobile .pc-types {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.is-mobile .pc-type {
  padding: 14px;
}

html.is-mobile .pc-papers {
  grid-template-columns: 1fr;
}

html.is-mobile .pc-paper {
  padding: 14px;
}

html.is-mobile .pl-filters {
  gap: 8px;
}

html.is-mobile .pl-select {
  flex: 1;
  min-width: calc(50% - 4px);
  height: 40px;
}

html.is-mobile .pl-chip {
  height: 40px;
}

html.is-mobile .pl-count {
  width: 100%;
  margin-left: 0;
}

html.is-mobile .pl-row {
  align-items: flex-start;
  padding: 13px 14px;
}

html.is-mobile .pl-row .pl-name {
  font-size: 13px;
  flex-wrap: wrap;
}

html.is-mobile .pl-row .pl-score b {
  font-size: 18px;
}

html.is-mobile .pi-card {
  padding: 18px;
}

html.is-mobile .pi-head {
  flex-direction: column;
}

html.is-mobile .pi-total {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  text-align: left;
}

html.is-mobile .pi-total b {
  font-size: 24px;
}

html.is-mobile .pi-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.is-mobile .pi-row {
  grid-template-columns: 1.2fr 52px 52px 1fr;
  gap: 6px;
  font-size: 12px;
  padding: 10px 8px;
}

html.is-mobile .pi-row:first-of-type {
  font-size: 11px;
}

html.is-mobile .pp-head {
  gap: 8px;
}

html.is-mobile .pp-sheet-btn,
html.is-mobile .pp-timer {
  height: 44px;
}

html.is-mobile .pp-sheet-head .pp-close {
  width: 44px;
  height: 44px;
}

html.is-mobile .pp-cell {
  height: 44px;
}

html.is-mobile .pp-head .pp-title {
  min-width: 100%;
}

html.is-mobile .pp-card {
  padding: 18px 16px;
}

html.is-mobile .pp-card .qz-stem {
  font-size: 15px;
}

html.is-mobile .pp-sheet {
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  max-height: 78vh;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 50px rgba(10, 25, 55, 0.2);
  transform: translateY(104%);
}

html.is-mobile .pp-sheet.open {
  transform: translateY(0);
}

html.is-mobile .pp-sheet-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html.is-mobile .pp-footer {
  flex-wrap: wrap;
}

html.is-mobile .pp-footer .pp-spacer {
  display: none;
}

html.is-mobile .pp-footer button {
  flex: 1;
  height: 44px;
  min-width: 0;
}

html.is-mobile .pp-footer .pp-count {
  order: -1;
  width: 100%;
  text-align: center;
}

html.is-mobile .pr-score {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  text-align: left;
}

html.is-mobile .pr-ring {
  width: 96px;
  height: 96px;
}

html.is-mobile .pr-ring b {
  font-size: 28px;
}

html.is-mobile .pr-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.is-mobile .pr-grid {
  grid-template-columns: 1fr;
}

html.is-mobile .pr-actions {
  flex-direction: column;
}

html.is-mobile .pr-actions .primary-btn,
html.is-mobile .pr-actions .ghost-btn {
  width: 100%;
  min-width: 0;
}
