/* ANT-SYS-2026-0902-009 | 蚂蚁力量全媒体案例：缩略图索引与左媒体右Prompt详情 */

.hell-grind-case {
  --qm-bg: #111214;
  --qm-panel: #17191c;
  --qm-panel-soft: #202328;
  --qm-line: rgba(255, 255, 255, 0.1);
  --qm-text: #f4f4f2;
  --qm-muted: #a9adb4;
  --qm-lime: #b5ef45;
  width: min(1480px, calc(100vw - 44px));
  margin: 0 auto 52px;
  overflow: hidden;
  border: 1px solid var(--qm-line);
  border-radius: 12px;
  color: var(--qm-text);
  background: var(--qm-bg);
}

.hell-grind-case :where(h1, h2, h3, h4, p, figure) {
  margin-top: 0;
}

.hell-grind-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--qm-line);
  color: var(--qm-muted);
  font-size: 12px;
}

.hell-grind-breadcrumb a {
  color: var(--qm-lime);
  text-decoration: none;
}

.hell-grind-film {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050607;
}

.hell-grind-film :is(video, iframe, img) {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #050607;
}

.hell-grind-section-title {
  padding: 22px 24px 15px;
}

.hell-grind-section-title > span {
  color: var(--qm-lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hell-grind-section-title h2 {
  margin: 5px 0 4px;
  color: var(--qm-text);
  font-size: 25px !important;
}

.hell-grind-section-title p {
  margin: 0;
  color: var(--qm-muted);
  font-size: 13px;
}

.hell-grind-prompt-dock {
  padding-bottom: 24px;
  border-top: 1px solid var(--qm-line);
  border-bottom: 1px solid var(--qm-line);
  background: #151619;
}

.hell-grind-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px;
}

.hell-grind-prompt-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--qm-line);
  border-radius: 8px;
  background: var(--qm-panel-soft);
}

.hell-grind-prompt-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
  color: var(--qm-lime);
  font-size: 10px;
  font-weight: 900;
}

.hell-grind-prompt-grid button {
  border: 0;
  color: var(--qm-lime);
  background: transparent;
  cursor: pointer;
}

.hell-grind-prompt-grid h4 {
  margin: 7px 14px 10px;
  color: var(--qm-text);
  font-size: 15px !important;
}

.hell-grind-prompt-grid pre {
  max-height: 250px;
  margin: 0;
  padding: 13px 14px;
  overflow: auto;
  border-top: 1px solid var(--qm-line);
  white-space: pre-wrap;
  color: #dbdde1;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hell-grind-library {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: 0;
  border-bottom: 1px solid var(--qm-line);
}

.hell-grind-folders {
  border-right: 1px solid var(--qm-line);
  background: #151619;
}

.hell-grind-folder-list {
  display: grid;
  gap: 4px;
  padding: 0 12px 18px;
}

.hell-grind-folder {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 7px;
  color: var(--qm-muted);
  text-decoration: none;
}

.hell-grind-folder:hover,
.hell-grind-folder.is-current {
  color: var(--qm-text);
  background: rgba(181, 239, 69, 0.1);
}

.hell-grind-folder small {
  color: var(--qm-lime);
}

.hell-grind-assets {
  min-width: 0;
  padding-bottom: 24px;
}

.hell-grind-asset-filters {
  display: flex;
  gap: 7px;
  padding: 0 24px 14px;
  flex-wrap: wrap;
}

.hell-grind-asset-filters button {
  padding: 7px 11px;
  border: 1px solid var(--qm-line);
  border-radius: 999px;
  color: var(--qm-muted);
  background: transparent;
  cursor: pointer;
}

.hell-grind-asset-filters button.is-active {
  color: #111;
  border-color: var(--qm-lime);
  background: var(--qm-lime);
}

.hell-grind-asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 24px;
}

.hell-grind-asset-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--qm-line);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: var(--qm-panel);
  cursor: pointer;
}

.hell-grind-asset-card figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #050607;
}

.hell-grind-asset-card figure > :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hell-grind-asset-card figure > span,
.hell-grind-asset-card figure > em,
.hell-grind-asset-card figure > b {
  position: absolute;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
}

.hell-grind-asset-card figure > span {
  top: 7px;
  left: 7px;
  color: #111;
  background: var(--qm-lime);
  font-weight: 900;
}

.hell-grind-asset-card figure > em {
  right: 7px;
  bottom: 7px;
  color: var(--qm-text);
  background: rgba(0, 0, 0, 0.72);
}

.hell-grind-asset-card figure > b {
  left: 7px;
  bottom: 7px;
  color: var(--qm-lime);
  background: rgba(0, 0, 0, 0.72);
}

.hell-grind-asset-card > div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.hell-grind-asset-card strong {
  overflow: hidden;
  color: var(--qm-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hell-grind-asset-card small {
  color: var(--qm-muted);
  font-size: 10px;
}

.learning-audio-thumb {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--qm-lime);
}

.learning-audio-thumb span {
  margin-right: 5px;
  font-size: 28px;
}

.learning-audio-thumb i {
  width: 4px;
  height: 26px;
  border-radius: 3px;
  background: currentColor;
}

.learning-audio-thumb i:nth-child(2n) {
  height: 42px;
}

.learning-asset-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: block;
  background: rgba(0, 0, 0, 0.9);
}

.learning-asset-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  color: var(--qm-text);
  background: var(--qm-panel);
}

.learning-asset-close {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.learning-asset-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: #050607;
}

.learning-asset-stage > :is(img, video, iframe) {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.learning-asset-audio-stage {
  width: min(700px, 92%);
  display: grid;
  gap: 20px;
  place-items: center;
  color: var(--qm-text);
}

.learning-asset-audio-stage > span {
  color: var(--qm-lime);
  font-size: 76px;
}

.learning-asset-audio-stage audio {
  width: 100%;
}

.learning-asset-inspector {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-left: 1px solid var(--qm-line);
  background: var(--qm-panel);
}

.learning-asset-inspector > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--qm-line);
}

.learning-asset-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #111;
  background: var(--qm-lime);
  font-weight: 900;
}

.learning-asset-inspector > header > div:last-child {
  display: grid;
  gap: 3px;
}

.learning-asset-inspector :is(header span, footer span) {
  color: var(--qm-muted);
  font-size: 10px;
}

.learning-asset-prompt {
  padding: 18px;
  border-bottom: 1px solid var(--qm-line);
}

.learning-asset-prompt > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--qm-muted);
  font-size: 11px;
}

.learning-asset-prompt button {
  color: var(--qm-text);
  border: 1px solid var(--qm-line);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.learning-asset-prompt p {
  max-height: 46vh;
  margin: 14px 0 0;
  overflow: auto;
  color: #ded9ca;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.learning-asset-prompt small {
  display: block;
  margin-top: 12px;
  color: var(--qm-muted);
  line-height: 1.55;
}

.learning-asset-meta {
  padding: 16px 18px;
  border-bottom: 1px solid var(--qm-line);
}

.learning-asset-meta summary {
  color: var(--qm-muted);
  cursor: pointer;
  font-size: 12px;
}

.learning-asset-meta dl {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
}

.learning-asset-meta dl > div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
}

.learning-asset-meta :is(dt, dd) {
  margin: 0;
  font-size: 11px;
}

.learning-asset-meta dt {
  color: var(--qm-muted);
}

.learning-asset-meta dd {
  color: var(--qm-text);
  text-align: right;
}

.learning-asset-inspector > footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 18px;
}

.learning-asset-inspector > footer a {
  color: var(--qm-lime);
  font-weight: 800;
  text-decoration: none;
}

body.case-asset-detail-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hell-grind-asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hell-grind-case {
    width: calc(100vw - 20px);
  }

  .hell-grind-prompt-grid,
  .hell-grind-library {
    grid-template-columns: 1fr;
  }

  .hell-grind-folders {
    border-right: 0;
    border-bottom: 1px solid var(--qm-line);
  }

  .hell-grind-folder-list {
    display: flex;
    overflow-x: auto;
  }

  .hell-grind-folder {
    flex: 0 0 165px;
  }

  .hell-grind-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 14px;
  }

  .hell-grind-asset-filters {
    flex-wrap: nowrap;
    padding-inline: 14px;
    overflow-x: auto;
  }

  .learning-asset-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(270px, 48dvh) minmax(0, 1fr);
  }

  .learning-asset-stage {
    padding: 10px;
  }

  .learning-asset-inspector {
    border-top: 1px solid var(--qm-line);
    border-left: 0;
  }
}
