/* panXy 知识点讲义货架 — 与工作台共享 panXy 品牌 Logo、天空画布、流动字母水印与毛玻璃卡片体系 */

body.knowledge-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background: #dff0f8;
  color: var(--ink, #17253b);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 共享 panXy 工作台天空画布与流动水印 */
body.knowledge-page .workspace-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.knowledge-page .workspace-backdrop .home-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.02) brightness(1.01);
}

body.knowledge-page .workspace-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(180deg, rgba(232, 245, 252, 0.24) 0%, rgba(238, 247, 252, 0.42) 55%, rgba(244, 249, 253, 0.56) 100%);
}

body.knowledge-page .workspace-letter-art {
  display: flex;
  align-items: center;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

body.knowledge-page .workspace-letter-track {
  display: flex;
  gap: 7vw;
  width: max-content;
  will-change: transform;
  animation: pxyLetterDrift 68s linear infinite;
}

body.knowledge-page .workspace-letter-track span {
  font-family: "Avenir Next", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(140px, 21vw, 290px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: rgba(255, 255, 255, 0.14);
  -webkit-text-stroke: 1.5px rgba(36, 94, 200, 0.08);
  text-shadow: 0 22px 54px rgba(17, 45, 86, 0.06);
}

body.knowledge-page .container {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 36px));
  max-width: none;
  margin: 0 auto;
  padding: 12px 0 36px;
}

/* 顶部导航栏：与 studio.html 完全同款的毛玻璃胶囊顶栏 */
body.knowledge-page .site-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 8px 14px 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(242, 248, 255, 0.58) 100%);
  box-shadow:
    0 14px 34px -22px rgba(16, 40, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

body.knowledge-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #132540;
  text-decoration: none;
  font-weight: 750;
  flex-shrink: 0;
}

body.knowledge-page .brand-logo {
  height: 29px;
  width: auto;
  display: block;
  color: #163767;
}

body.knowledge-page .brand-suffix {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(36, 94, 200, 0.10);
  border: 1px solid rgba(36, 94, 200, 0.18);
  color: #1c4c96;
  font-size: 13px;
  font-weight: 700;
}

body.knowledge-page .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* 图 4 位置：新平台 188 永久购入全学科全年级（含上新）福利横幅 */
body.knowledge-page .header-vip-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.88) 100%);
  color: #78350f;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(180, 83, 9, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

body.knowledge-page .header-vip-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 10px 22px -12px rgba(180, 83, 9, 0.38);
}

body.knowledge-page .header-vip-banner.is-vip-active {
  border-color: rgba(13, 122, 78, 0.35);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96) 0%, rgba(209, 250, 229, 0.9) 100%);
  color: #065f46;
}

body.knowledge-page .vip-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

body.knowledge-page .header-vip-banner.is-vip-active .vip-tag {
  background: linear-gradient(135deg, #0d7a4e 0%, #059669 100%);
}

body.knowledge-page .vip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.knowledge-page .vip-text strong {
  color: #c2410c;
  font-size: 14.5px;
  font-weight: 850;
  margin: 0 1px;
}

body.knowledge-page .header-vip-banner.is-vip-active .vip-text strong {
  color: #047857;
}

body.knowledge-page .header-link {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 94, 200, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: #1b4991;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -12px rgba(20, 52, 102, 0.35);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

body.knowledge-page .header-link:hover {
  background: #ffffff;
  border-color: var(--blue, #245ec8);
  transform: translateY(-1px);
}

body.knowledge-page .knowledge-main {
  width: 100%;
  margin: 0;
}

/* 货架主体布局 */
.knowledge-shelf .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.knowledge-shelf .status-line,
.knowledge-shelf .notice {
  margin: 0;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px -18px rgba(22, 52, 96, 0.22);
}

.knowledge-shelf .notice h1 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.knowledge-shelf .notice p {
  margin: 0 0 12px;
  color: var(--muted, #58687f);
}

.knowledge-shelf .notice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.knowledge-shelf .browse {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.knowledge-shelf .rail {
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knowledge-shelf .rail-block,
.knowledge-shelf .stage,
.knowledge-shelf .planned {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 250, 255, 0.80) 100%);
  box-shadow:
    0 18px 40px -24px rgba(17, 43, 82, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.knowledge-shelf .rail-block {
  padding: 10px 9px;
  border-radius: 18px;
}

.knowledge-shelf .step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #3b5270;
  font-size: 13px;
  font-weight: 750;
}

.knowledge-shelf .step-no {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3eeff;
  color: var(--blue, #245ec8);
  font-size: 11.5px;
  font-weight: 800;
}

.knowledge-shelf .module-list,
.knowledge-shelf .model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.knowledge-shelf .subject-list,
.knowledge-shelf .track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.knowledge-shelf .subject-list {
  gap: 3px;
}

.knowledge-shelf .subject-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.knowledge-shelf .subject-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #1e293b;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.knowledge-shelf .subject-name {
  font-size: 14.5px;
  font-weight: 760;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.knowledge-shelf .rail-subj-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.knowledge-shelf .rail-count {
  font-size: 11.5px;
  font-weight: 680;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.knowledge-shelf .rail-caret {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  color: #94a3b8;
  transform: rotate(-90deg);
  transition: transform 160ms ease, color 160ms ease;
}

.knowledge-shelf .subject-item.is-expanded .rail-caret {
  transform: rotate(0deg);
  color: var(--blue, #245ec8);
}

.knowledge-shelf .subject-chip:hover {
  background: rgba(36, 94, 200, 0.06);
  color: #163a70;
}

.knowledge-shelf .subject-chip[aria-current="true"] {
  background: #edf4ff;
  border-color: rgba(36, 94, 200, 0.16);
  color: #173f82;
}

.knowledge-shelf .subject-chip[aria-current="true"] .rail-count {
  color: #2b5bb8;
}

.knowledge-shelf .subject-chip[aria-current="true"] .rail-caret {
  color: var(--blue, #245ec8);
}

.knowledge-shelf .subject-item .track-list {
  margin: 2px 0 6px 14px;
  padding: 2px 0 2px 9px;
  border-left: 1.5px solid #d4e3f8;
  gap: 2px;
}

.knowledge-shelf .track {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.knowledge-shelf .track-name {
  font-weight: 620;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-shelf .rail-track-count {
  font-size: 11.5px;
  font-weight: 660;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.knowledge-shelf .rail-soon {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.knowledge-shelf .track:hover {
  background: rgba(36, 94, 200, 0.07);
  color: #163a70;
}

.knowledge-shelf .track[aria-current="true"] {
  background: linear-gradient(135deg, #245ec8 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(29, 78, 216, 0.48);
  opacity: 1;
}

.knowledge-shelf .track[aria-current="true"] .track-name {
  color: #ffffff;
  font-weight: 740;
}

.knowledge-shelf .track[aria-current="true"] .rail-track-count,
.knowledge-shelf .track[aria-current="true"] .rail-soon {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.knowledge-shelf .subject-chip.is-dim,
.knowledge-shelf .track.is-dim {
  opacity: 0.64;
}

.knowledge-shelf .subject-chip.is-dim[aria-current="true"],
.knowledge-shelf .track.is-dim[aria-current="true"] {
  opacity: 1;
}

.knowledge-shelf .model.is-locked {
  opacity: 0.56;
  filter: grayscale(0.15);
}

.knowledge-shelf .pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e4effd;
  color: var(--blue, #245ec8);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.knowledge-shelf .pill-muted {
  background: #edf1f7;
  color: #607089;
}

.knowledge-shelf .stage {
  padding: 20px 22px 24px;
  min-width: 0;
}

.knowledge-shelf .crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 14px;
  color: #4e6380;
  font-size: 13px;
}

.knowledge-shelf .crumb [aria-current="page"] {
  color: var(--ink, #17253b);
  font-weight: 750;
}

.knowledge-shelf .planned {
  padding: 20px 18px;
}

.knowledge-shelf .planned h1 {
  margin: 6px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

/* ============================================================================
 * 1. 核心题型板块矩阵：整洁大方的三列等宽卡片网格（告别杂乱胶囊换行）
 * ============================================================================ */
.knowledge-shelf .topic-section {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(244, 248, 255, 0.72);
  border: 1px solid rgba(196, 216, 244, 0.78);
}

.knowledge-shelf .topic-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.knowledge-shelf .topic-section-head .step-label {
  margin: 0;
}

.knowledge-shelf .topic-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff5f0;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 12.5px;
  font-weight: 700;
}

.knowledge-shelf .topic-promo-pill del {
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-thickness: 1.8px;
  font-weight: 650;
  margin: 0 2px;
}

.knowledge-shelf .topic-promo-pill strong {
  color: #c2410c;
  font-size: 14px;
  font-weight: 850;
}

.knowledge-shelf .topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-shelf .topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 15px;
  min-height: 68px;
  border-radius: 14px;
  border: 1px solid rgba(191, 212, 240, 0.92);
  background: #ffffff;
  color: var(--ink, #17253b);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px -8px rgba(20, 48, 92, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.knowledge-shelf .topic-card:hover {
  border-color: var(--blue, #245ec8);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 22px -12px rgba(36, 94, 200, 0.26);
}

.knowledge-shelf .topic-card[aria-pressed="true"] {
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #245ec8 0%, #1b4aa5 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px -12px rgba(29, 78, 216, 0.58);
}

.knowledge-shelf .topic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.knowledge-shelf .topic-card-idx {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 6px;
  background: #eaf2ff;
  color: var(--blue, #245ec8);
}

.knowledge-shelf .topic-card[aria-pressed="true"] .topic-card-idx {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.knowledge-shelf .topic-card-status {
  font-size: 11.5px;
  font-weight: 750;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.knowledge-shelf .topic-card-status .orig-strike {
  color: #ef4444;
  text-decoration: line-through;
  text-decoration-thickness: 1.6px;
  font-size: 11px;
}

.knowledge-shelf .topic-card-status .sale-num {
  color: #d9460f;
  font-weight: 800;
}

.knowledge-shelf .topic-card-status.is-owned {
  color: #0d7a4e;
}

.knowledge-shelf .topic-card[aria-pressed="true"] .topic-card-status {
  color: rgba(255, 255, 255, 0.92);
}

.knowledge-shelf .topic-card[aria-pressed="true"] .topic-card-status .orig-strike {
  color: rgba(255, 205, 205, 0.9);
}

.knowledge-shelf .topic-card[aria-pressed="true"] .topic-card-status .sale-num {
  color: #fde68a;
}

.knowledge-shelf .topic-card-title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* 当前板块标题栏与整板块一键购买栏 */
.knowledge-shelf .topic-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(203, 219, 240, 0.72);
  flex-wrap: wrap;
}

.knowledge-shelf .topic-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.knowledge-shelf .topic-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.knowledge-shelf .topic-free-note {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #245ec8;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-shelf .topic-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.knowledge-shelf .btn-buy-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #f97316;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.knowledge-shelf .btn-buy-topic:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(234, 88, 12, 0.45);
}

.knowledge-shelf .btn-buy-topic del {
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-thickness: 1.8px;
  font-size: 12px;
}

.knowledge-shelf .btn-buy-topic strong {
  color: #c2410c;
  font-size: 14.5px;
  font-weight: 850;
}

.knowledge-shelf .btn-buy-topic .btn-buy-formula {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.knowledge-shelf .topic-owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f8f0;
  border: 1px solid #99e2bf;
  color: #0d7a4e;
  font-size: 12.5px;
  font-weight: 750;
}

/* ============================================================================
 * 4. 题型卡片列表与三种右上角状态标识（免费=蓝色 / 未购=5折标价 / 已购=翡翠绿）
 * ============================================================================ */
.knowledge-shelf .model-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-shelf .model {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px;
  min-height: 184px;
  border: 1px solid rgba(196, 215, 242, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px -16px rgba(20, 49, 92, 0.22);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.knowledge-shelf .model.is-open:hover {
  border-color: var(--blue, #245ec8);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(36, 94, 200, 0.28);
}

.knowledge-shelf .model-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.knowledge-shelf .lecture {
  font-size: 12.5px;
  color: #365072;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef3fa;
}

/* 状态 1：右上角「免费」徽章（蓝色 UI） */
.knowledge-shelf .status-badge-free {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #b9d3fb;
  color: #245ec8;
  font-size: 12.5px;
  font-weight: 800;
}

/* 状态 2：右上角未购「标价」（原价 2.4 红杠划掉 + 5折 1.2） */
.knowledge-shelf .price-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 25px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff4ec;
  border: 1px solid #fed7aa;
  color: #bd5328;
  font-size: 13px;
  font-weight: 750;
}

.knowledge-shelf .price-tag .price-orig {
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-thickness: 1.8px;
  font-size: 12px;
  font-weight: 650;
}

.knowledge-shelf .price-tag .price-sale {
  color: #c2410c;
  font-size: 14px;
  font-weight: 850;
}

.knowledge-shelf .price-tag .price-discount-chip {
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 4px;
  background: #ea580c;
  color: #ffffff;
  position: relative;
  top: -1px;
}

/* 状态 3：右上角「已购」徽章（翡翠绿 UI） */
.knowledge-shelf .status-badge-owned {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8f8f0;
  border: 1px solid #99e2bf;
  color: #0d7a4e;
  font-size: 12.5px;
  font-weight: 800;
}

.knowledge-shelf .model-title {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.35;
  font-weight: 750;
}

.knowledge-shelf .model-feature {
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f0f6ff;
  border-left: 3px solid var(--blue, #245ec8);
  color: #1c3962;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}

.knowledge-shelf .module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.knowledge-shelf .module-list li {
  padding: 3px 8px;
  border-radius: 7px;
  background: #f1f5fb;
  color: #425672;
  font-size: 12px;
  font-weight: 550;
}

/* 带右下角实机预览图的卡片：左侧紧凑聚合灰色小 Tag + 按钮，右下角留给高清实机预览窗 */
.knowledge-shelf .model.has-preview {
  gap: 8px;
}

.knowledge-shelf .model-bottom-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  align-items: stretch;
  margin-top: auto;
  padding-top: 2px;
}

.knowledge-shelf .model-left-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.knowledge-shelf .module-list.is-grouped {
  gap: 5px;
  align-content: flex-start;
}

.knowledge-shelf .module-list.is-grouped li {
  padding: 3px 7.5px;
  border-radius: 6px;
  background: #eef3fa;
  border: 1px solid rgba(203, 217, 238, 0.78);
  color: #3d526f;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
}

.knowledge-shelf .model-preview-box {
  position: relative;
  display: block;
  width: 210px;
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0;
  align-self: end;
  border-radius: 12px;
  border: 1px solid rgba(182, 206, 238, 0.96);
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(15, 38, 76, 0.45);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.knowledge-shelf .model-preview-box:hover {
  border-color: var(--blue, #245ec8);
  transform: translateY(-1.5px);
  box-shadow: 0 14px 26px -14px rgba(36, 94, 200, 0.46);
}

.knowledge-shelf .model-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.knowledge-shelf .model-preview-box:hover .model-preview-img {
  transform: scale(1.045);
}

.knowledge-shelf .model-preview-play {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  padding-left: 1.5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background 160ms ease, transform 160ms ease;
}

.knowledge-shelf .model-preview-box:hover .model-preview-play {
  background: var(--blue, #245ec8);
  border-color: #ffffff;
  transform: scale(1.08);
}

@media (max-width: 580px) {
  .knowledge-shelf .model-bottom-split {
    grid-template-columns: minmax(0, 1fr) 152px;
    gap: 10px;
  }
  .knowledge-shelf .model-preview-box {
    width: 152px;
  }
}

.knowledge-shelf .enter,
.knowledge-shelf .buy-btn,
.knowledge-shelf .text-button,
.knowledge-shelf .demo-back,
.knowledge-shelf .demo-cmp,
.knowledge-shelf .demo-fs,
.knowledge-shelf .demo-pop,
.knowledge-shelf .demo-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(190, 210, 238, 0.95);
  background: #fff;
  color: var(--ink, #17253b);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.knowledge-shelf .enter {
  margin-top: auto;
  align-self: flex-start;
  border-color: var(--blue, #245ec8);
  background: var(--blue, #245ec8);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(36, 94, 200, 0.65);
}

/* 未购买卡片底部按钮：「购买」 */
.knowledge-shelf .buy-btn {
  margin-top: auto;
  align-self: flex-start;
  border-color: #ea580c;
  background: linear-gradient(135deg, #ea580c 0%, #d9460f 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px -8px rgba(234, 88, 12, 0.58);
}

.knowledge-shelf .buy-btn:hover {
  background: linear-gradient(135deg, #c2410c 0%, #b93808 100%);
  border-color: #c2410c;
  transform: translateY(-1px);
}

.knowledge-shelf .enter:hover,
.knowledge-shelf .text-button:hover,
.knowledge-shelf .demo-back:hover,
.knowledge-shelf .demo-cmp:hover,
.knowledge-shelf .demo-fs:hover,
.knowledge-shelf .demo-pop:hover,
.knowledge-shelf .demo-studio:hover {
  transform: translateY(-1px);
}

.knowledge-shelf .text-button,
.knowledge-shelf .demo-back {
  border-color: #bfd4f4;
  color: var(--blue, #245ec8);
  background: #edf4ff;
}

.knowledge-shelf .demo-cmp {
  border-color: #c5d8f6;
  color: var(--blue, #245ec8);
  background: #edf4ff;
}

.knowledge-shelf .demo-fs {
  border-color: var(--blue, #245ec8);
  background: var(--blue, #245ec8);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(36, 94, 200, 0.65);
}

.knowledge-shelf .demo-fs[aria-pressed="true"] {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.knowledge-shelf .demo-pop {
  color: #1f4d96;
  background: rgba(255, 255, 255, 0.92);
}

.knowledge-shelf .demo-studio {
  color: #3a506e;
  background: rgba(244, 248, 254, 0.92);
}

/* ============================================================================
 * 购买解锁弹窗：深度复用独立站 (.tw-recharge-dialog + .tw-topup-options) 视觉体系
 * ============================================================================ */
dialog.pxy-buy-dialog.tw-recharge-dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid rgba(190, 210, 238, 0.92);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 100%);
  color: var(--ink, #17253b);
  box-shadow:
    0 28px 72px -18px rgba(15, 32, 62, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: auto;
}

dialog.pxy-buy-dialog.tw-recharge-dialog::backdrop {
  background: rgba(15, 26, 46, 0.44);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pxy-buy-frame.tw-recharge-frame {
  padding: 22px 24px 18px;
  display: grid;
  gap: 14px;
}

.pxy-buy-heading.tw-recharge-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.pxy-buy-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue, #245ec8);
  margin-bottom: 3px;
}

.pxy-buy-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #132540;
}

.pxy-buy-close.button {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #365072;
  background: #f2f6fc;
  border: 1px solid #cfddf0;
}

.pxy-buy-close.button:hover {
  background: #e6effc;
  border-color: #9abaf0;
}

.pxy-buy-summary.tw-recharge-summary {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f6fe;
  border: 1px solid #d5e3f8;
  color: #2c4466;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.pxy-summary-dot {
  color: #94a3b8;
}

.pxy-tier-grid.tw-topup-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pxy-tier-card.tw-topup-option {
  position: relative;
  min-height: 178px;
  padding: 15px 15px 14px;
  border-radius: 14px;
  border: 1.5px solid #cfdced;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px -14px rgba(18, 42, 82, 0.18);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.pxy-tier-card.tw-topup-option:hover {
  transform: translateY(-2px);
  border-color: #7ea6e8;
  box-shadow: 0 12px 26px -14px rgba(28, 78, 216, 0.24);
}

.pxy-tier-card.tw-topup-option[aria-pressed="true"] {
  border-color: #1c4ed8;
  background: linear-gradient(180deg, #eff5ff 0%, #f7faff 100%);
  box-shadow:
    inset 0 0 0 1px #1c4ed8,
    0 14px 28px -16px rgba(28, 78, 216, 0.34);
}

.pxy-tier-card.is-vip-tier[aria-pressed="true"] {
  border-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #fffdf5 100%);
  box-shadow:
    inset 0 0 0 1px #d97706,
    0 14px 28px -16px rgba(217, 119, 6, 0.32);
}

.pxy-tier-card .tw-topup-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1.5px solid #c5d4e8;
  background: #ffffff;
  color: transparent;
  font-size: 12px;
  font-weight: 850;
  transition: all 140ms ease;
}

.pxy-tier-card[aria-pressed="true"] .tw-topup-check {
  border-color: #1c4ed8;
  background: #1c4ed8;
  color: #ffffff;
}

.pxy-tier-card.is-vip-tier[aria-pressed="true"] .tw-topup-check {
  border-color: #d97706;
  background: #d97706;
  color: #ffffff;
}

.pxy-tier-card .tw-tier-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #eaf1fb;
  color: #245ec8;
}

.pxy-tier-card .tw-tier-tag.is-bundle {
  background: #e6f4ea;
  color: #137333;
}

.pxy-tier-card .premium-tag.tw-tier-tag {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.pxy-tier-price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pxy-tier-amount {
  font-size: 25px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  color: #132540;
  font-variant-numeric: tabular-nums;
}

.pxy-tier-card[aria-pressed="true"] .pxy-tier-amount {
  color: #1c4ed8;
}

.pxy-tier-card.is-vip-tier .pxy-tier-amount {
  color: #b45309;
}

.pxy-tier-unit {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #5b6d86;
}

.pxy-tier-name {
  display: block;
  font-size: 14.5px;
  font-weight: 780;
  color: #17253b;
  line-height: 1.3;
}

.pxy-tier-desc {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: #365072;
  line-height: 1.4;
}

.pxy-tier-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #5c708b;
  line-height: 1.35;
}

.pxy-buy-action-bar.tw-topup-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid #d4e2f4;
  background: #f7faff;
  flex-wrap: wrap;
}

.pxy-buy-selection-copy {
  margin: 0;
  display: grid;
  gap: 2px;
}

.pxy-buy-selection-copy strong {
  font-size: 14.5px;
  font-weight: 780;
  color: #132540;
}

.pxy-buy-selection-copy span {
  font-size: 12px;
  color: #536782;
}

.pxy-confirm-pay.button.primary.tw-pay-cta {
  min-height: 44px;
  padding: 9px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 780;
  border-color: #1849b8;
  background: linear-gradient(135deg, #245ec8, #19479f);
  color: #ffffff;
  box-shadow: 0 12px 24px -14px rgba(24, 73, 184, 0.72);
}

.pxy-confirm-pay.button.primary.tw-pay-cta:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #153e8c);
}

.pxy-buy-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.pxy-reset-link {
  border: 0;
  background: none;
  padding: 2px 6px;
  color: var(--blue, #245ec8);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .pxy-tier-grid.tw-topup-options {
    grid-template-columns: 1fr;
  }
  .pxy-tier-card.tw-topup-option {
    min-height: auto;
  }
}

/* ============================================================================
 * 进入题型演示（#demo/...）自动全宽全高展开铺满视口 + 全屏自动屏蔽干扰项（如图 2）
 * ============================================================================ */
body.knowledge-page.is-demo {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.knowledge-page.is-demo .site-header {
  display: none !important;
}

body.knowledge-page.is-demo .container {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.knowledge-page.is-demo .knowledge-main.is-demo {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.knowledge-shelf .demo-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.knowledge-shelf .demo-shell:fullscreen,
.knowledge-shelf .demo-shell:-webkit-full-screen,
body.knowledge-page.is-pseudo-fullscreen .knowledge-shelf .demo-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  gap: 0;
  background: #f3f8fc;
  box-sizing: border-box;
}

.knowledge-shelf .demo-shell:fullscreen .demo-exit-hide,
.knowledge-shelf .demo-shell:-webkit-full-screen .demo-exit-hide,
.knowledge-shelf .demo-shell.is-fullscreen .demo-exit-hide,
body.knowledge-page.is-fullscreen-active .demo-exit-hide {
  display: none !important;
}

.knowledge-shelf .demo-shell:fullscreen .demo-bar,
.knowledge-shelf .demo-shell:-webkit-full-screen .demo-bar,
.knowledge-shelf .demo-shell.is-fullscreen .demo-bar {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid #dde7f2;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 18px;
}

.knowledge-shelf .demo-shell:fullscreen .demo-frame,
.knowledge-shelf .demo-shell:-webkit-full-screen .demo-frame,
.knowledge-shelf .demo-shell.is-fullscreen .demo-frame {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.knowledge-shelf .demo-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 249, 255, 0.84) 100%);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 10px 26px -18px rgba(17, 42, 80, 0.25);
}

.knowledge-shelf .demo-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.knowledge-shelf .demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #c9dcf8;
  color: #163767;
  text-decoration: none;
  flex-shrink: 0;
}

.knowledge-shelf .demo-brand-logo {
  height: 19px;
  width: auto;
  display: block;
}

.knowledge-shelf .demo-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.knowledge-shelf .demo-title strong {
  font-size: 16px;
  color: #132540;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-shelf .demo-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.knowledge-shelf .demo-sci-modes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #eaf1fa;
  border: 1px solid #cfdff3;
}

.knowledge-shelf .demo-sci-mode {
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #415673;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.knowledge-shelf .demo-sci-mode:hover {
  color: #132540;
}

.knowledge-shelf .demo-sci-mode.is-on {
  background: #ffffff;
  color: var(--blue, #245ec8);
  box-shadow: 0 2px 6px rgba(17, 42, 80, 0.10);
}

.knowledge-shelf .demo-sci-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.knowledge-shelf .demo-sci-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 10px;
  border: 1px solid rgba(190, 210, 238, 0.95);
  background: #ffffff;
  color: #365072;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.knowledge-shelf .demo-sci-tool:hover {
  border-color: #8ab0ea;
  color: var(--blue, #245ec8);
}

.knowledge-shelf .demo-sci-tool.is-on {
  border-color: #bfd4f4;
  background: #edf4ff;
  color: var(--blue, #245ec8);
}

.knowledge-shelf .demo-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 38px -18px rgba(16, 40, 76, 0.28);
}

.knowledge-shelf .shelf-status {
  position: sticky;
  bottom: 10px;
  margin: 8px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 37, 59, 0.92);
  color: #fff;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .knowledge-shelf .demo-title span {
    display: none;
  }
  .knowledge-shelf .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .knowledge-shelf .browse {
    grid-template-columns: 1fr;
  }
  .knowledge-shelf .rail {
    position: static;
  }
  .knowledge-shelf .model-list,
  .knowledge-shelf .topic-grid {
    grid-template-columns: 1fr;
  }
  body.knowledge-page .header-vip-banner {
    display: none;
  }
}

@media (max-width: 768px) {
  body.knowledge-page .container {
    width: calc(100% - 20px);
    padding: 8px 0 24px;
  }
  body.knowledge-page.is-demo .container {
    width: 100vw;
    padding: 4px;
  }
  .knowledge-shelf .demo-brand {
    display: none;
  }
  .knowledge-shelf .demo-bar {
    padding: 6px 8px;
    gap: 8px;
  }
}

/* knowledge-wallet-20261106 */
body.knowledge-page .knowledge-wallet-badge{
  flex:0 0 auto;
  margin:0;
}
body.knowledge-page .knowledge-wallet-badge .studio-wallet-copy{
  align-items:flex-start;
}
body.knowledge-page .knowledge-wallet-hint{
  display:block;
  font-size:10px;
  font-weight:650;
  letter-spacing:.02em;
  color:#0f766e;
  line-height:1.2;
  margin-top:1px;
}
body.knowledge-page .knowledge-wallet-badge.is-empty .knowledge-wallet-hint{
  color:#64748b;
}
body.knowledge-page .knowledge-wallet-badge.is-guest .knowledge-wallet-hint{
  color:#315966;
}
@media (max-width:900px){
  body.knowledge-page .knowledge-wallet-hint{display:none}
}

/* =========================================================
 * 全局知识点与3D实验秒搜栏 (shelf-global-search)
 * ========================================================= */
.knowledge-shelf .shelf-global-search {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.94) 100%);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 15px;
  padding: 10px 14px;
  margin-bottom: 11px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.knowledge-shelf .shelf-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 118, 110, 0.24);
  border-radius: 11px;
  padding: 5px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-shelf .shelf-search-bar:focus-within {
  border-color: #0d9488;
  box-shadow: 0 0 0 3.5px rgba(13, 148, 136, 0.14);
}

.knowledge-shelf .shelf-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  flex-shrink: 0;
}

.knowledge-shelf .shelf-search-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 4px 2px !important;
  margin: 0 !important;
  font-size: 14px;
  font-weight: 550;
  color: #0f172a;
  line-height: 1.4;
}

.knowledge-shelf .shelf-search-input::placeholder {
  color: #64748b;
  font-weight: 450;
}

.knowledge-shelf .shelf-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.knowledge-shelf .shelf-search-clear {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.knowledge-shelf .shelf-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.knowledge-shelf .shelf-search-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.knowledge-shelf .shelf-search-count {
  font-size: 12px;
  font-weight: 650;
  color: #475569;
  white-space: nowrap;
}

.knowledge-shelf .shelf-search-kbd {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.knowledge-shelf .shelf-hot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.knowledge-shelf .shelf-hot-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.knowledge-shelf .shelf-hot-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  margin-right: 2px;
}

.knowledge-shelf .shelf-hot-chip {
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(240, 253, 250, 0.78);
  color: #115e59;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.knowledge-shelf .shelf-hot-chip:hover {
  background: #ccfbf1;
  border-color: #0d9488;
  transform: translateY(-1px);
}

.knowledge-shelf .shelf-hot-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.knowledge-shelf .shelf-search-results {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  padding: 15px 17px 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
}

.knowledge-shelf .search-results-head {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.knowledge-shelf .shelf-search-results.is-empty .search-results-head {
  margin-bottom: 8px;
}

.knowledge-shelf .search-results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-shelf .search-results-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.knowledge-shelf .search-results-summary strong {
  font-size: 15.5px;
  font-weight: 780;
  color: #0f172a;
}

.knowledge-shelf .search-results-summary span {
  font-size: 12px;
  color: #64748b;
}

.knowledge-shelf .search-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-shelf .search-filter-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.knowledge-shelf .search-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.knowledge-shelf .search-filter-chip em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.8;
}

.knowledge-shelf .search-filter-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.knowledge-shelf .search-clear-btn {
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  padding: 4px 11px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
}

.knowledge-shelf .search-clear-btn:hover {
  background: #ccfbf1;
}

.knowledge-shelf .search-semantic-hint {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 9px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 12px;
}

.knowledge-shelf .search-semantic-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
}

.knowledge-shelf .search-related-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.knowledge-shelf .search-related-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.knowledge-shelf .search-related-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.knowledge-shelf .search-rel-chip {
  border: 1px solid #dbe6f6;
  background: #f8fbff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.knowledge-shelf .search-rel-chip:hover {
  background: #e0ecff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.knowledge-shelf .search-result-card {
  margin: 0;
}

.knowledge-shelf .search-cover-subj[data-subj="math"] {
  background: rgba(29, 78, 216, 0.82);
}

.knowledge-shelf .search-cover-subj[data-subj="physics"] {
  background: rgba(15, 118, 110, 0.84);
}

.knowledge-shelf .search-cover-subj[data-subj="biology"] {
  background: rgba(21, 128, 61, 0.84);
}

.knowledge-shelf .search-cover-subj[data-subj="chemistry"] {
  background: rgba(180, 83, 9, 0.85);
}

.knowledge-shelf .search-card-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 20px;
}

.knowledge-shelf .search-why-pill {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.knowledge-shelf .search-why-pill.is-synonym {
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid #c7d9fb;
}

.knowledge-shelf .search-why-pill.is-typo {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.knowledge-shelf .search-why-pill.is-related {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.knowledge-shelf .search-topic-mini {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  padding: 1px 4px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease, background 0.14s ease;
}

.knowledge-shelf .search-topic-mini:hover {
  color: #1d4ed8;
  background: #eff6ff;
}

.knowledge-shelf .search-related-section.has-divider {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed #cbd5e1;
}

.knowledge-shelf .search-sub-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 12px;
  color: #64748b;
}

.knowledge-shelf .search-sub-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-size: 12px;
  font-weight: 760;
}

.knowledge-shelf mark.search-hl {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .knowledge-shelf .shelf-search-count,
  .knowledge-shelf .shelf-search-kbd {
    display: none;
  }
}

/* ============================================================================
 * 5. 单行子专题胶囊筛选条 + 学习板块 3 列高密度图卡墙 (2026-11-14)
 * ============================================================================ */
.knowledge-shelf .stage-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.knowledge-shelf .stage-top-row .crumb {
  margin: 0;
}

.knowledge-shelf .search-result-card .model-feature {
  margin: 1px 0;
  padding: 5px 9px;
  font-size: 12.2px;
  line-height: 1.42;
}

.knowledge-shelf .model-feature-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 单行胶囊筛选条 */
.knowledge-shelf .topic-capsule-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  margin: 0 0 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(196, 215, 242, 0.92);
  box-shadow: 0 6px 16px -14px rgba(18, 44, 86, 0.18);
}

.knowledge-shelf .topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(196, 214, 240, 0.92);
  background: #f7faff;
  color: #2c4465;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
}

.knowledge-shelf .topic-pill:hover {
  border-color: var(--blue, #245ec8);
  background: #edf4ff;
  color: var(--blue, #245ec8);
}

.knowledge-shelf .topic-pill.is-active {
  background: linear-gradient(135deg, #245ec8 0%, #1b4aa5 100%);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 14px -8px rgba(29, 78, 216, 0.65);
}

.knowledge-shelf .topic-pill-count {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
  min-width: 20px;
  text-align: center;
  border-radius: 999px;
  background: rgba(36, 94, 200, 0.11);
  color: var(--blue, #245ec8);
}

.knowledge-shelf .topic-pill.is-active .topic-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.knowledge-shelf .topic-head {
  margin: 0 0 11px;
  padding-bottom: 9px;
}

.knowledge-shelf .topic-head h1 {
  font-size: 19.5px;
}

.knowledge-shelf .topic-promo-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff6f0;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-shelf .topic-promo-mini del {
  color: #dc2626;
  text-decoration: line-through;
}

.knowledge-shelf .topic-promo-mini strong {
  color: #c2410c;
  font-size: 13.5px;
  font-weight: 850;
}

/* ============================================================================
 * 方案 1：3 列高密度图卡墙 (.model-list.is-layout-grid3 + .model.is-card-grid3)
 * ============================================================================ */
.knowledge-shelf .model-list.is-layout-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.knowledge-shelf .model.is-card-grid3 {
  padding: 0;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
}

.knowledge-shelf .card3-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(203, 218, 242, 0.85);
  background: #f1f5fb;
  overflow: hidden;
  cursor: pointer;
}

.knowledge-shelf .card3-cover .model-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.knowledge-shelf .model.is-card-grid3.is-open:hover .card3-cover .model-preview-img {
  transform: scale(1.045);
}

.knowledge-shelf .card3-cover-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.knowledge-shelf .card3-cover-status {
  position: absolute;
  right: 8px;
  top: 8px;
  display: inline-flex;
}

.knowledge-shelf .card3-cover-status .status-badge-free,
.knowledge-shelf .card3-cover-status .status-badge-owned,
.knowledge-shelf .card3-cover-status .price-tag {
  min-height: 22px;
  padding: 1px 8px;
  font-size: 11.5px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.knowledge-shelf .card3-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px 12px;
  flex: 1;
  min-width: 0;
}

.knowledge-shelf .model.is-card-grid3 .model-title {
  font-size: 15px;
  line-height: 1.32;
  font-weight: 760;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.knowledge-shelf .model.is-card-grid3 .model-feature {
  margin: 0;
  padding: 5px 8px;
  font-size: 11.8px;
  line-height: 1.42;
}

.knowledge-shelf .card3-footer {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.knowledge-shelf .card3-footer .module-list.is-grouped {
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.knowledge-shelf .card3-footer .module-list.is-grouped li {
  padding: 2px 6.5px;
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-shelf .card3-footer .enter,
.knowledge-shelf .card3-footer .buy-btn {
  margin-top: 0;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ============================================================================
 * 方案 2：2 列紧凑左文右图 (.model-list.is-layout-split2 + .model.is-card-split2)
 * ============================================================================ */
.knowledge-shelf .model-list.is-layout-split2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.knowledge-shelf .model.is-card-split2 {
  padding: 13px 15px;
  gap: 7px;
  min-height: 0;
}

.knowledge-shelf .model.is-card-split2 .model-title {
  font-size: 16.5px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.knowledge-shelf .model.is-card-split2 .model-feature {
  margin: 1px 0;
  padding: 5px 9px;
  font-size: 12.2px;
  line-height: 1.42;
}

.knowledge-shelf .model.is-card-split2 .model-bottom-split {
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 12px;
}

.knowledge-shelf .model.is-card-split2 .model-preview-box {
  width: 196px;
}

@media (max-width: 1220px) {
  .knowledge-shelf .model-list.is-layout-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .knowledge-shelf .model-list.is-layout-grid3,
  .knowledge-shelf .model-list.is-layout-split2 {
    grid-template-columns: 1fr;
  }
}
