/* ============================================================
   Public Home Layout
   ============================================================ */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow-y: auto;
  align-items: stretch;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 18% 10%, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 58%, #FFFFFF 100%);
}

.auth-overlay.show {
  display: block;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(226,232,240,.82);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #0F172A;
}

.landing-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  color: #FFFFFF;
  background: var(--grad-primary);
  font-size: 12px;
  letter-spacing: .02em;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.landing-links a:hover {
  color: var(--cyan-dim);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-login-link,
.landing-register-link {
  min-height: 38px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 700;
}

.landing-login-link {
  color: var(--text-mid);
}

.landing-register-link {
  color: #FFFFFF;
  background: var(--grad-primary);
  box-shadow: 0 10px 22px rgba(37,99,235,.20);
}

.landing-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-hero {
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 7vw, 94px) 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.landing-hero-copy {
  max-width: 720px;
}

.landing-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #BFDBFE;
  border-radius: 999px !important;
  color: var(--cyan-dim);
  background: #EFF6FF;
  font-size: 13px;
  font-weight: 800;
}

.landing-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

.brand-gradient-text {
  color: #2563EB;
  background: linear-gradient(90deg, #1D4ED8 0%, #0EA5E9 55%, #14B8A6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.8;
}

.landing-hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-hero-actions .btn {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px !important;
}

.landing-auth-card {
  position: relative;
  width: 100%;
  height: auto;
  max-height: none;
  padding: 28px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)),
    #FFFFFF;
  box-shadow: 0 30px 70px rgba(15,23,42,.14);
}

.landing-auth-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: 24px 24px 0 0 !important;
  background: var(--grad-primary);
}

.landing-auth-card .auth-brand {
  margin-bottom: 18px;
  padding-bottom: 0;
  text-align: left;
  border: 0;
}

.landing-auth-card .auth-brand .a-title {
  font-size: 24px;
}

.landing-auth-card .auth-tabs {
  margin-bottom: 18px;
}

.landing-section {
  padding: 76px 0;
  border-top: 1px solid #EAF0F7;
}

.landing-section-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.landing-section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.landing-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 820;
}

.landing-section-head p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.api-card,
.usecase-grid article,
.faq-list details,
.code-card {
  border: 1px solid #E2E8F0;
  border-radius: 18px !important;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
}

.api-card {
  min-height: 166px;
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.api-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.32);
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}

.api-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  color: var(--cyan-dim);
  background: #EFF6FF;
  font-weight: 800;
}

.api-card h3,
.usecase-grid h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.api-card p,
.usecase-grid p,
.faq-list p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.api-card-more {
  background: linear-gradient(135deg, #EFF6FF, #FFFFFF);
}

.sdk-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.sdk-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sdk-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-mid);
  font-weight: 600;
}

.sdk-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px !important;
  background: var(--cyan);
  box-shadow: 0 0 0 5px var(--cyan-soft);
}

.code-card {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #D6E4FF;
  background: #0F172A;
  border-color: #1E293B;
  box-shadow: 0 24px 50px rgba(15,23,42,.18);
}

.code-card code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.usecase-grid article {
  padding: 22px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.faq-list p {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .landing-links {
    display: none;
  }
  .landing-hero,
  .sdk-section {
    grid-template-columns: 1fr;
  }
  .landing-auth-card {
    max-width: 520px;
  }
  .api-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .landing-nav {
    height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .landing-page {
    width: min(100% - 28px, 1180px);
  }
  .landing-hero {
    padding-top: 46px;
  }
  .landing-hero h1 {
    font-size: 36px;
  }
  .landing-hero p {
    font-size: 16px;
  }
  .api-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

/* Fixed logged-in workspace: topbar stays visible, pages scroll inside. */
.layout {
  height: 100vh;
  overflow: hidden;
}

.main {
  grid-row: 2;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 16px 36px;
}

.main-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px;
  height: 60px;
  margin-bottom: 4px;
  background: #fff;
  border-bottom: 1px solid var(--line-dim);
}

.sidebar .nav-item {
  padding: 10px 12px;
  margin: 0 8px 2px;
  border-radius: 6px !important;
  font-weight: 650;
  color: var(--text);
}
.sidebar .nav-item:hover {
  color: var(--cyan-dim);
  background: var(--cyan-ghost);
}
.sidebar .nav-item.active {
  color: var(--cyan-dim);
  background: var(--cyan-soft);
  font-weight: 650;
}
.sidebar .nav-item.active::after { display: none; }
.sidebar .nav-item svg { display: none; }

.sidebar-section-label {
  padding: 12px 20px 4px;
  font-size: 11px;
  color: var(--text-ghost);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sidebar > .sidebar-section-label:nth-child(1) { color: #FF2D55; }
.sidebar > .sidebar-section-label:nth-child(3) { color: #2563EB; }
.sidebar > .sidebar-section-label:nth-child(5) { color: var(--text-dim); }

.platform-workbench-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.workbench-platform-nav {
  gap: 8px;
}

.topbar-page-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topbar-notify-orange {
  color: #D97706;
  background: #FFF7ED;
  border-color: #FED7AA;
}

.topbar-notify-orange:hover,
.topbar-notify-orange.has-unread,
.topbar-notify-orange.active {
  color: #C2410C;
  background: #FFEDD5;
  border-color: #FDBA74;
  box-shadow: 0 8px 20px rgba(234,88,12,.14);
}

.page {
  min-height: 0;
}

.page.active {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: auto;
  padding-right: 8px;
  padding-bottom: 24px;
  scrollbar-gutter: stable;
}

.page.active::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.log-box::-webkit-scrollbar,
.preview-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.page.active::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.log-box::-webkit-scrollbar-thumb,
.preview-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px !important;
}

.page.active::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.log-box::-webkit-scrollbar-track,
.preview-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#page-preview.active {
  height: auto;
  overflow: hidden;
}

#page-preview > .page-title {
  position: relative;
  z-index: 300;
}

#page-docs.active {
  overflow: hidden;
}

#page-docs .two-col {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

#page-files.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#page-files > .page-title,
#page-files > .page-subtitle,
#page-files > .tab-row {
  flex: 0 0 auto;
}

#page-files > .tab-row {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0;
  background: transparent;
}

#taskList {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

#taskList::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#taskList::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px !important;
}

#taskList::-webkit-scrollbar-track {
  background: transparent;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(360px, 1.35fr);
  gap: 18px;
  margin-bottom: 20px;
}

.console-admin-card {
  grid-column: 1 / -1;
}

.console-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  font-weight: 850;
  color: var(--cyan-dim);
}

.console-balance small {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 700;
}

.console-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.console-table-wrap .table {
  min-width: 720px;
}

.console-table-wrap td {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-table-wrap .table th {
  background: #F6F8FA;
  font-size: 14px;
  font-weight: 800;
}

.console-table-wrap .table td {
  font-size: 14px;
}

.console-table-wrap .card-risk-head {
  min-width: 380px;
}

.console-table-wrap .card-risk-cell {
  min-width: 420px;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.card-risk-editor {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 8px;
  align-items: flex-start;
}

.card-risk-textarea {
  min-height: 58px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.5;
}

.card-risk-save {
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .console-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 14px 14px 18px;
  }
}

/* Standalone docs / console pages */
.standalone-page {
  min-height: 100vh;
  overflow: auto;
  background: #F5F7FA;
}

.standalone-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  min-height: 60px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line-dim);
}

.platform-topbar {
  border-bottom: 1px solid #E5E7EB;
}

.platform-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.platform-logo {
  flex: 0 0 auto;
  font-size: 18px;
}

.platform-topbar-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px !important;
  background: var(--cyan-ghost);
  color: var(--cyan-dim);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.standalone-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.standalone-nav a,
.standalone-nav span {
  padding: 0;
  border-radius: 0 !important;
}

.standalone-nav a:hover {
  color: var(--cyan-dim);
  background: transparent;
}

.standalone-nav a.active {
  color: var(--cyan-dim);
  background: transparent;
}

.platform-bell {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: var(--cyan-soft);
  color: var(--cyan-dim);
  font-size: 13px;
}

.platform-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 !important;
  color: var(--text);
}

.platform-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 8px 18px rgba(37,99,235,.18);
}

.standalone-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  transition: opacity .7s ease;
}
html[data-boot="loading"] .standalone-shell { opacity: 0; }

/* 顶部主导航仍走多页面，但用轻量过渡弱化整页刷新感 */
.loading-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94)) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity .26s ease !important;
}

.loading-card {
  min-width: 248px;
  max-width: min(86vw, 320px);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  border: 1px solid #E2E8F0;
  border-radius: 8px !important;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 44px rgba(15,23,42,.12), 0 1px 2px rgba(15,23,42,.05);
  animation: loading-card-in .22s ease-out both;
}

.loading-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0F172A;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
}

.loading-brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 8px 16px rgba(37,99,235,.18);
}

.loading-spinner-slot {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
}

.loading-spinner-slot::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid #DBEAFE;
  animation: loading-ring-pulse 1.4s ease-in-out infinite;
}

.loading-spinner {
  position: relative;
  width: 42px !important;
  height: 42px !important;
  border: 2px solid #DBEAFE !important;
  border-top-color: #2563EB !important;
  border-right-color: #93C5FD !important;
  box-shadow: inset 0 0 0 4px #FFFFFF;
  animation: spin .82s linear infinite !important;
}

.loading-caption,
.loading-text {
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.loading-progress {
  width: 184px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #EEF2F7;
}

.loading-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #2563EB;
  animation: loading-progress-sweep 1.05s cubic-bezier(.55,0,.25,1) infinite;
}

.route-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.route-loading-text {
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.loading-overlay.route-transition {
  background: rgba(248, 250, 252, .96);
  transition: opacity .2s ease;
}

@keyframes loading-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-ring-pulse {
  0%, 100% {
    opacity: .52;
    transform: scale(.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes loading-progress-sweep {
  from { transform: translateX(-115%); }
  to { transform: translateX(250%); }
}

html.route-entering .main,
html.route-entering .docs-article,
html.route-entering .console-content {
  animation: route-content-in .26s cubic-bezier(.2, .7, .2, 1) both;
}

html.route-leaving .main,
html.route-leaving .docs-article,
html.route-leaving .console-content {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease;
  pointer-events: none;
}

@keyframes route-content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.route-entering .main,
  html.route-entering .docs-article,
  html.route-entering .console-content {
    animation: none;
  }

  html.route-leaving .main,
  html.route-leaving .docs-article,
  html.route-leaving .console-content {
    transform: none;
    transition: opacity .01s linear;
  }

  .loading-card,
  .loading-spinner,
  .loading-spinner-slot::before,
  .loading-progress span {
    animation: none !important;
  }
}

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.page-side-nav {
  align-self: start;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  padding: 22px 16px;
  border: 0;
  border-radius: 0 !important;
  background: #FFFFFF;
  box-shadow: none;
  overflow: auto;
}

.side-nav-title {
  padding: 8px 10px 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.page-side-nav a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 6px !important;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.page-side-nav a:hover {
  color: var(--cyan-dim);
  background: var(--cyan-ghost);
}

.page-side-nav a.active {
  color: var(--cyan-dim);
  background: var(--cyan-soft);
}

/* ── 并发数量步进器（常显加减按钮） ── */
.num-step-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  border: none; border-radius: 6px;
  background: #F1F5F9; color: #475569;
  cursor: pointer; flex-shrink: 0;
  transition: background .12s, color .12s;
}
.num-step-btn:hover { background: #EFF6FF; color: #2563EB; }
.num-step-btn:active { background: #DBEAFE; }
.num-step-input { -moz-appearance: textfield; appearance: textfield; cursor: default; }
.num-step-input::-webkit-inner-spin-button,
.num-step-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── 侧边栏底部「更多」菜单（斜杠图标） ── */
.page-side-nav.console-side-nav { display: flex; flex-direction: column; }
.side-nav-footer { margin-top: auto; padding-top: 14px; position: relative; }
.side-nav-more-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border: none; border-radius: 8px;
  background: transparent; color: #475569; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.25;
  transition: color .15s, background .15s;
}
.side-nav-more-btn:hover { color: var(--cyan-dim, #1D4ED8); background: var(--cyan-ghost, #EFF6FF); }
.side-nav-menu {
  position: absolute; bottom: 100%; left: 0;
  min-width: 178px;
  display: none; flex-direction: column;
  padding: 6px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .12);
  z-index: 50;
}
.side-nav-footer:hover .side-nav-menu { display: flex; }
.side-nav-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: #334155;
  cursor: pointer; user-select: none;
  transition: background .12s, color .12s;
}
.side-nav-menu-item:hover { background: #F1F5F9; }
.side-nav-menu-item span { flex: 1; }
.side-nav-menu-chevron { transition: transform .15s; color: #94A3B8; }
.side-nav-menu-chevron.open { transform: rotate(90deg); }
.side-nav-menu-danger { color: #DC2626; }
.side-nav-menu-danger:hover { background: #FEF2F2; }
.side-nav-submenu {
  display: flex; flex-direction: column;
  margin: 0 0 4px; padding: 4px;
  background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 9px;
}
.side-nav-submenu a {
  display: block; padding: 8px 11px 8px 35px;
  border-radius: 7px; font-size: 13px; font-weight: 500;
  color: #475569; text-decoration: none;
  transition: background .12s, color .12s;
}
.side-nav-submenu a:hover { background: #EFF6FF; color: #2563EB; }

.console-nav-group { margin-bottom: 6px; }
.console-nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.console-nav-group-header:hover { background: var(--cyan-ghost); color: var(--cyan-dim); }
.console-nav-group.open .console-nav-group-header { color: var(--cyan-dim); }
.console-nav-group-items {
  display: none;
  flex-direction: column;
  padding-left: 12px;
  margin-left: 12px;
  margin-top: 2px;
  border-left: 1px solid var(--line-dim);
}
.console-nav-group.open .console-nav-group-items { display: flex; }
.console-nav-group-items a {
  font-size: 13px !important;
  padding: 8px 12px !important;
  color: var(--text-dim) !important;
  font-weight: 500 !important;
}
.console-nav-group-items a:hover { color: var(--cyan-dim) !important; background: var(--cyan-ghost); }
.console-nav-group-items a.active { color: var(--cyan-dim) !important; background: var(--cyan-soft); }

.docs-article {
  margin: 26px 24px 44px;
  padding: 32px;
  border: 0;
  border-radius: 12px !important;
  background: #FFFFFF;
  box-shadow: none;
}

.docs-article section {
  margin-bottom: 34px;
  scroll-margin-top: 20px;
}

.docs-article h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.docs-article h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.docs-article h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.docs-article p,
.docs-article li {
  color: var(--text-mid);
  line-height: 1.85;
}

.console-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  height: calc(100vh - 60px);
}

.console-content {
  margin: 0;
  padding: 26px 24px 44px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
  box-sizing: border-box;
}

.api-keys-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.api-keys-section > .table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  max-height: none;
}

.console-section {
  margin-bottom: 0;
  padding: 28px 32px 36px;
  border-radius: 6px !important;
  background: #FFFFFF;
  scroll-margin-top: 96px;
  border: 1px solid var(--line-dim);
  box-shadow: 0 1px 6px rgba(15,23,42,.04);
}

.console-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.console-page-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.01em;
}

.balance-page-head h1 {
  font-size: 14px;
}

.console-page-head p,
.console-panel-head p,
.console-muted {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

.console-panel,
.console-balance-panel,
.console-metric {
  border: 1px solid var(--line-dim);
  border-radius: 6px !important;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}

.console-panel {
  padding: 22px;
}

.console-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.console-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.005em;
}

.console-panel-label {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
}

.console-balance-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr);
  gap: 18px;
}

.balance-page {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: calc(100vh - 68px - 52px);
  display: flex;
  flex-direction: column;
}

.balance-summary-panel,
.mimo-recharge-box {
  border-radius: 6px !important;
  background: #FFFFFF;
}

.balance-summary-panel {
  padding: 0;
  margin-bottom: 18px;
}

.balance-page-head {
  align-items: center;
  margin-bottom: 24px;
}

.balance-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.balance-title-row span {
  width: 1px;
  height: 18px;
  background: #D8DEE8;
}

.balance-title-row p {
  margin: 0;
  font-size: 14px;
}

.mimo-balance-cards {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.mimo-balance-card {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px !important;
  background: #F6F8FA;
}

.mimo-balance-card .console-balance {
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.mimo-balance-card .console-balance small {
  font-size: 11px;
}

.mimo-balance-card .money-symbol {
  font-size: inherit;
  line-height: 1;
}

.mimo-balance-card .console-panel-label {
  font-size: 10px;
}

/* ── Balance Hero ── */
.bal-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(200px, 1fr);
  gap: 18px;
}

.bal-hero-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 35%, #F8FAFC 80%);
  border: 1px solid #BFDBFE;
  border-radius: 6px !important;
  padding: 30px 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bal-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.bal-hero-number {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.bal-hero-symbol {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-mid);
}

.bal-hero-number > span:last-child {
  font-size: 24px;
  font-weight: 850;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -.01em;
  line-height: 1;
}

.bal-hero-keys {
  font-size: 12px;
  color: var(--text-dim);
  min-height: 18px;
  margin-top: 2px;
}

.bal-hero-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(37,99,235,.12);
}

.bal-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
}

.bal-refresh-btn {
  margin-left: auto;
  font-size: 12px;
  padding: 5px 12px;
  height: 30px;
}

.bal-threshold-card {
  background: #FFFFFF;
  border: 1px solid var(--line-dim);
  border-radius: 6px !important;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}

.bal-threshold-amount {
  font-size: 22px;
  font-weight: 850;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -.01em;
  line-height: 1;
  margin: 8px 0 10px;
}

.bal-threshold-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.threshold-state {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px !important;
  background: #F1F5F9;
  color: var(--text-dim);
}

.threshold-state.is-enabled {
  background: var(--lime-soft);
  color: #047857;
}

.bal-threshold-hint {
  font-size: 12px;
  color: var(--text-ghost);
}

.bal-threshold-btn {
  margin-top: auto;
  padding-top: 14px;
  width: fit-content;
  font-size: 13px;
}

.threshold-balance {
  margin-bottom: 6px;
}

.threshold-inline-row {
  height: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.threshold-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.threshold-state {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.threshold-inline-row .form-input {
  min-width: 0;
}

.console-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.28);
}

.console-modal {
  width: min(440px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 12px !important;
  background: #FFFFFF;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

.console-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.console-modal p {
  margin: 0 0 18px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.8;
}

.console-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-field-gap {
  margin-top: 14px;
}

.mimo-balance-card .mimo-inline-form {
  margin-top: 6px;
}

.mimo-balance-card .form-input,
.mimo-balance-card .btn {
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.mimo-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
  max-width: 420px;
}

.mimo-recharge-box {
  padding: 36px 34px 40px;
  background: #FFFFFF;
  border: 1px solid var(--line-dim);
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
  flex: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mimo-recharge-box h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.01em;
}

.mimo-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 24px;
}

.mimo-amount,
.mimo-pay {
  min-height: 46px;
  border: 1px solid var(--line-dim);
  border-radius: 4px !important;
  background: #FFFFFF;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 750;
  cursor: default;
  transition: border-color .15s, background .15s, color .15s;
}

.mimo-amount.active,
.mimo-pay.active {
  border-color: var(--cyan);
  background: var(--cyan-ghost);
  color: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.mimo-amount-input {
  min-height: 46px;
  border: 1px solid var(--line-dim);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  outline: none;
  -moz-appearance: textfield;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.mimo-amount-input::-webkit-outer-spin-button,
.mimo-amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mimo-amount-input::placeholder { color: var(--text-dim); font-weight: 600; font-size: 13px; }
.mimo-amount-input:focus,
.mimo-amount-input.active {
  border-color: var(--cyan);
  background: var(--cyan-ghost);
  color: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

/* 选中态打勾（充值金额 / 支付方式）*/
.mimo-amount.active::after,
.mimo-pay.active::after { content: '✓'; margin-left: 7px; font-weight: 700; }
/* 充值卡片：子标题 / 协议勾选 / 补充说明（与金额网格同样 760 居中，左边缘对齐）*/
.mimo-sub-label { max-width: 760px; margin: 4px auto 12px; font-size: 14px; font-weight: 600; color: var(--text-mid); }
.recharge-agree { max-width: 760px; margin: 16px auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mid); cursor: pointer; user-select: none; }
.recharge-agree input { width: 15px; height: 15px; accent-color: var(--cyan); cursor: pointer; flex-shrink: 0; }
.recharge-agree a { color: var(--cyan); text-decoration: none; }
.recharge-agree a:hover { text-decoration: underline; }
.recharge-note { max-width: 760px; margin: 18px auto 0; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 10px; padding: 16px 18px; font-size: 13px; color: #64748B; line-height: 2; box-sizing: border-box; }
.recharge-note p { margin: 0; }
.recharge-note a { color: var(--cyan); text-decoration: none; cursor: pointer; }
.recharge-note a:hover { text-decoration: underline; }

/* 风控提示弹窗（红色主题） */
.risk-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .48);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  z-index: 10000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.risk-modal-card {
  background: #fff;
  border-radius: 22px;
  padding: 38px 34px 28px;
  max-width: 380px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .24);
  animation: riskPop .24s cubic-bezier(.2, .8, .25, 1);
}
@keyframes riskPop {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
.risk-modal-icon {
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(220, 38, 38, .20);
}
.risk-modal-title { font-size: 19px; font-weight: 750; color: #1F2937; margin-bottom: 10px; letter-spacing: .3px; }
.risk-modal-text  { color: #6B7280; font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.risk-modal-btn {
  width: 100%; border: none; cursor: pointer;
  padding: 13px 0; border-radius: 13px;
  font-size: 15px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, #F87171, #DC2626);
  box-shadow: 0 8px 20px rgba(220, 38, 38, .28);
  transition: filter .15s, transform .1s, box-shadow .15s;
}
.risk-modal-btn:hover  { filter: brightness(1.04); box-shadow: 0 10px 24px rgba(220, 38, 38, .34); }
.risk-modal-btn:active { transform: translateY(1px); }

/* 充值成功弹窗（绿色主题，圆角） */
.ok-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .48);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  z-index: 10000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.ok-modal-card {
  background: #fff;
  border-radius: 22px;
  padding: 38px 34px 28px;
  max-width: 360px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .24);
  animation: riskPop .24s cubic-bezier(.2, .8, .25, 1);
}
.ok-modal-icon {
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .22);
}
.ok-modal-title  { font-size: 20px; font-weight: 750; color: #1F2937; margin-bottom: 10px; letter-spacing: .3px; }
.ok-modal-amount { color: #555; font-size: 14px; margin-bottom: 4px; }
.ok-modal-amount b { color: #16A34A; font-weight: 700; font-size: 20px; }
.ok-modal-sub    { color: #94A3B8; font-size: 12px; margin-bottom: 24px; }
.ok-modal-btn {
  width: 100%; border: none; cursor: pointer;
  padding: 13px 0; border-radius: 13px;
  font-size: 15px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, #34D399, #16A34A);
  box-shadow: 0 8px 20px rgba(16, 185, 129, .28);
  transition: filter .15s, transform .1s, box-shadow .15s;
}
.ok-modal-btn:hover  { filter: brightness(1.04); box-shadow: 0 10px 24px rgba(16, 185, 129, .34); }
.ok-modal-btn:active { transform: translateY(1px); }

.mimo-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mimo-pay-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 22px;
}

.mimo-pay-submit {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
}

.mimo-info-strip {
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 4px !important;
  background: var(--cyan-ghost);
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}

.mimo-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 0;
}

.mimo-toolbar .form-input {
  width: auto;
  min-width: 150px;
}

.billing-chart-head {
  align-items: flex-end;
  margin-bottom: 8px;
}

.billing-chart-toolbar {
  align-self: flex-end;
  transform: translateY(6px);
}

.billing-chart-toolbar .form-input {
  height: 38px;
  min-width: 138px;
  background-color: #FFFFFF;
}

.console-balance-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.console-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.console-chart-box {
  height: 278px;
  position: relative;
}

.console-chart-box.compact {
  height: 300px;
}

.api-key-page-panel {
  max-width: 860px;
}

.api-key-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-dim);
}

.api-key-status strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
}

.console-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 6px 10px;
  border-radius: 999px !important;
  background: var(--cyan-soft);
  color: var(--cyan-dim);
  font-size: 12px;
  font-weight: 850;
}

.console-status-pill.muted {
  background: #F1F5F9;
  color: var(--text-dim);
}

.api-key-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.console-field {
  display: grid;
  gap: 7px;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 800;
}

.api-key-actions {
  align-self: end;
  display: flex;
  gap: 8px;
}

.console-field .form-input {
  min-width: 0;
}

.console-field.compact {
  width: min(320px, 100%);
}

.console-filterbar {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.console-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px !important;
  background: #F1F5F9;
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.console-tag-admin {
  background: rgba(245,158,11,.14);
  color: #B45309;
}

.console-tag-user {
  background: var(--cyan-soft);
  color: var(--cyan-dim);
}

.console-tag-success {
  background: rgba(16,185,129,.14);
  color: #047857;
}

.console-tag-danger {
  background: rgba(220,38,38,.12);
  color: #B91C1C;
}

.console-tag-info {
  background: rgba(37,99,235,.12);
  color: #1D4ED8;
}

.recharge-amount-cell {
  color: #0F172A;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.recharge-pay-cell {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  background: #FFFFFF;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.recharge-order-cell {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.recharge-table-wrap {
  width: 100%;
}

.recharge-log-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}

.recharge-log-table th:nth-child(1),
.recharge-log-table td:nth-child(1) {
  width: 18%;
}

.recharge-log-table th:nth-child(2),
.recharge-log-table td:nth-child(2) {
  width: 13%;
}

.recharge-log-table th:nth-child(3),
.recharge-log-table td:nth-child(3) {
  width: 13%;
}

.recharge-log-table th:nth-child(4),
.recharge-log-table td:nth-child(4) {
  width: 13%;
}

.recharge-log-table th:nth-child(5),
.recharge-log-table td:nth-child(5) {
  width: 27%;
}

.recharge-log-table th:nth-child(6),
.recharge-log-table td:nth-child(6) {
  width: 16%;
}

.recharge-log-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-recharge-log-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
}

.admin-recharge-log-table th:nth-child(1),
.admin-recharge-log-table td:nth-child(1) { width: 15%; }
.admin-recharge-log-table th:nth-child(2),
.admin-recharge-log-table td:nth-child(2) { width: 18%; }
.admin-recharge-log-table th:nth-child(3),
.admin-recharge-log-table td:nth-child(3) { width: 11%; }
.admin-recharge-log-table th:nth-child(4),
.admin-recharge-log-table td:nth-child(4) { width: 11%; }
.admin-recharge-log-table th:nth-child(5),
.admin-recharge-log-table td:nth-child(5) { width: 11%; }
.admin-recharge-log-table th:nth-child(6),
.admin-recharge-log-table td:nth-child(6) { width: 22%; }
.admin-recharge-log-table th:nth-child(7),
.admin-recharge-log-table td:nth-child(7) { width: 12%; }

.admin-recharge-log-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-recharge-user {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-recharge-user strong {
  color: #0F172A;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recharge-user span {
  color: #64748B;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.console-online span {
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  background: #CBD5E1;
}

.console-online.is-online {
  color: #059669;
}

.console-online.is-online span {
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

.console-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
}

.console-pager span {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 800;
}

.console-pager .btn {
  padding: 4px 12px;
  font-size: 12px;
}

.console-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.console-metric {
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.metric-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.console-metric span {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
}

.console-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.01em;
}

@media (max-width: 860px) {
  .standalone-page {
    overflow: auto;
  }
  .standalone-shell,
  .docs-shell {
    height: auto;
    overflow: visible;
  }
  .docs-shell,
  .console-shell {
    grid-template-columns: 1fr;
  }
  .page-side-nav,
  .docs-article {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .page-side-nav {
    height: auto;
    padding: 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .page-side-nav a {
    white-space: nowrap;
    margin-bottom: 0;
  }
  .docs-article,
  .console-content {
    margin: 14px;
  }
  .standalone-topbar,
  .standalone-nav {
    flex-wrap: wrap;
  }
  .standalone-topbar {
    min-height: 76px;
    padding: 12px 16px;
  }
  .platform-topbar-left {
    width: 100%;
    justify-content: space-between;
  }
  .platform-topbar-pill {
    display: none;
  }
  .standalone-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    font-size: 14px;
  }
  .console-page-head,
  .api-key-status {
    display: grid;
  }
  .console-balance-layout,
  .mimo-balance-cards,
  .api-key-form-row,
  .console-metric-row {
    grid-template-columns: 1fr;
  }
  .mimo-amount-grid,
  .mimo-pay-row {
    grid-template-columns: 1fr 1fr;
  }
  .mimo-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .api-key-actions {
    align-self: auto;
    flex-wrap: wrap;
  }
}

/* ============ 手机端适配 (≤480px) ============ */
@media (max-width: 480px) {
  /* 主布局：侧边栏变底部导航 */
  .layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr auto;
    padding-bottom: 60px;
  }
  .sidebar {
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    top: auto !important;
    height: 60px !important;
    width: 100% !important;
    flex-direction: row !important;
    padding: 0 !important;
    border-right: none !important;
    border-top: 1px solid var(--line-dim);
    overflow-x: auto !important;
    overflow-y: hidden !important;
    z-index: 200;
    background: var(--bg-0) !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  }
  .sidebar-brand,
  .sidebar-section-label,
  .sidebar-footer {
    display: none !important;
  }
  .sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    width: 100%;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
  }
  .nav-item {
    flex: 1;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    gap: 3px !important;
    min-width: 52px;
    border-radius: 0 !important;
  }
  .nav-item span:not(.nav-num) {
    display: block !important;
    font-size: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52px;
  }
  .nav-item svg { opacity: .6; }
  .nav-item.active svg { opacity: 1; }
  .nav-item.active::after { display: none !important; }

  /* 主内容区 */
  .main {
    padding: 16px 12px 16px !important;
    min-height: calc(100vh - 60px);
  }
  .page-title { font-size: 22px !important; }

  /* 统计卡片 */
  .stats { grid-template-columns: 1fr 1fr !important; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--line-dim); }

  /* 双列变单列 */
  .two-col { grid-template-columns: 1fr !important; }
  .form-row { flex-direction: column !important; }
  /* 参数配置行：手机上多列会过窄，改为两列 */
  .wb-settings-grid { grid-template-columns: 1fr 1fr !important; }

  /* 任务卡片 */
  .task-card { padding: 12px 14px !important; }

  /* 表格横向滚动 */
  .preview-wrap,
  .table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .preview-table { min-width: 600px; }

  /* 模态框 */
  .modal { width: calc(100vw - 20px) !important; max-height: 90vh; }

  /* 顶部 topbar */
  .topbar { padding: 0 12px !important; }
  .topbar-username { display: none; }

  /* 主 topbar 手机端：单行，隐藏导航，入口移到头像下拉 */
  .main-topbar { padding: 0 14px; height: 52px; gap: 10px; }
  .platform-topbar-pill { display: none !important; }
  .platform-nav { display: none !important; }
  .topbar-divider { display: none !important; }
  .topbar-username { display: none !important; }
  /* 下拉菜单里的导航项手机端显示 */
  .topbar-dropdown-nav { display: flex !important; }

  /* 管理中心侧边导航 → 底部固定栏 */
  .console-shell {
    grid-template-columns: 1fr !important;
    height: auto !important;
    padding-bottom: 56px;
  }
  .console-content {
    height: auto !important;
    min-height: calc(100vh - 52px - 56px);
    padding: 16px 14px 24px !important;
  }
  .page-side-nav.console-side-nav {
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    top: auto !important;
    height: 56px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-top: 1px solid var(--line-dim);
    border-right: none !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    z-index: 200;
    background: #fff !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 !important;
  }
  .page-side-nav.console-side-nav::-webkit-scrollbar { display: none; }
  /* 手机端底部导航条放不下弹出菜单，隐藏「更多」入口（退出登录在顶栏头像菜单里仍可用） */
  .side-nav-footer { display: none !important; }
  .page-side-nav.console-side-nav a {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 56px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    white-space: nowrap;
    font-size: 13px !important;
    font-weight: 500 !important;
  }
  /* 管理员组：头部隐藏，子项直接展示在底部栏 */
  .console-nav-group { margin: 0 !important; }
  .console-nav-group-header { display: none !important; }
  .console-nav-group-items {
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .console-nav-group-items a {
    flex: 0 0 auto !important;
    height: 56px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 0 !important;
    white-space: nowrap;
  }
  /* standalone topbar 手机端紧凑 */
  .standalone-topbar { padding: 0 14px; height: 52px !important; min-height: 52px !important; flex-wrap: nowrap; }

  /* ── 管理中心各页面适配 ── */

  /* 通用 section / panel 减少内边距 */
  .console-section { padding: 14px 0 !important; }
  .console-panel { padding: 18px 14px !important; }
  .mimo-recharge-box { padding: 20px 14px 24px !important; min-height: 0 !important; }
  .console-panel-head { padding: 12px 14px !important; margin-bottom: 12px !important; }
  .balance-summary-panel { padding: 0 !important; }

  /* 余额页：两列卡片变单列 */
  .bal-hero-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .bal-hero-card { padding: 20px 16px !important; }
  .bal-threshold-card { padding: 20px 16px !important; }

  /* 充值金额格：4列→2列 */
  .mimo-amount-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  /* 支付方式：2列→1列 */
  .mimo-pay-row { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* API Key 表单行：两列→单列堆叠 */
  .api-key-form-row { grid-template-columns: 1fr !important; }
  .api-key-actions { flex-wrap: wrap !important; }

  /* 筛选栏、工具栏：横向换行 */
  .console-filterbar { flex-wrap: wrap !important; gap: 8px !important; }
  .mimo-toolbar { flex-wrap: wrap !important; justify-content: flex-start !important; }
  .mimo-toolbar .form-input { min-width: 0 !important; width: 100% !important; }

  /* 图表+表格两栏→单栏（已由 two-col 处理，但 console 内的特殊两栏也要覆盖）*/
  .console-log-grid { grid-template-columns: 1fr !important; }

  /* 用户管理统计卡和图表 */
  .admin-user-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* 表格横向滚动 */
  .console-table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .console-table-wrap .table { min-width: 760px; }
  .card-risk-editor {
    grid-template-columns: 1fr;
    min-width: 300px;
  }

  /* API keys 区域 */
  .api-keys-section { padding: 0 !important; }

  /* settingsRow 配置行在手机端单列 */
  .settingsRow { grid-template-columns: 1fr !important; }

  /* 充值按钮全宽 */
  .mimo-pay-submit { width: 100% !important; }

  /* console-field compact 全宽 */
  .console-field.compact { width: 100% !important; }
}

/* ============================================================
   工作台重设计 v2 — 对齐 React 参考稿
   ============================================================ */

/* 页头区 */
.wb-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #E8EDF2;
  flex-wrap: wrap;
}
.wb-breadcrumb { font-size: 12.5px; font-weight: 600; color: #2563EB; letter-spacing: .04em; margin-bottom: 5px; }
.wb-page-title { font-size: 22px; font-weight: 800; color: #0F172A; margin: 0 0 4px; letter-spacing: -.02em; line-height: 1.3; }
.wb-page-subtitle { font-size: 14px; color: #64748B; margin: 0; line-height: 1.55; }
.wb-page-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: flex-end; }

/* 面板卡片 */
.wb-panel {
  background: #FFFFFF;
  border: 1px solid #E8EDF2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.03);
}
.wb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FFFFFF;
  gap: 12px;
}
.wb-panel-divider { height: 1px; background: #F1F5F9; margin: 0; }
.wb-panel-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #F8FAFC;
  color: #64748B;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wb-panel-title { font-size: 15px; font-weight: 700; color: #0F172A; line-height: 1.3; }
.wb-panel-desc { font-size: 12.5px; color: #94A3B8; margin-top: 1px; }
.wb-panel-body { padding: 20px; }
.wb-badge-idle {
  font-size: 12px; font-weight: 600; color: #64748B;
  background: #F1F5F9; padding: 3px 10px; border-radius: 6px; white-space: nowrap;
}

/* 按钮行 */
.wb-btn-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.wb-btn-start {
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  padding: 9px 20px !important; font-size: 14px !important; font-weight: 600 !important;
  border-radius: 12px !important; background: #2563EB !important; border-color: #2563EB !important;
  color: #FFFFFF !important; box-shadow: 0 1px 2px rgba(37,99,235,.25) !important; transition: all .15s !important;
}
.wb-btn-start:hover { background: #1D4ED8 !important; border-color: #1D4ED8 !important; color: #FFFFFF !important; }
.wb-btn-start:active { transform: scale(.98) !important; }
.wb-btn-stop {
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  padding: 9px 16px !important; font-size: 14px !important; font-weight: 600 !important;
  border-radius: 12px !important; background: #FFFFFF !important;
  border: 1px solid #FECACA !important; color: #EF4444 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04) !important;
}
.wb-btn-stop:hover { background: #FFF5F5 !important; border-color: #FCA5A5 !important; }
.wb-btn-hint { font-size: 12px; color: #94A3B8; }

/* 统计小卡片 */
.wb-stat-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; margin-bottom: 16px; }
.wb-stat-card {
  border: 1px solid #F1F5F9; border-radius: 16px;
  padding: 14px; background: rgba(248,250,252,0.6);
}
.wb-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wb-stat-label { font-size: 13px; font-weight: 500; color: #64748B; }
.wb-stat-icon { color: #CBD5E1; }
.wb-stat-val { font-size: 22px; font-weight: 700; color: #0F172A; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }

/* 进度条 */
.wb-progress-section { margin-bottom: 16px; }
.wb-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; color: #64748B; margin-bottom: 8px; }
.wb-progress-pct { font-weight: 700; color: #2563EB; flex-shrink: 0; }
.wb-progress-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.wb-progress-log { font-weight: 400; font-size: 11px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wb-progress-log:not(:empty)::before { content: '·'; margin-right: 6px; color: #CBD5E1; }
.wb-progress-track { height: 6px; background: #F1F5F9; border-radius: 99px; overflow: hidden; }
.wb-progress-fill { height: 100%; background: #2563EB; border-radius: 99px; transition: width .5s ease; }

/* 运行建议 */
.wb-advice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #FFFBEB; border-radius: 12px; padding: 12px 14px; margin-top: 4px;
}
.wb-advice-icon { color: #F59E0B; flex-shrink: 0; margin-top: 1px; }
.wb-advice-body { font-size: 12px; color: #92400E; line-height: 1.65; margin: 0; }

/* detailSlot */
.wb-detail-slot {
  padding: 9px 12px; background: #F8FAFC; border-radius: 8px; border: 1px solid #F1F5F9;
  font-size: 12.5px; color: #64748B; min-height: 36px; margin-bottom: 12px;
}

/* 空状态 */
.wb-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 36px 20px; text-align: center;
}
.wb-empty-icon {
  width: 48px; height: 48px; border-radius: 14px; background: #F1F5F9;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #94A3B8;
}
.wb-empty-title { font-size: 13.5px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.wb-empty-desc { font-size: 12.5px; color: #94A3B8; line-height: 1.5; }

/* 日志区域 */
.wb-log-box {
  height: 200px; overflow-y: auto; background: rgba(248,250,252,0.5);
  border-radius: 0 0 20px 20px;
}

/* 兼容旧 ID */
.wb-progress-fill, .progress-bar { transition: width .5s ease; }

@keyframes cfgDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.7); }
}


/* 日期输入框：未填写时显示中文"年/月/日"占位提示 */
.date-wrap { position: relative; }
.date-wrap::before {
  content: attr(data-ph);
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-ghost); font-size: 13px; pointer-events: none; z-index: 1;
}
.date-wrap.has-value::before,
.date-wrap:focus-within::before { display: none; }
.date-input-zh::-webkit-datetime-edit-fields-wrapper { transition: opacity .1s; }
.date-wrap:not(.has-value):not(:focus-within) .date-input-zh::-webkit-datetime-edit-fields-wrapper { opacity: 0; }

/* ============ 数据中心独立页 (/data) ============ */
body.data-mode .sidebar { display: none !important; }
body.data-mode .layout { grid-template-columns: 1fr !important; }

/* ============ 新用户首次进入数据中心引导 ============ */
/* 锚点：定位元素 left/top 指向卡片底边正中（指尖将落于此点） */
.preview-tutorial {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  /* 整体以指尖为 anchor，向下展开（手 + 气泡都在指尖下方）*/
  transform: translate(-50%, 0);
  animation: tut-pop-in .35s cubic-bezier(.34,1.56,.64,1);
}
.preview-tutorial.fade-out { animation: tut-fade-out .3s forwards; }

/* 卡片底边上的脉冲圆环（指尖落点）*/
.preview-tutorial-ripple {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px; height: 22px;
  margin-left: -11px; margin-top: -11px;
  border-radius: 50%;
  background: rgba(37,99,235,.18);
  border: 2px solid rgba(37,99,235,.85);
  animation: tut-ripple 1.4s ease-out infinite;
}

/* 手 SVG，整体沿指尖往下排列：finger-svg.top=0 表示指尖在锚点上 */
.preview-tutorial-finger {
  display: block;
  margin: 0 auto;
  width: 64px;
  height: 80px;
  filter: drop-shadow(0 8px 18px rgba(15,23,42,.28));
  animation: tut-tap 1.3s ease-in-out infinite;
  transform-origin: 50% 0%;
}

.preview-tutorial-bubble {
  position: relative;
  margin-top: 14px;
  background: rgba(15,23,42,.92);
  color: #fff;
  padding: 9px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  text-align: center;
}
.preview-tutorial-bubble::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-bottom-color: rgba(15,23,42,.92);
}

@keyframes tut-pop-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes tut-fade-out {
  to { opacity: 0; transform: translate(-50%, -6px); }
}
/* 手按下：整只手沿指尖向上推一点（模拟按压瞬间）*/
@keyframes tut-tap {
  0%, 100% { transform: translateY(0); }
  45%      { transform: translateY(-8px); }
  55%      { transform: translateY(-8px); }
}
@keyframes tut-ripple {
  0%   { opacity: 0; transform: scale(.5); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: scale(2.3); }
}

/* ============ 下载下拉菜单 ============ */
.dl-menu {
  position: fixed;
  z-index: 9998;
  background: var(--bg-1);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
  padding: 5px;
  min-width: 220px;
  animation: dl-menu-in .15s ease-out;
}
.dl-menu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 13px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.dl-menu-item:hover { background: var(--bg-3); }
.dl-menu-item:hover .dl-menu-fmt { color: var(--cyan); }
.dl-menu-fmt { font-weight: 700; letter-spacing: .04em; font-size: 13px; }
.dl-menu-desc { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }
@keyframes dl-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ 各采集功能参数说明小字 ============ */
.form-mini-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-bottom: 5px;
  line-height: 1.4;
}
.form-mini-label .ff-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  flex-shrink: 0;
}
.form-mini-label .ff-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: #94A3B8;
}
.form-mini-label .ff-tip,
.wb-switch-text .ff-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  cursor: help;
  color: #94A3B8;
  outline: none;
}
.form-mini-label .ff-tip:hover,
.form-mini-label .ff-tip:focus,
.wb-switch-text .ff-tip:hover,
.wb-switch-text .ff-tip:focus { color: #2563EB; }
.form-mini-label .ff-tip-box,
.wb-switch-text .ff-tip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  background: #1E293B;
  color: #F1F5F9;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.6;
  padding: 8px 11px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
  z-index: 200;
  white-space: normal;
  text-align: left;
  pointer-events: none;
}
.form-mini-label .ff-tip-box::after,
.wb-switch-text .ff-tip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1E293B;
}
.form-mini-label .ff-tip:hover .ff-tip-box,
.form-mini-label .ff-tip:focus .ff-tip-box,
.wb-switch-text .ff-tip:hover .ff-tip-box,
.wb-switch-text .ff-tip:focus .ff-tip-box { opacity: 1; visibility: visible; }

/* 通用信息提示（hover/聚焦显示说明） */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  cursor: help;
  color: #94A3B8;
  outline: none;
}
.info-tip:hover, .info-tip:focus { color: #2563EB; }
.info-tip .info-tip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #1E293B;
  color: #F1F5F9;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.6;
  padding: 8px 11px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
  z-index: 200;
  white-space: normal;
  text-align: left;
  pointer-events: none;
}
.info-tip .info-tip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1E293B;
}
.info-tip:hover .info-tip-box,
.info-tip:focus .info-tip-box,
.info-tip.is-open .info-tip-box { opacity: 1; visibility: visible; }

/* 数据中心预览页顶部会裁剪向上的浮层；此入口保持同款样式但向下展开。 */
.note-link-completion-help .info-tip-box {
  top: calc(100% + 8px);
  bottom: auto;
}
.note-link-completion-help .info-tip-box::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1E293B;
}

/* ============================================================
   内联进度圈
   ============================================================ */
.inline-prog {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 36px;
  animation: ip-fadein .3s ease;
}
@keyframes ip-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ip-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}
.ip-ring-svg {
  position: absolute;
  top: 0; left: 0;
}
.ip-ring-bg {
  fill: none;
  stroke: #F1F5F9;
  stroke-width: 12;
}
.ip-ring-fg {
  fill: none;
  stroke: #4D96FF;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
  transition: stroke-dashoffset .5s ease;
  animation: ip-hue 4s linear infinite;
}
@keyframes ip-hue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}
.inline-prog.ip-done .ip-ring-fg { animation: none; filter: none; stroke: #22C55E; }
.inline-prog.ip-err  .ip-ring-fg { animation: none; filter: none; stroke: #EF4444; }
#pdRingGroup {
  transform-origin: 100px 100px;
  transform: rotate(-90deg);
}
#pdRingGroup.pd-spin {
  animation: pd-ring-spin 1.2s linear infinite;
}
@keyframes pd-ring-spin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}
.ip-ring-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 120px;
}
.ip-count {
  font-size: 40px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1;
}
.ip-sublabel {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 5px;
}
.ip-status {
  display: none;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}
.ip-status-done { color: #16A34A; }
.ip-status-err  { color: #DC2626; }
.ip-stats {
  display: flex;
  gap: 48px;
  margin-top: 28px;
}
.ip-stat { text-align: center; }
.ip-stat-val {
  font-size: 20px;
  font-weight: 600;
  color: #334155;
  line-height: 1;
}
.ip-stat-lbl {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
}

/* ============================================================
   工具类（从重复内联样式抽离）
   ============================================================ */
.u-scroll-y {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
}
.u-field-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.u-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.u-input-full {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  font-size: 13px;
  border: 1px solid var(--line-dim);
  border-radius: 6px;
  background: var(--bg-0);
  color: var(--text);
}

/* 预览表格：单元格悬停复制按钮（全表共用一个，跟随鼠标所在格子） */
.pv-cell-copy {
  position: absolute;
  z-index: 6;
  display: none;
  width: 22px;
  height: 22px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-dim);
  border-radius: 5px;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  transition: color .12s, border-color .12s;
}
.pv-cell-copy.show { display: inline-flex; }
.pv-cell-copy:hover { color: var(--cyan); border-color: var(--cyan); }
.pv-cell-copy.copied { color: #16A34A; border-color: #16A34A; }

/* 数据中心多选：选中卡片高亮 */
.task-card-selected { border-color: var(--cyan) !important; background: #F5F9FF !important; box-shadow: 0 0 0 2px rgba(37,99,235,0.15) !important; }

/* 数据中心日期选择：分段式胶囊控件 */
.dc-datebar {
  display: inline-flex; align-items: stretch; height: 32px;
  border: 1px solid var(--line-dim); border-radius: 10px; background: var(--bg-0);
  box-shadow: 0 1px 2px rgba(15,23,42,.05); overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.dc-datebar .dc-seg {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 100%; padding: 0 13px; margin: 0; border: none; background: transparent;
  font-size: 12.5px; line-height: 1; color: var(--text-dim); cursor: pointer;
  font-family: inherit; transition: background .15s ease, color .15s ease;
}
.dc-datebar .dc-seg:hover { background: var(--cyan-ghost); color: var(--cyan-dim); }
.dc-datebar .dc-seg-sep { width: 1px; background: var(--line-dim); flex-shrink: 0; }
.dc-datebar .dc-seg-nav { padding: 0 9px; color: var(--text-ghost); }
.dc-datebar .dc-seg-nav svg { width: 15px; height: 15px; display: block; }
.dc-datebar .dc-seg-nav:hover { color: var(--cyan); }
/* 全部：选中=实心高亮 */
.dc-datebar #dateAllBtn.dc-seg-active { background: var(--cyan); color: #fff; }
.dc-datebar #dateAllBtn.dc-seg-active:hover { background: var(--cyan-dim); color: #fff; }
/* 日期段 */
.dc-datebar .dc-seg-date { position: relative; gap: 6px; padding: 0 11px; color: var(--text); font-weight: 600; }
.dc-datebar .dc-seg-date svg { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }
.dc-datebar .dc-seg-date.dc-on { background: var(--cyan-soft); color: var(--cyan-dim); }
.dc-datebar .dc-seg-date.dc-on svg { color: var(--cyan-dim); }
.dc-datebar .dc-seg-date input[type=date] {
  border: none; background: transparent; outline: none; font-family: inherit;
  font-size: 12.5px; color: inherit; font-weight: inherit; cursor: pointer;
  padding: 0; margin: 0; min-width: 0; line-height: 1;
  -webkit-appearance: none; appearance: none;
}
/* 隐藏原生日历图标，让整段都可点开日历 */
.dc-datebar .dc-seg-date input[type=date]::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  padding: 0; opacity: 0; cursor: pointer;
}
.dc-datebar .dc-seg-date input[type=date]::-webkit-inner-spin-button,
.dc-datebar .dc-seg-date input[type=date]::-webkit-clear-button { display: none; -webkit-appearance: none; }

/* 意见反馈弹窗 —— 精致样式 */
.fb-mask { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.fb-modal {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  border: 1px solid rgba(37,99,235,.07);
  animation: fbPop .18s ease;
}
@keyframes fbPop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.fb-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 8px; cursor: pointer;
  color: var(--text-ghost); transition: background .15s, color .15s;
}
.fb-close:hover { background: #F1F5F9; color: var(--text); }
.fb-close svg { width: 18px; height: 18px; }
.fb-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; padding-right: 24px; }
.fb-badge {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 6px 16px rgba(37,99,235,.30);
}
.fb-badge svg { width: 21px; height: 21px; }
.fb-title { margin: 1px 0 4px; font-size: 18px; font-weight: 800; color: var(--text); }
.fb-sub { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.fb-field { margin-bottom: 13px; }
.fb-ta-wrap { position: relative; }
.fb-ta-wrap textarea {
  width: 100%; box-sizing: border-box; min-height: 122px; resize: vertical;
  padding: 12px 13px 26px; border: 1.5px solid var(--line-dim); border-radius: 11px;
  font-family: inherit; font-size: 13.5px; line-height: 1.65; color: var(--text);
  background: #FBFCFE; outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
}
.fb-ta-wrap textarea:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px var(--cyan-soft); }
.fb-ta-wrap textarea::placeholder { color: var(--text-ghost); }
.fb-count { position: absolute; right: 11px; bottom: 9px; font-size: 11px; color: var(--text-ghost); pointer-events: none; background: linear-gradient(transparent, #fff 45%); padding: 0 0 0 8px; }
.fb-input-wrap { position: relative; display: flex; align-items: center; }
.fb-input-ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-ghost); pointer-events: none; transition: color .16s; }
.fb-input-wrap:focus-within .fb-input-ico { color: var(--cyan); }
.fb-input-wrap input {
  width: 100%; box-sizing: border-box; padding: 11px 13px 11px 36px;
  border: 1.5px solid var(--line-dim); border-radius: 11px; font-family: inherit;
  font-size: 13.5px; color: var(--text); background: #FBFCFE; outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.fb-input-wrap input:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px var(--cyan-soft); }
.fb-input-wrap input::placeholder { color: var(--text-ghost); }
.fb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.fb-send { display: inline-flex; align-items: center; gap: 7px; }
.fb-send svg { width: 15px; height: 15px; }
.fb-send:disabled { opacity: .6; cursor: not-allowed; }

/* 联系我们弹窗 */
.contact-mask { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.contact-modal {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  border: 1px solid rgba(37,99,235,.07);
  animation: fbPop .18s ease;
}
.contact-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
  padding-right: 24px;
}
.contact-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 6px 16px rgba(37,99,235,.30);
}
.contact-badge svg { width: 21px; height: 21px; }
.contact-title { margin: 1px 0 4px; font-size: 18px; font-weight: 800; color: var(--text); }
.contact-sub { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
}
.contact-label {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
}
.contact-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0;
}
.contact-copy { flex-shrink: 0; }
.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* 上传中旋转图标 */
@keyframes upload-spin { to { transform: rotate(360deg); } }
.upload-spin {
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 6px;
  border: 2px solid #BFDBFE;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: upload-spin .7s linear infinite;
  flex-shrink: 0;
}

/* 开关样式（评论采集「爬取回复」等 cardStyle 复选项）*/
.wb-switch-field { display:flex; align-items:center; justify-content:space-between; gap:10px; height:40px; box-sizing:border-box; padding:0 16px; background:#fff; border:1px solid #E2E8F0; border-radius:999px; cursor:pointer; transition:border-color .16s; }
.wb-switch-field:hover { border-color:#CBD5E1; }
.wb-switch-text { font-size:14px; color:#334155; }
.wb-switch { position:relative; width:38px; height:22px; flex-shrink:0; }
.wb-switch input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.wb-switch-slider { position:absolute; inset:0; background:#CBD5E1; border-radius:999px; transition:background .16s; pointer-events:none; }
.wb-switch-slider::before { content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,0.2); transition:transform .16s; }
.wb-switch input:checked + .wb-switch-slider { background:#2563EB; }
.wb-switch input:checked + .wb-switch-slider::before { transform:translateX(16px); }
