:root {
  --bg: #070914;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.64);
  --muted2: rgba(255, 255, 255, 0.48);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 30px rgba(0, 0, 0, 0.4);
  --brandA: #7c5cff;
  --brandB: #16d9ff;
  --brandC: #ff2bd6;
  --radius: 18px;
  --radius2: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(22, 217, 255, 0.18), transparent 55%),
    radial-gradient(900px 600px at 40% 120%, rgba(255, 43, 214, 0.16), transparent 55%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg__grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  opacity: 0.5;
}

.bg__blob {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.45;
  transform: translateZ(0);
  animation: float 12s ease-in-out infinite;
}
.bg__blob--a {
  left: -120px;
  top: 80px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.9), transparent 55%);
}
.bg__blob--b {
  right: -160px;
  top: 220px;
  animation-duration: 16s;
  background: radial-gradient(circle at 35% 30%, rgba(22, 217, 255, 0.85), transparent 55%);
}
.bg__blob--c {
  left: 18%;
  bottom: -220px;
  animation-duration: 18s;
  background: radial-gradient(circle at 30% 35%, rgba(255, 43, 214, 0.78), transparent 58%);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.03);
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  margin: 14px auto 0;
  width: min(var(--max), calc(100% - 28px));
  background: rgba(9, 10, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.brand__logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(22, 217, 255, 0.85));
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.24);
  font-weight: 800;
}
.brand__text {
  font-weight: 800;
  letter-spacing: 1px;
}
.brand--mini .brand__logo {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.nav__links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
}
.nav__links a {
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav__meta {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin-right: 6px;
}
.nav__meta strong {
  color: rgba(255, 255, 255, 0.9);
}

/* Admin tabs */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tabbtn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  cursor: pointer;
}
.tabbtn.is-active {
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.96), rgba(22, 217, 255, 0.82));
  color: rgba(255, 255, 255, 0.94);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.96), rgba(22, 217, 255, 0.82));
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.iconbtn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.iconbtn__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
  border-radius: 2px;
}
.iconbtn__bar + .iconbtn__bar {
  margin-top: 4px;
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.mnav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mnav__panel {
  position: absolute;
  right: 12px;
  top: 12px;
  width: min(360px, calc(100% - 24px));
  background: rgba(9, 10, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translateY(-6px);
}
.mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.mnav__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
}
.mnav a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}
.mnav a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.mnav__cta {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.main {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.hero {
  display: block;
  padding: 22px 0 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brandB), var(--brandC));
  box-shadow: 0 0 0 6px rgba(22, 217, 255, 0.12);
}

.hero__title {
  margin: 14px 0 10px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.9px;
}
.gradient {
  background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(22, 217, 255, 1), rgba(255, 43, 214, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0;
}
.hero__free {
  color: rgba(120, 255, 190, 0.95);
  font-weight: 800;
}
.hero__freeNote {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.hero__highlights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}
.hero__highlight::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brandA), var(--brandB));
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat__k {
  font-weight: 900;
  font-size: 18px;
}
.stat__v {
  margin-top: 4px;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.35;
}

.hero__right {
  display: grid;
  gap: 12px;
}

.carousel {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}
.carousel__slide {
  padding: 12px;
}
.carousel__slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.carousel__ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.14);
}
.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.carousel__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}
.carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.dotbtn {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.dotbtn.is-active {
  width: 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(22, 217, 255, 1));
  border-color: rgba(124, 92, 255, 0.5);
}

.hero__card {
  padding: 14px 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow2);
}
.hero__cardTitle {
  font-weight: 900;
  letter-spacing: 0.4px;
}
.hero__cardText {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.badge {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 12px;
}

.section {
  padding: 56px 0 10px;
}
.section--wide {
  padding-top: 46px;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
}
.section__head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.6px;
}
.section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  padding: 18px 18px 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow2);
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.35);
}
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.accountInfo {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.accountInfo__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.accountInfo__row strong {
  color: rgba(255, 255, 255, 0.93);
}
.logHint {
  margin-bottom: 8px !important;
}
.logMini {
  margin-top: 6px;
  display: grid;
  gap: 6px;
  max-height: 124px;
  overflow: auto;
}
.logMini__item {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}
.strategyGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}
.strategyDivider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 14px 0;
}

.showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}
.showcase__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.showcase__cta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
}

.frame {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.frame__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.14);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.dot--r {
  background: rgba(255, 94, 94, 0.9);
}
.dot--y {
  background: rgba(255, 209, 82, 0.9);
}
.dot--g {
  background: rgba(86, 255, 155, 0.9);
}
.frame__title {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 13px;
}
.frame__body img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow2);
}
.panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.banner {
  margin-top: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(124, 92, 255, 0.25);
  background: radial-gradient(900px 220px at 20% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 220px at 100% 60%, rgba(22, 217, 255, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
}
.banner__k {
  font-size: 18px;
  font-weight: 900;
}
.banner__v {
  margin-top: 6px;
  color: var(--muted);
}
.banner__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section--contact {
  padding-bottom: 40px;
}
.section__head code,
.imCard__hint code,
.imRow__tip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

.contact {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
.contact--im {
  grid-template-columns: 0.95fr 1.05fr;
}

.imCard {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}
.imCard__title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.imCard__hint {
  margin: 0 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.qrWrap {
  margin-top: 14px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
}
.qrWrap__img {
  width: min(240px, 100%);
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.imCard--channels .imRow + .imRow {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.imRow__label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.imRow__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.imRow__value {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.4px;
}
.imRow__tip {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.65;
}
.imRow__tip strong {
  color: rgba(255, 255, 255, 0.82);
}

.btn--sm {
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* === Admin pages === */
.adminWrap {
  display: grid;
  place-items: center;
}
.adminWrap .adminPanel {
  width: min(460px, 100%);
}
.modal-content .adminPanel {
  width: 100%;
}
.section__head.section__head--stack {
  align-items: flex-start;
  flex-direction: column;
}
.section__head.section__head--stack p {
  max-width: 78ch;
}
.adminGrid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
.adminPanel {
  position: relative;
}
.adminTitle {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.form {
  display: grid;
  gap: 12px;
}
.form__row {
  display: grid;
  gap: 8px;
}
.form__row--checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 40px;
}
.form__label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.form__row--checkbox .form__label {
  margin: 0;
  line-height: 1.2;
}
.form__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(-1px);
}
.section-fields--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
/* 指标过滤：每行 2 项（开关+权重合并为一格） */
.section-fields--grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.filter-config-pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.filter-config-pair .form__row--checkbox {
  margin: 0;
}
.filter-config-pair .form__row--weight {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.filter-config-pair .form__row--weight .form__label {
  flex: 0 0 auto;
  margin: 0;
}
.filter-config-pair .form__row--weight .input {
  width: 72px;
  flex: 0 0 auto;
}
.section-fields--single {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.config-subcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.config-subcard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  min-width: 0;
}
.config-subcard__title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}
@media (max-width: 1100px) {
  .section-fields--grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-fields--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-fields--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .section-fields--grid-2 {
    grid-template-columns: 1fr;
  }
  .section-fields--grid {
    grid-template-columns: 1fr;
  }
  .section-fields--single {
    grid-template-columns: 1fr;
  }
  .config-subcards {
    grid-template-columns: 1fr;
  }
}
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}
.input:focus {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}
/* 下拉列表：收起态黑色底板；option 同色，弱化系统浅色弹出层 */
select.input {
  background-color: #000000;
  color: rgba(255, 255, 255, 0.94);
  color-scheme: dark;
}
select.input:focus {
  background-color: #000000;
}
select.input option {
  background-color: #000000;
  color: rgba(255, 255, 255, 0.94);
}
select.input option:hover,
select.input option:focus,
select.input option:checked {
  background-color: #1a1a1a;
  color: #ffffff;
}

.form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.strategyWarningTip {
  margin-left: 0;
  margin-right: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 84, 0.48);
  background: rgba(255, 196, 84, 0.14);
  color: rgba(255, 236, 190, 0.96);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.4;
}
.strategyWarningTip strong {
  color: #ffd46e;
  margin-right: 6px;
}
@media (max-width: 980px) {
  .strategyWarningTip {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}
.notice {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.notice[data-type="ok"] {
  border-color: rgba(86, 255, 155, 0.28);
  background: rgba(86, 255, 155, 0.08);
}
.notice[data-type="error"] {
  border-color: rgba(255, 94, 94, 0.28);
  background: rgba(255, 94, 94, 0.08);
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.kv--summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kv__item--span2 {
  grid-column: span 2;
}
/* 手动下单 + 声音提示：占满摘要区整行，避免右侧大块留白 */
.kv--summary #manualTradeRow {
  grid-column: 1 / -1;
}
.manualTradePair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.manualTradeCard {
  flex: 1 1 0;
  min-width: min(100%, 220px);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}
/* 左侧表单略多占宽，右侧提示卡略窄，但都会随容器拉伸 */
.manualTradeCard--order {
  flex: 1.25 1 0;
  min-width: min(100%, 260px);
}
.manualTradeCard--sound {
  flex: 0.85 1 0;
  min-width: min(100%, 200px);
}
.manualTradeCard__title {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.manualTradeCard__body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 0;
  font-weight: 900;
  font-size: 20px;
}
.tradeSoundRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.tradeSoundRowTop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tradeSoundLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  user-select: none;
}
.kv__item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
.kv__k {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.kv__v {
  margin-top: 6px;
  font-weight: 900;
  font-size: 20px;
}
.kv__v--pos {
  color: #4ade80;
}
.kv__v--neg {
  color: #f87171;
}
.kv__v--muted {
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 980px) {
  .kv--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv__item--span2 {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .kv--summary {
    grid-template-columns: 1fr;
  }
  .kv__item--span2 {
    grid-column: span 1;
  }
}
.tableWrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
}
.runtimeLogTableWrap {
  max-height: min(68vh, 680px);
  overflow-y: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(9, 10, 22, 0.86);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* 表格行高随内容（按钮换行、长文折行）增高，单元格垂直居中 — 用户列表 / 交易记录 / 参数分析等 */
.table--users th,
.table--users td,
.table--adaptive-rows th,
.table--adaptive-rows td {
  vertical-align: middle;
  line-height: 1.45;
}
.table--users .user-actions,
.table--adaptive-rows .user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
  min-width: 0;
}
/* 管理后台 · 分成系统 */
.profitSplitConfigGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.profitSplitRangeHint {
  font-size: 13px;
  font-weight: 700;
}
.ps-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.ps-badge--ok {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.ps-badge--wait {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.table--users .td-mono.token-cell {
  max-width: 160px;
}
.table--users .token-clip {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
  vertical-align: middle;
  overflow: visible;
  text-overflow: clip;
}

/* 参数分析：摘要列多行折行 */
.table--param-rank .user-actions {
  justify-content: flex-start;
}
.table--param-rank td:nth-child(5) {
  max-width: 180px;
  word-break: break-word;
}
.table--param-rank .param-summary-clip {
  display: inline-block;
  max-width: min(420px, 100%);
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
  vertical-align: middle;
}
.td-muted {
  color: rgba(255, 255, 255, 0.55);
}

/* 控制台 / 用户控制台：收益概览 */
.pnlOverview {
  margin-top: 8px;
  display: grid;
  gap: 0;
  font-size: 13px;
  line-height: 1.45;
}
.pnlOverview__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pnlOverview__row:last-of-type {
  border-bottom: none;
}
.pnlOverview__k {
  color: rgba(255, 255, 255, 0.55);
  flex: 0 1 auto;
}
.pnlOverview__v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
  word-break: break-all;
}
.pnlOverview__v--pos {
  color: #4ade80;
}
.pnlOverview__v--neg {
  color: #f87171;
}
.pnlOverview__v--muted {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.pnlOverview__hint {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

/* 策略实验室：子仓明细 — 说明与表头/单元格同为 14px，数值 tabular-nums */
.strategyLabSubPosCaption {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.tableWrap--strategy-subpos {
  max-height: min(50vh, 420px);
  overflow: auto;
  min-height: 0;
}
.table--strategy-subpos {
  min-width: 1100px;
}
.table--strategy-subpos th,
.table--strategy-subpos td {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  line-height: 1.45;
}
.table--strategy-subpos th {
  font-weight: 800;
}
.table--strategy-subpos .td-subpos-time {
  white-space: normal;
  word-break: break-all;
  max-width: 12rem;
}

.filterBlocks {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1400px) {
  .filterBlocks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .filterBlocks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .filterBlocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .filterBlocks {
    grid-template-columns: 1fr;
  }
}
.filterSectionTitle {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.03);
}
.filterSectionTitle--ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: rgba(134, 239, 172, 0.95);
  background: rgba(22, 163, 74, 0.12);
}
.filterSectionTitle--warn {
  border-color: rgba(251, 113, 133, 0.35);
  color: rgba(251, 113, 133, 0.95);
  background: rgba(225, 29, 72, 0.12);
}
.decisionCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
}
.decisionPanel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1400px) {
  .decisionPanel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .decisionPanel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .decisionPanel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .decisionPanel {
    grid-template-columns: 1fr;
  }
}
.decisionCard__k {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.decisionCard__v {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}
.decisionCard__n {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}
.filterBlock {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 10px 12px;
}
.filterBlock--row {
  grid-column: 1 / -1;
}
.filterTextPanel {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}
.filterTextPanel__section {
  font-weight: 900;
  margin: 4px 0 8px 0;
}
.filterTextPanel__section--fail {
  color: rgba(251, 113, 133, 0.96);
}
.filterTextPanel__section--ok {
  color: rgba(134, 239, 172, 0.96);
}
.filterLine {
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.filterLine:last-child {
  margin-bottom: 0;
}
.filterLine__title {
  font-weight: 900;
  margin-bottom: 4px;
}
.filterLine__desc {
  line-height: 1.35;
  white-space: pre-wrap;
  font-weight: 650;
}
.filterLine--ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 163, 74, 0.12);
  color: rgba(134, 239, 172, 0.96);
}
.filterLine--fail {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(225, 29, 72, 0.12);
  color: rgba(251, 113, 133, 0.96);
}
.filterBlock--ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 163, 74, 0.12);
}
.filterBlock--fail {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(225, 29, 72, 0.12);
}
.filterBlock__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.filterBlock__title small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}
.filterBlock__desc {
  white-space: pre-wrap;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  font-size: 13px;
}
.filterBlock--ok .filterBlock__title,
.filterBlock--ok .filterBlock__desc {
  color: rgba(134, 239, 172, 0.96);
}
.filterBlock--fail .filterBlock__title,
.filterBlock--fail .filterBlock__desc {
  color: rgba(251, 113, 133, 0.96);
}
.td-strong {
  font-weight: 900;
}
.td-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.td-clip {
  max-width: 96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.token-clip {
  display: inline-block;
  max-width: 96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.agentTrend {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  padding: 10px;
}
.agentTrend__legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.agentTrend__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.agentTrend__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.agentTrend__dot--total {
  background: rgba(22, 217, 255, 0.9);
}
.agentTrend__dot--online {
  background: rgba(134, 239, 172, 0.95);
}
.agentTrend__dot--db {
  background: rgba(124, 92, 255, 0.95);
}
.agentTrend__chart {
  min-height: 72px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.agentTrend__item {
  flex: 0 0 auto;
  width: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.agentTrend__bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 58px;
}
.agentTrend__bar {
  display: inline-block;
  width: 3px;
  border-radius: 3px 3px 0 0;
}
.agentTrend__bar--total {
  background: rgba(22, 217, 255, 0.9);
}
.agentTrend__bar--online {
  background: rgba(134, 239, 172, 0.95);
}
.agentTrend__bar--db {
  background: rgba(124, 92, 255, 0.95);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  z-index: 999;
}
.modal-overlay.show {
  display: flex;
}
.modal-card {
  width: min(860px, 94vw);
  max-height: 86vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 8, 30, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-card--wide {
  width: min(1100px, 96vw);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.modal-title {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}
.modal-close {
  margin-top: 0;
}
.modal-content {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(86vh - 64px);
  overscroll-behavior: contain;
}
.modal-content::-webkit-scrollbar {
  width: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.modal-table-wrap {
  max-height: min(62vh, 560px);
  overflow: auto;
}

.footer {
  padding: 20px 0 36px;
}
.footer__inner {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}
.footer__disclaimer {
  width: min(var(--max), calc(100% - 28px));
  margin: 12px auto 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}
.footer__meta {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}
.footer__right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__right a {
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.footer__right a:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .nav__links {
    display: none;
  }
  .iconbtn {
    display: inline-grid;
    place-items: center;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .carousel__slide img {
    height: 320px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase {
    grid-template-columns: 1fr;
  }
  .frame__body img {
    height: 360px;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .adminGrid {
    grid-template-columns: 1fr;
  }
  .strategyGrid {
    grid-template-columns: 1fr;
  }
  .table {
    min-width: 640px;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 12px 14px;
  }
  .nav__actions .btn--ghost.nav__action--compactHide {
    display: none;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .hero__highlights {
    gap: 6px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .carousel__slide img {
    height: 260px;
  }
}
