body {
  background: var(--hc-bg);
  color: var(--hc-text);
}
.hc-console {
  min-height: 100vh;
}
.hc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--hc-sidebar);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hc-line);
  background: #0e1216;
}
.hc-sidebar-brand {
  height: 56px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hc-sidebar-brand i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(121, 243, 203, 0.1);
  border: 1px solid rgba(121, 243, 203, 0.18);
  color: var(--hc-brand);
  font-style: normal;
  font-weight: 900;
}
.hc-sidebar-brand span {
  display: flex;
  flex-direction: column;
}
.hc-sidebar-brand strong {
  font-size: 15px;
}
.hc-sidebar-brand small {
  margin-top: 3px;
  color: var(--hc-muted-2);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.hc-sidebar-nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}
.hc-sidebar-nav a {
  padding: 11px 12px;
  border-radius: 10px;
  color: #89959f;
  font-size: 12px;
  transition: 0.2s;
}
.hc-sidebar-nav a:hover,
.hc-sidebar-nav a.is-active {
  background: rgba(121, 243, 203, 0.08);
  color: #dff8f1;
}
.hc-sidebar-foot {
  margin-top: auto;
  padding: 15px 10px;
  border-top: 1px solid var(--hc-line);
  color: var(--hc-muted-2);
  font-size: 10px;
}
.hc-console-header {
  position: fixed;
  inset: 0 0 auto var(--hc-sidebar);
  z-index: 70;
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hc-line);
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(16px);
}
.hc-console-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hc-sidebar-toggle {
  display: none;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  width: 38px;
  height: 38px;
}
.hc-console-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hc-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hc-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(121, 243, 203, 0.12);
  color: var(--hc-brand);
  font-weight: 800;
}
.hc-user-meta {
  display: flex;
  flex-direction: column;
}
.hc-user-meta strong {
  font-size: 11px;
}
.hc-user-meta small {
  font-size: 9px;
  color: var(--hc-muted-2);
}
.hc-console-main {
  min-height: 100vh;
  margin-left: var(--hc-sidebar);
  padding: 102px 30px 50px;
  background: radial-gradient(circle at 85% 0, rgba(121, 243, 203, 0.05), transparent 25%);
}
.hc-console-content {
  max-width: 1400px;
  margin: auto;
}
.hc-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hc-metric {
  padding: 22px;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}
.hc-metric span {
  color: var(--hc-muted-2);
  font-size: 11px;
}
.hc-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}
.hc-metric small {
  display: block;
  margin-top: 7px;
  color: #6f7a83;
  font-size: 9px;
}
.hc-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}
.hc-panel {
  padding: 22px;
}
.hc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hc-panel-head h2 {
  font-size: 16px;
}
.hc-panel-head a {
  color: var(--hc-brand);
  font-size: 10px;
}
.hc-list-item {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--hc-line);
}
.hc-list-item:last-child {
  border-bottom: 0;
}
.hc-list-item strong {
  font-size: 12px;
}
.hc-list-item small {
  display: block;
  margin-top: 4px;
  color: var(--hc-muted-2);
  font-size: 9px;
}
.hc-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}
.hc-side-card {
  padding: 22px;
}
.hc-side-card h2 {
  font-size: 16px;
}
.hc-side-card p {
  margin: 10px 0 20px;
  color: var(--hc-muted);
  font-size: 12px;
  line-height: 1.8;
}
.hc-secret-box {
  padding: 15px;
  border: 1px solid rgba(121, 243, 203, 0.16);
  border-radius: 12px;
  background: #0d1415;
  word-break: break-all;
  color: #bcecdf;
  font:
    12px/1.8 ui-monospace,
    monospace;
}
.hc-recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hc-amount-card {
  padding: 18px;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  cursor: pointer;
}
.hc-amount-card:hover,
.hc-amount-card.is-selected {
  border-color: var(--hc-line-strong);
  background: rgba(121, 243, 203, 0.06);
}
.hc-amount-card strong {
  font-size: 22px;
}
.hc-amount-card small {
  display: block;
  margin-top: 5px;
  color: var(--hc-muted-2);
}
.hc-doc-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 150px);
  border: 1px solid var(--hc-line);
  border-radius: 18px;
  overflow: hidden;
}
.hc-doc-nav {
  padding: 20px;
  border-right: 1px solid var(--hc-line);
  background: rgba(255, 255, 255, 0.018);
}
.hc-doc-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--hc-muted);
  font-size: 11px;
}
.hc-doc-content {
  padding: 30px;
  overflow: auto;
}
.hc-doc-content h2 {
  margin: 30px 0 12px;
}
.hc-doc-content h2:first-child {
  margin-top: 0;
}
.hc-doc-content p {
  color: var(--hc-muted);
  font-size: 13px;
  line-height: 1.9;
}
.hc-doc-content pre {
  margin: 15px 0;
  padding: 18px;
  border-radius: 12px;
  background: #0c1014;
  color: #bcecdf;
  overflow: auto;
  font:
    11px/1.8 ui-monospace,
    monospace;
}
@media (max-width: 1100px) {
  .hc-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hc-dashboard-grid,
  .hc-page-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .hc-sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .hc-sidebar.is-open {
    transform: none;
  }
  .hc-console-header {
    left: 0;
    padding: 0 16px;
  }
  .hc-sidebar-toggle {
    display: block;
  }
  .hc-console-main {
    margin-left: 0;
    padding: 92px 16px 40px;
  }
  .hc-user-meta {
    display: none;
  }
  .hc-doc-shell {
    grid-template-columns: 1fr;
  }
  .hc-doc-nav {
    display: none;
  }
}
@media (max-width: 560px) {
  .hc-metric-grid,
  .hc-recharge-grid {
    grid-template-columns: 1fr;
  }
  .hc-toolbar .hc-btn {
    width: 100%;
  }
  .hc-console-header-right .hc-btn {
    display: none;
  }
}

/* 在线材料渲染 */
.hc-playground-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hc-task-progress {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  color: var(--hc-muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
}
.hc-surface-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}
.hc-surface-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--hc-line);
  border-radius: 11px;
  color: var(--hc-muted);
  cursor: pointer;
}
.hc-surface-option input {
  accent-color: var(--hc-brand);
}
.hc-result-panel {
  margin-top: 20px;
}
.hc-render-result {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hc-render-result img {
  width: min(100%, 1080px);
  max-height: 680px;
  object-fit: contain;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  background: #0d1115;
}
@media (max-width: 860px) {
  .hc-playground-grid {
    grid-template-columns: 1fr;
  }
}

/* 充值支付弹窗 */
.hc-payment-modal-card {
  max-width: 520px;
}
.hc-payment-qr {
  text-align: center;
}
.hc-payment-qr canvas {
  width: 260px;
  height: 260px;
  max-width: 100%;
  margin: 8px auto 14px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.hc-payment-qr p {
  color: var(--hc-muted);
  font-size: 12px;
}
.hc-payment-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.hc-payment-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 13px;
  border: 1px solid var(--hc-line);
  border-radius: 11px;
}
.hc-payment-details span {
  color: var(--hc-muted);
  font-size: 12px;
}
.hc-payment-details strong {
  text-align: right;
  word-break: break-all;
  font-size: 12px;
}
