/**
 * 赳赳大秦 · 运维与数据系统（金黑控制台）
 * 登录后门户主界面 — 对齐用户提供的控制台稿
 */

.hero--stage {
  --bg-deep: #060503;
  --bg: #0a0907;
  --bg-surface: #11100a;
  --bg-card: #15130d;
  --bg-card-hover: #1c1a12;
  --gold: #c4a265;
  --gold-bright: #dcc07e;
  --gold-dim: #7d6840;
  --gold-faint: rgba(196, 162, 101, 0.07);
  --red: #a63d2f;
  --red-bright: #d0503e;
  --red-dim: #6b2a20;
  --bronze: #8b7355;
  --green: #5a8c5e;
  --green-bright: #6da972;
  --amber: #b88a3a;
  --text: #e8ddc8;
  --text-sec: #a69a86;
  --text-muted: #6e6555;
  --text-dim: #3d382e;
  --border: rgba(196, 162, 101, 0.08);
  --border-h: rgba(196, 162, 101, 0.18);
  --stg-glass-bg: linear-gradient(165deg, rgba(22, 20, 14, 0.96) 0%, rgba(10, 9, 7, 0.98) 100%);
  --stg-glass-hover: linear-gradient(165deg, rgba(28, 26, 18, 0.97) 0%, rgba(14, 13, 10, 0.99) 100%);
  --stg-glass-border: rgba(196, 162, 101, 0.11);
  --stg-glass-border-h: rgba(196, 162, 101, 0.22);
  --stg-glass-inset: inset 0 1px 0 rgba(255, 236, 190, 0.05);
  --stg-glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.38);
  --stg-glass-glow: radial-gradient(ellipse 85% 60% at 50% 0%, rgba(196, 162, 101, 0.09), transparent 68%);
  --font: 'Noto Sans SC', sans-serif;
  --font-ac: 'Cinzel', 'Noto Serif SC', serif;
  --sidebar-w: 244px;
  --topbar-h: 60px;

  position: relative;
  width: 100%;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0 !important;
  overflow: auto;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--font);
  line-height: 1.6;
}

.hero--stage::before,
.hero--stage::after {
  content: none;
  display: none;
}

.stg-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* —— Overlay / Sidebar —— */
.stg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 199;
}

.stg-overlay.is-open {
  display: block;
}

.stg-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.stg-sidebar__brand {
  padding: 24px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stg-seal {
  width: 36px;
  height: 36px;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-weight: 900;
  font-size: 17px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

.stg-sidebar__brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stg-sidebar__brand-info strong {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.stg-sidebar__brand-info span {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

.stg-sidebar__nav {
  flex: 1;
  padding: 16px 10px;
  overflow-y: auto;
}

.stg-nav-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 14px 12px 6px;
  margin: 0;
}

.stg-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-sec);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s;
  margin-bottom: 2px;
  position: relative;
}

.stg-nav-item:hover {
  background: var(--gold-faint);
  color: var(--text);
}

.stg-nav-item.is-active {
  background: rgba(196, 162, 101, 0.12);
  color: var(--gold);
}

.stg-nav-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.stg-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.stg-nav-item.is-active .stg-nav-icon,
.stg-nav-item:hover .stg-nav-icon {
  opacity: 1;
}

.stg-nav-badge {
  margin-left: auto;
  background: var(--red-dim);
  color: var(--red-bright);
  font-size: 0.58rem;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
}

.stg-nav-badge--green {
  background: rgba(90, 140, 94, 0.15);
  color: var(--green-bright);
}

.stg-sidebar__foot {
  padding: 12px 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-height: 46vh;
  overflow-y: auto;
}

.stg-sidebar__foot[hidden] {
  display: none !important;
}

.stg-foot-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stg-foot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-faint);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--gold);
  flex-shrink: 0;
}

.stg-foot-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.stg-foot-meta b {
  font-size: 0.73rem;
  color: var(--text);
  font-weight: 600;
}

.stg-foot-meta i {
  font-style: normal;
  font-size: 0.58rem;
  color: var(--text-muted);
}

.stg-foot-out {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px;
  transition: color 0.3s;
}

.stg-foot-out:hover {
  color: var(--red-bright);
}

.stg-foot-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stg-foot-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stg-foot-row dt {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.stg-foot-row dd {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-sec);
  line-height: 1.45;
  word-break: break-word;
}

.stg-foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stg-foot-tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border-h);
  border-radius: 3px;
  font-size: 0.58rem;
  color: var(--gold);
  background: var(--gold-faint);
}

.stg-foot-link {
  display: block;
  font-size: 0.65rem;
  color: var(--text);
}

.stg-foot-link span {
  color: var(--text-muted);
  margin-right: 4px;
}

.stg-foot-empty {
  color: var(--text-muted);
}

/* —— Main column —— */
.stg-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - var(--sidebar-w));
}

.stg-shell--no-sidebar .stg-sidebar,
.stg-shell--no-sidebar .stg-overlay {
  display: none !important;
}

.stg-shell--no-sidebar .stg-main {
  margin-left: 0;
  width: 100%;
}

.stg-shell--no-sidebar .stg-mob-btn {
  display: none !important;
}

.stg-top-user {
  position: relative;
  padding: 0;
  border: none;
  max-height: none;
  overflow: visible;
  flex-shrink: 0;
}

.stg-top-user .stg-foot-head {
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--stg-glass-border);
  border-radius: 999px;
  background: rgba(14, 13, 10, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.04);
  gap: 8px;
}

.stg-top-user .stg-foot-meta {
  cursor: pointer;
  user-select: none;
}

.stg-top-user .stg-foot-meta b {
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stg-top-user .stg-foot-dl {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  background: var(--stg-glass-bg);
  border: 1px solid var(--stg-glass-border);
  border-radius: 8px;
  box-shadow: var(--stg-glass-inset), 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 300;
  max-height: 60vh;
  overflow-y: auto;
}

.stg-top-user.is-open .stg-foot-dl {
  display: flex;
}

.stg-top-user .stg-foot-out {
  margin-left: 0;
}

/* —— Topbar（契约 #stgTopBar） —— */
.stg-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(196, 162, 101, 0.06), transparent 1px),
    rgba(6, 5, 3, 0.88);
  box-sizing: border-box;
}

.stg-top__left,
.stg-top__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stg-mob-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
}

.stg-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stg-breadcrumb span {
  color: var(--text);
}

.stg-tb-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--green-bright);
}

.stg-tb-status b {
  font-weight: 600;
}

.stg-tb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: stg-pulse 2s ease-in-out infinite;
}

@keyframes stg-pulse {
  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 0 0 rgba(109, 169, 114, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 6px 2px rgba(109, 169, 114, 0.15);
  }
}

.stg-tb-datetime {
  text-align: right;
  line-height: 1.35;
}

.stg-tb-date {
  display: block;
  font-size: 0.64rem;
  color: var(--text-muted);
}

.stg-tb-time {
  display: block;
  font-family: var(--font-ac);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* —— Hero banner · 粒子光晕 —— */
.stg-hero-banner {
  position: relative;
  min-height: 42dvh;
  max-height: 52dvh;
  padding: 14px 36px 18px;
  background: var(--bg-deep);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.stg-hero-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--stg-glass-border);
  border-radius: 14px;
  background: var(--stg-glass-bg);
  padding: 16px 18px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--stg-glass-inset), var(--stg-glass-shadow);
  box-sizing: border-box;
}

.stg-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--stg-glass-glow);
  opacity: 0.85;
  z-index: 0;
}

.stg-hero-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.stg-hero-panel__head strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stg-hero-panel__head strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196, 162, 101, 0.45);
  animation: stg-live-dot 2.4s ease-out infinite;
}

.stg-hero-panel__head span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stg-hero-panel__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(196, 162, 101, 0.1);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(196, 162, 101, 0.06), transparent 70%),
    linear-gradient(180deg, #100f0b, #15130d 55%, #0e0d0a);
  padding: 22px 18px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.4),
    inset 0 -16px 36px rgba(196, 162, 101, 0.06);
}

.stg-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.stg-hero-fx__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.stg-hero-fx__glow,
.stg-hero-fx__orb,
.stg-hero-fx__sheen {
  display: none;
}

.stg-hero-fx__dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.48;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 220, 160, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(196, 162, 101, 0.4), transparent),
    radial-gradient(1px 1px at 48% 18%, rgba(255, 230, 180, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 66% 44%, rgba(196, 162, 101, 0.35), transparent),
    radial-gradient(1px 1px at 78% 72%, rgba(255, 220, 160, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 88% 24%, rgba(196, 162, 101, 0.3), transparent),
    radial-gradient(1px 1px at 18% 78%, rgba(255, 230, 180, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 54% 86%, rgba(196, 162, 101, 0.28), transparent),
    radial-gradient(1.5px 1.5px at 8% 48%, rgba(255, 220, 160, 0.42), transparent),
    radial-gradient(1px 1px at 36% 36%, rgba(255, 200, 140, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 58% 12%, rgba(196, 162, 101, 0.38), transparent),
    radial-gradient(1px 1px at 72% 58%, rgba(255, 230, 180, 0.36), transparent),
    radial-gradient(1.5px 1.5px at 92% 68%, rgba(255, 160, 120, 0.32), transparent),
    radial-gradient(1px 1px at 44% 76%, rgba(196, 162, 101, 0.34), transparent);
  background-size: 100% 100%;
  animation: stg-hero-dust 18s linear infinite;
}

@keyframes stg-hero-glow-breathe {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes stg-hero-title-halo {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes stg-hero-title-shimmer {
  0%,
  100% {
    filter:
      drop-shadow(0 0 18px rgba(196, 162, 101, 0.38))
      drop-shadow(0 0 36px rgba(208, 80, 62, 0.12))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(196, 162, 101, 0.55))
      drop-shadow(0 0 56px rgba(208, 80, 62, 0.2))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  }
}

@keyframes stg-hero-orb-a {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate(18%, 12%) scale(1.18);
    opacity: 1;
  }
}

@keyframes stg-hero-orb-b {
  0% {
    transform: translate(0, 0) scale(1.05);
    opacity: 0.45;
  }
  100% {
    transform: translate(-16%, -10%) scale(1.22);
    opacity: 0.95;
  }
}

@keyframes stg-hero-orb-c {
  0% {
    transform: translate(-8%, 6%) scale(0.92);
    opacity: 0.35;
  }
  100% {
    transform: translate(10%, -8%) scale(1.15);
    opacity: 0.8;
  }
}

@keyframes stg-hero-sheen {
  0% {
    transform: translateX(-28%) skewX(-8deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  55% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(28%) skewX(-8deg);
    opacity: 0;
  }
}

@keyframes stg-hero-dust {
  0% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-12px);
    opacity: 0.35;
  }
}

.stg-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stg-hero-en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-ac);
  font-size: clamp(0.62rem, 1.4vh, 0.78rem);
  font-weight: 600;
  color: rgba(196, 162, 101, 0.58);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 18px 0 0;
  opacity: 0;
  animation: stg-fade-up 0.7s ease 0.85s both;
}

.stg-hero-en i {
  font-style: normal;
  font-size: 0.48rem;
  color: var(--gold-dim);
  opacity: 0.65;
  letter-spacing: 0;
}

.stg-hero-compose {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 32px);
  max-width: min(920px, 96vw);
  position: relative;
}

.stg-hero-compose__main {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 22px clamp(28px, 5vw, 52px) 20px;
}

.stg-hero-compose__main::before,
.stg-hero-compose__main::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(196, 162, 101, 0.32);
  border-style: solid;
  pointer-events: none;
}

.stg-hero-compose__main::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.stg-hero-compose__main::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.stg-hero-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(56px, 9vh, 68px);
  height: clamp(56px, 9vh, 68px);
  border: 1.5px solid rgba(208, 80, 62, 0.75);
  color: var(--red-bright);
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: clamp(24px, 4vh, 32px);
  transform: rotate(-6deg);
  margin: 0;
  opacity: 0;
  animation: stg-fade-up 0.8s ease 0.3s both;
  box-shadow: 0 0 16px rgba(208, 80, 62, 0.18);
}

.stg-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 16px);
  width: 100%;
  margin: 0;
  opacity: 0;
  animation: stg-fade-up 1s ease 0.45s both;
}

.stg-hero-title__line {
  display: block;
  line-height: 1.1;
}

.stg-hero-title__line--primary {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(2.8rem, 10vh, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  background: linear-gradient(
    180deg,
    #fff8ec 0%,
    #f0e0c0 38%,
    #d4b87a 72%,
    #e8d4a8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  position: relative;
}

.stg-hero-title__line--primary::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 115%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(196, 162, 101, 0.2) 0%,
    rgba(208, 80, 62, 0.05) 48%,
    transparent 72%
  );
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
  animation: stg-hero-title-halo 6s ease-in-out infinite;
}

.stg-hero-title__line--secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 20px);
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: clamp(1.35rem, 4.2vh, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: rgba(220, 192, 126, 0.88);
  text-shadow: 0 0 20px rgba(196, 162, 101, 0.12);
}

.stg-hero-title__line--secondary > span {
  flex-shrink: 0;
}

.stg-hero-title__orn {
  display: block;
  flex: 1;
  max-width: 72px;
  min-width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.55));
}

.stg-hero-title__orn--r {
  background: linear-gradient(90deg, rgba(196, 162, 101, 0.55), transparent);
}

.stg-hero-sub {
  font-size: 0.92rem;
  color: rgba(196, 162, 101, 0.72);
  letter-spacing: 0.4em;
  font-weight: 300;
  margin: 0 0 30px;
  opacity: 0;
  animation: stg-fade-up 0.7s ease 1s both;
  text-shadow: 0 0 16px rgba(196, 162, 101, 0.18);
}

.stg-hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  opacity: 0;
  animation: stg-fade-up 0.7s ease 1.15s both;
}

.stg-btn-gold {
  padding: 11px 30px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stg-btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 162, 101, 0.18);
}

.stg-btn-ghost {
  padding: 11px 26px;
  border: 1px solid var(--border-h);
  color: var(--text-sec);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.stg-btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.stg-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  animation: stg-fade-up 0.7s ease 1.3s both;
}

.stg-h-stat {
  text-align: center;
}

.stg-h-stat b {
  display: block;
  font-family: var(--font-ac);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stg-h-stat span {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 5px;
}

.stg-h-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
}

@keyframes stg-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stg-expand {
  from {
    width: 0;
  }
  to {
    width: min(180px, 32vw);
  }
}

/* —— Content —— */
.stg-content {
  flex: 1;
  padding: 20px 36px 60px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  background:
    radial-gradient(ellipse 100% 42% at 50% 0%, rgba(196, 162, 101, 0.055), transparent 58%),
    radial-gradient(ellipse 40% 24% at 12% 8%, rgba(208, 80, 62, 0.025), transparent 50%),
    radial-gradient(ellipse 40% 24% at 88% 10%, rgba(196, 162, 101, 0.035), transparent 50%),
    var(--bg-deep);
}

.stg-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stg-sec-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stg-sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(196, 162, 101, 0.08);
  border: 1px solid rgba(196, 162, 101, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.06),
    0 0 20px rgba(196, 162, 101, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.stg-sec-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  background: linear-gradient(180deg, #f0e4cc 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stg-sec-count {
  font-size: 0.66rem;
  color: var(--text-muted);
  background: rgba(14, 13, 10, 0.7);
  padding: 2px 9px;
  border-radius: 10px;
  border: 1px solid var(--stg-glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.04);
}

.stg-sec-count b {
  color: var(--gold);
  font-weight: 600;
}

.stg-sec-next {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-sec);
}

.stg-sec-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

.stg-overview-toggle {
  appearance: none;
  border: 1px solid rgba(196, 162, 101, 0.28);
  background: rgba(196, 162, 101, 0.08);
  color: var(--gold, #c4a265);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.stg-overview-toggle:hover {
  background: rgba(196, 162, 101, 0.16);
  border-color: rgba(196, 162, 101, 0.45);
}

.stg-overview-block.is-expanded .stg-overview-toggle {
  background: rgba(196, 162, 101, 0.2);
}

/* Stats */
.stg-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  align-items: stretch;
}

.stg-s-card {
  background: var(--stg-glass-bg);
  border: 1px solid var(--stg-glass-border);
  border-radius: 14px;
  padding: 20px 18px;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--stg-glass-inset), var(--stg-glass-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 卡内明细：默认收起，展开后各自独立滚动 */
.stg-s-feed {
  display: none;
  margin-top: 12px;
  height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(196, 162, 101, 0.12);
  padding-top: 0;
}

.stg-overview-block.is-expanded .stg-s-feed {
  display: block;
  height: 132px;
  padding-top: 10px;
}

.stg-overview-block.is-expanded .stg-s-feed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 8, 0.85));
}

.stg-s-feed__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}

.stg-s-feed__track.is-animating {
  animation: stg-card-feed-marquee 22s linear infinite;
}

.stg-s-feed:hover .stg-s-feed__track.is-animating {
  animation-play-state: paused;
}

.stg-s-feed__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(196, 162, 101, 0.08);
}

.stg-s-feed__title {
  color: #f0e4cc;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stg-s-feed__meta {
  color: var(--text-muted, rgba(240, 228, 204, 0.55));
  font-size: 0.64rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes stg-card-feed-marquee {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.stg-s-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stg-glass-glow);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.35s;
}

.stg-s-card::after {
  content: '';
  position: absolute;
  inset: auto 12px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.stg-s-card:hover {
  border-color: var(--stg-glass-border-h);
  transform: translateY(-3px);
  background: var(--stg-glass-hover);
  box-shadow:
    var(--stg-glass-inset),
    0 14px 44px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(196, 162, 101, 0.05);
}

.stg-s-card:hover::before,
.stg-s-card:hover::after {
  opacity: 1;
}

.stg-s-label {
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.stg-s-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.stg-s-val {
  font-family: var(--font-ac);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 24px rgba(196, 162, 101, 0.18);
}

.stg-s-unit {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.stg-s-chg {
  margin-top: 7px;
  font-size: 0.6rem;
  color: var(--green-bright);
  position: relative;
  z-index: 1;
}

.stg-s-chg b {
  font-weight: 600;
  color: var(--amber);
}

.stg-s-meter {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(196, 162, 101, 0.12);
  overflow: hidden;
}

.stg-s-meter i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dim, #a8844a), var(--gold-bright, #e2c07a));
  box-shadow: 0 0 10px rgba(196, 162, 101, 0.25);
  transition: width 0.55s ease;
}

.stg-s-meter--warn i {
  background: linear-gradient(90deg, #a63d2f, #e07a5f);
  box-shadow: 0 0 10px rgba(208, 80, 62, 0.28);
}

/* Timeline plot · 金黑排期轨（静面 + 轻动效） */
.stg-plot {
  margin-bottom: 28px;
}

.stg-timeline {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 18px 20px 16px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.04),
    0 0 0 0 rgba(196, 162, 101, 0);
}

.stg-timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(196, 162, 101, 0.08), transparent 70%);
  opacity: 0.85;
  z-index: 0;
}

.stg-timeline:hover,
.stg-timeline:focus-visible {
  border-color: var(--border-h);
  background: var(--bg-card-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.32),
    0 0 40px rgba(196, 162, 101, 0.06);
  outline: none;
}

.stg-timeline[hidden],
.stg-timeline--static[hidden] {
  display: none !important;
}

.stg-timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.stg-timeline__head strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stg-timeline__head strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196, 162, 101, 0.45);
  animation: stg-live-dot 2.4s ease-out infinite;
}

.stg-timeline__head span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.stg-timeline__clock {
  font-size: 0.72rem !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #ffb4a4 !important;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 95, 0.28);
  background: rgba(28, 12, 10, 0.45);
}

#stgTimelineCap {
  margin-left: auto;
}

.stg-timeline__track {
  position: relative;
  height: 104px;
  border-radius: 10px;
  border: 1px solid rgba(196, 162, 101, 0.1);
  background:
    linear-gradient(90deg, rgba(196, 162, 101, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #100f0b, #15130d 55%, #0e0d0a);
  background-size: 8.333% 100%, auto;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.4),
    inset 0 -16px 36px rgba(196, 162, 101, 0.05);
}

.stg-timeline__fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stg-timeline__glow {
  display: none;
}

.stg-timeline__track--empty {
  opacity: 0.45;
}

.stg-timeline__axis {
  display: none;
}

/* 「现在」指针 · 细竖线 + 加长左侧拖尾（无竖向扫描、无呼吸） */
.stg-timeline__now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  margin-left: 0;
  z-index: 4;
  pointer-events: none;
}

.stg-timeline__now-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 160, 130, 0.15) 0%,
    rgba(255, 120, 95, 0.85) 18%,
    var(--red-bright, #e84532) 50%,
    rgba(255, 120, 95, 0.85) 82%,
    rgba(255, 160, 130, 0.15) 100%
  );
  box-shadow:
    0 0 10px rgba(255, 140, 110, 0.55),
    0 0 22px rgba(208, 80, 62, 0.28);
}

/* 拖尾底光：极淡氛围，粒子流动交给 Canvas（去掉速度条纹感） */
.stg-timeline__now-streak {
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 280px;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 80% at 92% 50%,
    rgba(255, 140, 110, 0.1) 0%,
    rgba(208, 80, 62, 0.035) 40%,
    transparent 78%
  );
  opacity: 0.5;
}

.stg-timeline__now-streak::before,
.stg-timeline__now-streak::after {
  content: none;
  display: none;
}

.stg-timeline__now-scan {
  display: none;
}

.stg-timeline__now-time {
  position: absolute;
  top: 4px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(28, 12, 10, 0.82);
  border: 1px solid rgba(255, 120, 95, 0.45);
  color: #ffb4a4;
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(208, 80, 62, 0.22);
}

.stg-timeline__now.is-near-end .stg-timeline__now-time {
  left: auto;
  right: 8px;
}

.stg-timeline__now-head {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 0;
  height: 0;
  margin-top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #ff6b55;
  filter: drop-shadow(0 0 4px rgba(255, 100, 80, 0.65));
  opacity: 0.92;
}

.stg-timeline__now-head::before {
  display: none;
}

.stg-timeline__track--lanes-2 {
  height: 132px;
}

.stg-timeline__track--lanes-3 {
  height: 168px;
}

.stg-timeline__track--lanes-4 {
  height: 204px;
}

.stg-timeline__track--lanes-5 {
  height: 240px;
}

.stg-timeline__track--lanes-6 {
  height: 276px;
}

.stg-timeline__event {
  position: absolute;
  top: 8%;
  height: 84%;
  min-width: 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(220, 192, 126, 0.12), transparent 55%),
    rgba(196, 162, 101, 0.2);
  border: 1px solid rgba(196, 162, 101, 0.38);
  padding: 4px 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.06);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  pointer-events: none;
}

.stg-timeline__event::before {
  display: none;
}

.stg-timeline:hover .stg-timeline__event {
  transform: translateY(-1px);
}

.stg-timeline__event.is-live {
  background:
    linear-gradient(135deg, rgba(208, 80, 62, 0.22), transparent 60%),
    rgba(166, 61, 47, 0.32);
  border-color: rgba(208, 80, 62, 0.6);
  box-shadow:
    0 0 20px rgba(208, 80, 62, 0.22),
    0 0 36px rgba(208, 80, 62, 0.08),
    inset 0 1px 0 rgba(255, 180, 160, 0.08);
}

.stg-timeline__event.is-live::after {
  display: none;
}

.stg-timeline__event b {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}

.stg-timeline__event i {
  font-style: normal;
  font-size: 0.56rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}

.stg-agenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.stg-agenda[hidden] {
  display: none !important;
}

.stg-agenda span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  transition: border-color 0.25s, transform 0.25s;
}

.stg-agenda span:hover {
  border-color: var(--border-h);
  transform: translateY(-1px);
}

.stg-agenda span.is-live {
  position: relative;
  border-color: rgba(208, 80, 62, 0.55);
  background: rgba(166, 61, 47, 0.18);
  box-shadow: 0 0 12px rgba(208, 80, 62, 0.16);
}

.stg-agenda__now {
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffb4a4;
  margin-top: 2px;
}

.stg-agenda em {
  font-style: normal;
  color: var(--gold-dim);
  font-size: 0.58rem;
}

.stg-agenda b {
  color: var(--text);
  font-weight: 500;
}

.stg-agenda span.is-live b {
  color: #ffe0d6;
}

@keyframes stg-live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 162, 101, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(196, 162, 101, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 162, 101, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stg-timeline__head strong::before,
  .stg-timeline__glow,
  .stg-timeline__now-streak::before,
  .stg-timeline__now-streak::after,
  .stg-hero-fx__glow,
  .stg-hero-fx__orb,
  .stg-hero-fx__sheen,
  .stg-hero-fx__dust,
  .stg-hero-title__line--primary,
  .stg-hero-title__line--primary::after {
    animation: none !important;
  }

  .stg-timeline__now-streak::before,
  .stg-timeline__now-streak::after {
    opacity: 0.45;
    transform: none;
  }

  .stg-timeline__glow,
  .stg-hero-fx__glow,
  .stg-hero-fx__sheen,
  .stg-hero-fx__dust {
    opacity: 0.25;
  }

  .stg-hero-title__line--primary::after {
    opacity: 0.6;
  }
}

/* Tabs */
.stg-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stg-tab {
  padding: 6px 16px;
  border: 1px solid var(--stg-glass-border);
  border-radius: 20px;
  background: rgba(14, 13, 10, 0.65);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, background 0.3s;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.03);
}

.stg-tab:hover {
  border-color: var(--stg-glass-border-h);
  color: var(--text-sec);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.05),
    0 0 20px rgba(196, 162, 101, 0.04);
}

.stg-tab[hidden],
.stg-nav-item[hidden] {
  display: none !important;
}

.stg-tab.is-active {
  background: linear-gradient(165deg, rgba(196, 162, 101, 0.14), rgba(196, 162, 101, 0.06));
  border-color: var(--stg-glass-border-h);
  color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.08),
    0 0 24px rgba(196, 162, 101, 0.08);
}

.stg-tab-n {
  font-size: 0.58rem;
  opacity: 0.6;
  margin-left: 3px;
}

/* System cards */
.stg-sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.stg-hall-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.stg-sys-card {
  background: var(--stg-glass-bg);
  border: 1px solid var(--stg-glass-border);
  border-radius: 14px;
  padding: 24px 20px 20px;
  cursor: pointer;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
  display: block;
  box-shadow: var(--stg-glass-inset), var(--stg-glass-shadow);
}

.stg-sys-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stg-glass-glow);
  opacity: 0.65;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stg-sys-card::after {
  content: '';
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.stg-sys-card:hover,
.stg-sys-card:focus-visible {
  border-color: var(--stg-glass-border-h);
  transform: translateY(-4px);
  outline: none;
  background: var(--stg-glass-hover);
  box-shadow:
    var(--stg-glass-inset),
    0 14px 44px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(196, 162, 101, 0.06);
}

.stg-sys-card:hover::before,
.stg-sys-card:focus-visible::before,
.stg-sys-card.stg-card--active::before {
  opacity: 1;
}

.stg-sys-card:hover::after,
.stg-sys-card:focus-visible::after,
.stg-sys-card.stg-card--active::after {
  opacity: 1;
}

.stg-sys-card.stg-card--active {
  border-color: var(--stg-glass-border-h);
  background: var(--stg-glass-hover);
}

.stg-sys-card.stg-card--off {
  opacity: 0.55;
  cursor: not-allowed;
}

.stg-sys-card.stg-card--off:hover {
  transform: none;
}

.stg-sys-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.stg-sys-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(196, 162, 101, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.05);
}

.stg-sys-card:hover .stg-sys-icon {
  transform: scale(1.06);
}

.stg-sys-tag {
  font-size: 0.56rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.tag-core {
  background: rgba(166, 61, 47, 0.1);
  color: var(--red-bright);
}

.tag-light {
  background: rgba(184, 138, 58, 0.1);
  color: var(--amber);
}

.tag-data {
  background: rgba(196, 162, 101, 0.1);
  color: var(--gold);
}

.tag-tool {
  background: rgba(139, 115, 85, 0.1);
  color: var(--bronze);
}

.stg-sys-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.04em;
}

.stg-sys-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.stg-sys-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(196, 162, 101, 0.08);
  position: relative;
  z-index: 1;
}

.stg-sys-st {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
}

.stg-sys-st.is-on {
  color: var(--green-bright);
}

.stg-sys-st.is-off {
  color: var(--amber);
}

.stg-st-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.stg-sys-st.is-on .stg-st-dot {
  background: var(--green-bright);
}

.stg-sys-enter {
  font-size: 0.64rem;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.3s, gap 0.3s;
}

.stg-sys-card:hover .stg-sys-enter {
  color: var(--gold);
  gap: 7px;
}

/* Panels · 数据分析 */
.stg-panels {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
  align-items: stretch;
}

.stg-panel {
  background: var(--stg-glass-bg);
  border: 1px solid var(--stg-glass-border);
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--stg-glass-inset), var(--stg-glass-shadow);
  display: flex;
  flex-direction: column;
}

.stg-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stg-glass-glow);
  opacity: 0.7;
  pointer-events: none;
}

.stg-p-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.stg-ana-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.stg-ana-kpi {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(196, 162, 101, 0.14);
  background: rgba(14, 13, 10, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stg-ana-kpi em {
  font-style: normal;
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.stg-ana-kpi b {
  font-family: var(--font-ac);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright, var(--gold));
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stg-ana-kpi span {
  font-size: 0.58rem;
  color: var(--text-sec);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stg-ana-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: var(--text-sec);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.stg-ana-summary b {
  color: #f0e4cc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stg-ana-summary .is-ok { color: var(--green-bright, #6da972); }
.stg-ana-summary .is-warn { color: var(--amber, #d4a24c); }
.stg-ana-summary .is-bad { color: #c96b6b; }

.stg-ana-scroll {
  flex: 1;
  min-height: 140px;
  max-height: 200px;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(196, 162, 101, 0.1);
  border-radius: 10px;
  background: rgba(8, 7, 5, 0.35);
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 162, 101, 0.35) transparent;
}

.stg-ana-scroll::-webkit-scrollbar {
  width: 5px;
}

.stg-ana-scroll::-webkit-scrollbar-thumb {
  background: rgba(196, 162, 101, 0.35);
  border-radius: 999px;
}

.stg-ana-list {
  display: flex;
  flex-direction: column;
}

.stg-ana-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 8px;
  align-items: baseline;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(196, 162, 101, 0.07);
  font-size: 0.7rem;
}

.stg-ana-row:last-child {
  border-bottom: none;
}

.stg-ana-row__dim {
  color: var(--gold, #c4a265);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.stg-ana-row__name {
  color: #f0e4cc;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stg-ana-row__val {
  color: var(--text-sec);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stg-ana-row__note {
  color: var(--text-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.stg-ana-row.is-ok .stg-ana-row__dim { color: var(--green-bright, #6da972); }
.stg-ana-row.is-warn .stg-ana-row__dim { color: var(--amber, #d4a24c); }
.stg-ana-row.is-live .stg-ana-row__dim { color: var(--gold-bright, #e2c07a); }

.stg-panel-note {
  margin: 10px 0 0;
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Footer */
.stg-app-footer {
  border-top: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(196, 162, 101, 0.08), transparent 1px),
    rgba(6, 5, 3, 0.88);
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stg-ft-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.64rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.stg-ft-div {
  width: 1px;
  height: 11px;
  background: var(--border);
}

/* Login visibility */
body.portal-login-header-active .hero--stage .stg-top {
  display: flex;
}

body.portal-login-header-active.portal-login-morphing .hero--stage .stg-top {
  opacity: 0;
  pointer-events: none;
}

body.portal-login-header-active.portal-login-morphing .stg-sidebar {
  opacity: 0;
  pointer-events: none;
}

body.portal-login-header-active .portal-landing > footer,
.portal-landing:has(.hero--stage) > footer {
  display: none;
}

.portal-landing .hero--stage {
  width: 100vw;
  max-width: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .stg-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .stg-sidebar {
    transform: translateX(-100%);
  }

  .stg-sidebar.is-open {
    transform: translateX(0);
  }

  .stg-main {
    margin-left: 0;
    width: 100%;
  }

  .stg-mob-btn {
    display: block;
  }

  .stg-content {
    padding: 24px 20px;
  }

  .stg-top {
    padding: 0 20px;
  }

  .stg-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stg-sys-grid {
    grid-template-columns: 1fr;
  }

  .stg-panels {
    grid-template-columns: 1fr;
  }

  .stg-ana-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .stg-ana-row {
    grid-template-columns: 44px 1fr;
    gap: 2px 8px;
  }

  .stg-ana-row__val,
  .stg-ana-row__note {
    grid-column: 2;
    text-align: left;
  }

  .stg-hero-banner {
    min-height: 42dvh;
    max-height: none;
    padding: 12px 20px 16px;
  }

  .stg-hero-panel {
    padding: 14px 14px 16px;
  }

  .stg-hero-panel__body {
    padding: 20px 12px;
  }

  .stg-hero-compose {
    flex-direction: column;
    gap: 10px;
  }

  .stg-hero-seal {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .stg-hero-compose__main {
    padding: 16px 20px 14px;
    width: 100%;
  }

  .stg-hero-title__line--primary {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .stg-hero-title__line--secondary {
    letter-spacing: 0.38em;
    text-indent: 0.38em;
    font-size: clamp(1.15rem, 4.5vw, 1.75rem);
  }

  .stg-hero-en {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.58rem;
  }

  .stg-hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stg-app-footer {
    padding: 18px 20px;
  }
}

@media (max-width: 600px) {
  .stg-stats-row {
    grid-template-columns: 1fr;
  }

  .stg-hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .stg-h-sep {
    width: 20px;
    height: 1px;
  }

  .stg-hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .stg-timeline__track {
    height: 96px;
  }

  .stg-timeline__track--lanes-2 {
    height: 120px;
  }

  .stg-timeline__track--lanes-3 {
    height: 148px;
  }

  .stg-timeline__track--lanes-4 {
    height: 176px;
  }

  .stg-timeline__track--lanes-5 {
    height: 204px;
  }

  .stg-timeline__track--lanes-6 {
    height: 232px;
  }
}
