:root {
  --bg: #0b0d10;
  --panel: #12161c;
  --card: #151b22;
  --text: #e8eef7;
  --muted: #a9b6c8;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #5aa7ff;
  --danger: #ff6b6b;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei",
    Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(90, 167, 255, 0.12), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(255, 180, 90, 0.08), transparent 55%), var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 14px 12px;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar__h1 {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 16px;
}

.topbar__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.main {
  padding: 14px 14px 88px;
  max-width: 980px;
  margin: 0 auto;
}

.panel {
  background: rgba(18, 22, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  color: var(--muted);
  font-size: 12px;
}

.input,
.select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.input:focus,
.select:focus {
  border-color: rgba(90, 167, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(90, 167, 255, 0.15);
}

.filters {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.row--wrap {
  flex-wrap: wrap;
  justify-content: flex-start;
}

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

.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: rgba(90, 167, 255, 0.16);
  border-color: rgba(90, 167, 255, 0.4);
}

.btn--ghost {
  background: transparent;
}

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

.card {
  background: rgba(21, 27, 34, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 160px;
  display: grid;
  grid-template-rows: 112px auto;
}

.card__img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.card__body {
  padding: 10px 10px 12px;
  display: grid;
  gap: 6px;
}

.card__title {
  font-weight: 650;
  font-size: 13px;
  line-height: 1.2;
}

.card__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 13, 16, 0.84);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nav__btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.nav__btn--active {
  color: var(--text);
  border-color: rgba(90, 167, 255, 0.45);
  background: rgba(90, 167, 255, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}

.modal__card {
  width: min(560px, 100%);
  background: rgba(18, 22, 28, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.modal__card--wide {
  width: min(860px, 100%);
}

.modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal__title {
  font-weight: 750;
  font-size: 16px;
}

.modal__desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

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

.item__img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.audio {
  width: 100%;
  margin-top: 4px;
}

.transcript {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.transcript__title {
  font-weight: 650;
  font-size: 13px;
}

.transcript__body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.dlItem {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(21, 27, 34, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.dlItem__title {
  font-weight: 650;
  font-size: 13px;
}

.dlItem__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.dlItem__status {
  font-size: 12px;
  color: var(--muted);
}

.checks {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: rgba(90, 167, 255, 0.75);
  transition: width 120ms linear;
}

.mapWrap {
  margin-top: 12px;
  background: rgba(18, 22, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mapImage {
  width: 100%;
  height: auto;
  display: block;
}

.about__title {
  font-weight: 750;
  font-size: 14px;
  margin-top: 6px;
}

.about__list {
  margin: 10px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.about__wechat {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .item {
    grid-template-columns: 1fr;
  }
  .item__img {
    height: 260px;
  }
  .filters {
    grid-template-columns: 1fr;
  }
}

