/* ==========================================================================
   shell.css — 站点骨架：左侧导航轨 / 顶部状态条 / 按钮 / 页脚
   ========================================================================== */

/* ---------------- 布局骨架 ---------------- */
.mt-app {
  min-height: 100vh;
}

.mt-main {
  margin-left: var(--mt-rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mt-view {
  width: 100%;
  max-width: var(--mt-max);
  margin: 0 auto;
  padding: 26px var(--mt-pad) 0;
  flex: 1;
}

/* ---------------- 左侧导航轨 ---------------- */
.mt-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--mt-rail);
  display: flex;
  flex-direction: column;
  background: rgba(7, 9, 12, 0.96);
  border-right: 1px solid var(--mt-line);
  backdrop-filter: blur(14px);
}

.mt-rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--mt-top);
  padding: 0 20px;
  border-bottom: 1px solid var(--mt-line);
  flex: 0 0 auto;
}

.mt-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--mt-line-3);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 66, 56, 0.22), transparent 70%);
}

.mt-mark::before,
.mt-mark::after {
  content: "";
  position: absolute;
  background: var(--mt-live);
}

.mt-mark::before {
  width: 14px;
  height: 1.5px;
  top: 10px;
}

.mt-mark::after {
  width: 1.5px;
  height: 14px;
  left: 10px;
}

.mt-mark span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mt-acid);
  position: absolute;
  right: 7px;
  bottom: 7px;
  box-shadow: 0 0 0 3px rgba(216, 242, 74, 0.14);
}

.mt-brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mt-brand__txt em {
  font-family: var(--mt-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--mt-text-3);
  margin-top: 3px;
}

.mt-nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-width: thin;
}

.mt-nav__label {
  font-family: var(--mt-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--mt-text-3);
  padding: 4px 10px 10px;
  text-transform: uppercase;
}

.mt-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 3px;
  color: var(--mt-text-2);
  font-size: 13.5px;
  line-height: 1.3;
  border-left: 2px solid transparent;
}

.mt-nav a i {
  font-family: var(--mt-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--mt-text-3);
  letter-spacing: 0.06em;
  width: 16px;
  flex: 0 0 auto;
}

.mt-nav a b {
  font-weight: 500;
  flex: 1 1 auto;
}

.mt-nav a small {
  font-family: var(--mt-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--mt-text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.22s var(--mt-ease), transform 0.22s var(--mt-ease);
}

.mt-nav a:hover,
.mt-nav a:focus-visible {
  color: var(--mt-text);
  background: rgba(233, 238, 245, 0.045);
}

.mt-nav a:hover small,
.mt-nav a:focus-visible small {
  opacity: 1;
  transform: none;
}

.mt-nav a[aria-current="page"] {
  color: var(--mt-text);
  background: linear-gradient(90deg, rgba(255, 66, 56, 0.14), rgba(255, 66, 56, 0));
  border-left-color: var(--mt-live);
}

.mt-nav a[aria-current="page"] i {
  color: var(--mt-live);
}

.mt-nav__split {
  height: 1px;
  margin: 12px 10px;
  background: var(--mt-line);
}

.mt-rail__foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--mt-line);
  padding: 12px 16px 14px;
  display: grid;
  gap: 8px;
}

.mt-rail__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mt-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mt-text-2);
  text-transform: uppercase;
}

.mt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mt-live);
  box-shadow: 0 0 0 0 rgba(255, 66, 56, 0.5);
  animation: mt-pulse 2.4s infinite;
  flex: 0 0 auto;
}

.mt-dot--acid {
  background: var(--mt-acid);
  animation: none;
  box-shadow: none;
}

@keyframes mt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 66, 56, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 66, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 66, 56, 0); }
}

.mt-rail__time {
  font-family: var(--mt-mono);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--mt-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mt-rail__time small {
  font-size: 9px;
  color: var(--mt-text-3);
  letter-spacing: 0.16em;
  margin-left: 6px;
}

.mt-rail__meta {
  font-size: 10.5px;
  color: var(--mt-text-3);
  line-height: 1.55;
}

/* ---------------- 顶部状态条 ---------------- */
.mt-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--mt-top);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--mt-pad);
  background: rgba(10, 12, 15, 0.86);
  border-bottom: 1px solid var(--mt-line);
  backdrop-filter: blur(16px);
}

.mt-burger {
  display: none;
  width: 36px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--mt-line-2);
  border-radius: 3px;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
}

.mt-burger span,
.mt-burger span::before,
.mt-burger span::after {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 1.5px;
  background: var(--mt-text);
  content: "";
  transition: transform 0.2s var(--mt-ease), opacity 0.2s var(--mt-ease);
}

.mt-burger span {
  top: 16px;
}

.mt-burger span::before {
  top: -5px;
  left: 0;
}

.mt-burger span::after {
  top: 5px;
  left: 0;
}

.mt-burger[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.mt-burger[aria-expanded="true"] span::before {
  opacity: 0;
}

.mt-burger[aria-expanded="true"] span::after {
  transform: rotate(-90deg) translateY(-5px);
  top: 5px;
}

.mt-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mt-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mt-text-3);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.mt-crumb b {
  color: var(--mt-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-crumb i {
  color: var(--mt-line-3);
  font-style: normal;
}

.mt-top__mid {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.mt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--mt-line);
  border-radius: 2px;
  font-family: var(--mt-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mt-text-2);
  white-space: nowrap;
}

.mt-chip--live {
  border-color: rgba(255, 66, 56, 0.5);
  color: #ffb4b0;
  background: var(--mt-live-soft);
}

.mt-chip--acid {
  border-color: rgba(216, 242, 74, 0.35);
  color: var(--mt-acid);
}

.mt-top__acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* ---------------- 按钮 ---------------- */
.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 3px;
  border: 1px solid var(--mt-line-2);
  background: transparent;
  color: var(--mt-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.22s var(--mt-ease), border-color 0.22s var(--mt-ease), color 0.22s var(--mt-ease), transform 0.22s var(--mt-ease);
}

.mt-btn:hover {
  border-color: var(--mt-line-3);
  background: rgba(233, 238, 245, 0.06);
  transform: translateY(-1px);
}

.mt-btn--live {
  background: var(--mt-live);
  border-color: var(--mt-live);
  color: #fff;
}

.mt-btn--live:hover {
  background: #ff5a50;
  border-color: #ff5a50;
  color: #fff;
}

.mt-btn--acid {
  background: var(--mt-acid);
  border-color: var(--mt-acid);
  color: #10130a;
}

.mt-btn--acid:hover {
  background: #e4ff63;
  border-color: #e4ff63;
  color: #10130a;
}

.mt-btn--ghost {
  border-color: transparent;
  color: var(--mt-text-2);
  padding: 0 10px;
}

.mt-btn--ghost:hover {
  color: var(--mt-text);
  background: transparent;
}

.mt-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  gap: 6px;
}

.mt-btn--wide {
  width: 100%;
}

.mt-btn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* ---------------- 页脚 ---------------- */
.mt-foot {
  margin-top: auto;
  border-top: 1px solid var(--mt-line);
  background: rgba(7, 9, 12, 0.7);
}

.mt-foot__in {
  max-width: var(--mt-max);
  margin: 0 auto;
  padding: 46px var(--mt-pad) 22px;
}

.mt-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--mt-line);
}

.mt-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mt-foot__brand strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.mt-foot__brand em {
  font-family: var(--mt-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mt-text-3);
  display: block;
  margin-top: 2px;
}

.mt-foot p {
  font-size: 12.5px;
  color: var(--mt-text-3);
  line-height: 1.75;
}

.mt-foot h4 {
  font-family: var(--mt-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mt-text-3);
  margin-bottom: 14px;
  font-weight: 500;
}

.mt-foot__links {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--mt-text-2);
}

.mt-foot__links a:hover {
  color: var(--mt-live);
}

.mt-foot__note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--mt-line-2);
  border-radius: 3px;
  font-size: 12px;
  color: var(--mt-text-3);
  line-height: 1.8;
}

.mt-foot__note b {
  color: var(--mt-text-2);
  font-weight: 600;
}

.mt-foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  font-family: var(--mt-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mt-text-3);
}

.mt-foot__bar a:hover {
  color: var(--mt-text-2);
}

/* ---------------- 移动端 ---------------- */
.mt-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(3, 5, 8, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--mt-ease), visibility 0.24s;
}

.mt-scrim.is-on {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1080px) {
  .mt-main {
    margin-left: 0;
  }

  .mt-rail {
    transform: translateX(-100%);
    transition: transform 0.28s var(--mt-ease);
    width: 268px;
  }

  .mt-rail.is-open {
    transform: none;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  }

  .mt-burger {
    display: block;
  }

  .mt-top__mid {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --mt-top: 56px;
  }

  body {
    font-size: 15px;
  }

  .mt-top {
    gap: 10px;
  }

  .mt-crumb {
    font-size: 9.5px;
  }

  .mt-top__acts .mt-btn--ghost {
    display: none;
  }

  .mt-top__acts .mt-btn {
    height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .mt-foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .mt-foot__bar {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .mt-foot__grid {
    grid-template-columns: 1fr;
  }
}
