/* =========================================
   全局重置与排版
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: #fafafa;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 30px 30px 30px;
  overflow: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 18px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  pointer-events: none;
}

/* =========================================
   外围容器与导航
========================================= */
header {
  width: 100%;
  max-width: 1440px;
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background-color: transparent;
  z-index: 10;
  flex-shrink: 0;
}

.page-box {
  position: relative;
  width: 100%;
  max-width: 1440px;
  flex: 1;
  background: linear-gradient(180deg, #fbfbf8 0%, #f7f7f3 100%);
  border: 1px solid #d0d0d0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  cursor: none;
}

.page-box::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  pointer-events: none;
  z-index: 1;
}

header, main {
  transition: filter 0.6s, opacity 0.6s;
  will-change: filter, opacity;
}

header,
.layer-base,
.layer-mask,
footer .card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

body.loaded header,
body.loaded .layer-base,
body.loaded .layer-mask,
body.loaded footer .card {
  opacity: 1;
  transform: translateY(0);
}

body.loaded footer .card:nth-child(2) { transition-delay: 0.08s; }
body.loaded footer .card:nth-child(3) { transition-delay: 0.16s; }
body.loaded .layer-base { transition-delay: 0.08s; }
body.loaded .layer-mask { transition-delay: 0.14s; }

body.login-active header,
body.login-active main {
  filter: blur(15px);
  opacity: 0.1;
  pointer-events: none;
}

body.login-active .page-box,
body.detail-active .page-box {
  cursor: default;
}

.logo {
  font-size: 20px;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333;
}

.nav-links {
  display: flex;
  gap: clamp(10px, 1.35vw, 18px);
  font-size: 14px;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  align-items: center;
  color: #333;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.nav-primary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(10px, 1.35vw, 18px);
}

.nav-link,
.nav-lang {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  padding: 0;
  position: relative;
}

.nav-link::after,
.nav-lang::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-lang:hover::after {
  transform: scaleX(1);
}

.nav-lang {
  color: rgba(0, 0, 0, 0.48);
}

.login-btn,
button,
.secret-btn,
.btn-return,
.close-login,
.pwd-eye {
  cursor: pointer !important;
}

input { cursor: text; }

.login-btn {
  font-weight: 600;
  transition: opacity 0.3s;
}

.login-btn:hover { opacity: 0.5; }

/* =========================================
   主视觉区 (含 3D 翻转)
========================================= */
main {
  flex: 1;
  position: relative;
  perspective: 1500px;
}

.flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flipper.is-flipped { transform: rotateY(180deg); }

.front,
.back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.front::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 25% 100%, 100% 25%;
  pointer-events: none;
  opacity: 0.6;
}

/* 装饰背景字 */
.bg-text-container {
  position: absolute;
  inset: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28em;
  padding: 28px 0;
}

.hero-chrome {
  position: absolute;
  inset: 34px 42px auto 42px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.hero-kicker,
.hero-guides {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

.hero-guides {
  align-items: flex-end;
  text-align: right;
}

.bg-text {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.55em;
  color: rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  padding-left: 30px;
  text-transform: uppercase;
}

.bg-text-accent {
  letter-spacing: 0.16em;
  font-size: clamp(24px, 2.2vw, 38px);
  color: rgba(0, 0, 0, 0.08);
}

.layer-base,
.layer-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.layer-base h1,
.layer-mask h1 {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(66px, 6.5vw, 120px);
  font-weight: 800;
  color: #000;
  letter-spacing: -0.05em;
}

.layer-mask {
  z-index: 2;
  pointer-events: none;
  clip-path: circle(0px at 50% 50%);
  background-color: #fafafa;
  overflow: hidden;
}

.bg-text-mask {
  opacity: 1;
}

.bg-text-mask .bg-text {
  color: rgba(0, 0, 0, 0.22);
}

.bg-text-mask .bg-text-accent {
  color: rgba(0, 0, 0, 0.3);
}

.layer-mask h1,
.layer-mask .secret-btn {
  position: relative;
  z-index: 1;
}

.secret-btn {
  margin-top: 30px;
  padding: 13px 30px;
  font-size: 15px;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 700;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.75);
  border-radius: 30px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.secret-btn:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

.dummy-btn {
  margin-top: 30px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

/* 背面布局 */
.back {
  transform: rotateY(180deg);
  background: #0a0a0a;
  color: #fff;
  flex-direction: column;
  padding: clamp(28px, 4.2vw, 60px);
  overflow: hidden;
}

.module-panel {
  max-width: min(1180px, 100%);
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 24px);
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.module-panel::-webkit-scrollbar {
  width: 6px;
}

.module-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}

.module-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.module-kicker,
.module-status {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.module-status {
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.module-panel h2 {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(34px, 3.6vw, 62px);
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.module-copy {
  max-width: 760px;
  font-size: clamp(14px, 1.25vw, 16px);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.module-metric {
  min-height: 92px;
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-metric:last-child { border-right: none; }

.module-metric span,
.module-row span {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

.module-metric strong {
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.module-body {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.module-body.has-dashboard {
  border-top: 0;
}

.module-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-row strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.console-grid-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.console-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.console-card.span-2 { grid-column: span 2; }
.console-card.span-3 { grid-column: 1 / -1; }

.console-card h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  margin: 8px 0 8px;
  letter-spacing: -0.03em;
}

.console-card p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.inline-error {
  margin-bottom: 12px;
  border-color: rgba(255, 80, 120, 0.3);
  background: rgba(255, 0, 60, 0.08);
}

.key-secret {
  margin: 12px 0;
  border-color: rgba(255, 210, 90, 0.24);
  background: rgba(255, 210, 90, 0.08);
}

.key-secret code {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.86);
  word-break: break-all;
}

.empty-row {
  opacity: 0.68;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

.money {
  display: block;
  margin: 12px 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.step-list,
.info-list,
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.step-list div,
.info-list div,
.toggle-list div,
.referral-card,
.balance-strip,
.form-row,
.table-toolbar,
.usage-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-list div,
.info-list div,
.toggle-list div {
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.step-list b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 12px;
}

.step-list span,
.info-list span,
.toggle-list span {
  flex: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.step-list strong,
.info-list strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  word-break: break-word;
}

.wallet-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(180, 150, 88, 0.18));
}

.wallet-card button,
.plan-card button,
.table-toolbar button,
.form-row button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 13px;
}

.table-toolbar button.bright,
.wallet-card button {
  background: rgba(255, 255, 255, 0.92);
  color: #050505;
}

.mini-chart {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  padding-top: 20px;
}

.mini-bar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mini-bar span {
  width: 100%;
  height: calc(var(--bar-height) * 1.7px);
  min-height: 2px;
  max-height: 170px;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.28));
  border-radius: 4px 4px 1px 1px;
}

.mini-bar em {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-style: normal;
}

.balance-strip {
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}

.balance-strip div {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-strip div:last-child { border-right: 0; }

.balance-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  margin-bottom: 10px;
}

.balance-strip strong {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.03em;
}

.referral-card {
  justify-content: space-between;
}

.referral-card code,
.data-table code {
  color: rgba(255, 255, 255, 0.74);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.form-row input,
.table-toolbar input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.table-card {
  overflow: hidden;
}

.table-toolbar {
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.table-toolbar.wide input:first-child {
  flex: 1.4;
}

.usage-summary {
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(0, 220, 160, 0.26);
  border-radius: 999px;
  color: #00d79e;
  font-size: 12px;
  line-height: 1;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.warn {
  border-color: rgba(255, 176, 0, 0.26);
  color: #ffb000;
}

.status-pill.info {
  border-color: rgba(80, 165, 255, 0.28);
  color: #62b4ff;
}

.status-pill.neutral {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
}

.data-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.table-head,
.table-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.key-table .table-head,
.key-table .table-row {
  min-width: 960px;
}

.usage-table .table-head,
.usage-table .table-row {
  min-width: 920px;
}

.channel-table .table-head,
.channel-table .table-row {
  min-width: 680px;
}

.table-head {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table-row {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.table-row b {
  color: #fff;
  font-weight: 700;
}

.muted-row {
  opacity: 0.72;
}

.key-table .table-head,
.key-table .table-row {
  grid-template-columns: 0.8fr 0.8fr 1.5fr 0.8fr 0.8fr 0.8fr 0.8fr;
}

.usage-table .table-head,
.usage-table .table-row {
  grid-template-columns: 1.35fr 0.8fr 1.2fr 0.9fr 0.8fr 0.7fr 0.7fr;
}

.channel-table .table-head,
.channel-table .table-row {
  grid-template-columns: 1.3fr 0.8fr 0.7fr 0.8fr 0.8fr;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.toggle-list i {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  position: relative;
}

.toggle-list i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
}

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

  .console-card.span-2,
  .console-card.span-3 {
    grid-column: auto;
  }

  .balance-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .balance-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .referral-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-actions {
    flex-wrap: wrap;
  }
}

.module-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-return {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  border-radius: 30px;
  transition: 0.3s;
}

.btn-return:hover {
  background: #fff;
  color: #000;
}

.module-action {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #000;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: 0.25s;
}

.module-action:hover {
  transform: translateY(-2px);
  background: #fff;
}

/* =========================================
   底部卡片
========================================= */
footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d0d0d0;
  background: rgba(240, 240, 236, 0.88);
  backdrop-filter: blur(14px);
  z-index: 10;
  height: 200px;
  flex-shrink: 0;
}

.card {
  position: relative;
  padding: 30px 40px;
  border-right: 1px solid #d0d0d0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card:last-child { border-right: none; }

.card-index {
  margin-bottom: 22px;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.38);
}

.card h2 {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.card p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.56);
  pointer-events: none;
  line-height: 1.7;
}

/* =========================================
   黑球与登录态
========================================= */
#circle {
  width: 320px;
  height: 320px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9998;
  mix-blend-mode: difference;
  pointer-events: none;
  transform-origin: center center;
  transition: opacity 0.3s ease;
  will-change: transform, width, height;
}

#circle.login-mode {
  width: min(440px, calc(100vw - 72px)) !important;
  height: min(540px, calc(100vh - 132px)) !important;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), height 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.base-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: border-radius 0.6s;
}

#circle.login-mode .base-circle { border-radius: 24px; }
#circle.hidden-ball { opacity: 0; }

.brand-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25%;
  height: 25%;
  fill: #000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(-30deg);
  z-index: 2;
}

/* =========================================
   登录面板
========================================= */
#loginPanel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 72px));
  height: min(540px, calc(100vh - 132px));
  z-index: 9999;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease 0.3s;
  pointer-events: none;
  overflow: auto;
}

#loginPanel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#loginPanel h2 {
  font-size: 32px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.auth-switch button.active {
  color: #000;
  background: #fff;
}

.login-status {
  min-height: 44px;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.login-status[data-tone="success"] { color: rgba(255, 255, 255, 0.88); }
.login-status[data-tone="error"] { color: #ff7c9c; }

.connection-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.connection-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connection-item span {
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.connection-item strong {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.input-group {
  position: relative;
  margin-bottom: 40px;
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  transition: 0.3s;
  font-family: monospace;
}

.input-group input:focus {
  border-bottom-color: #fff;
  box-shadow: 0 1px 0 0 #fff;
}

.pwd-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.pwd-eye:hover { color: #fff; }

.close-login {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 24px;
  opacity: 0.5;
  transition: 0.3s;
}

.close-login:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.btn-confirm {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  transition: 0.2s;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-confirm:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* =========================================
   赛博红区：密钥暴露样式
========================================= */
.input-group.exposed input {
  color: #ff003c !important;
  border-bottom: 2px solid #ff003c !important;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.8), 0 0 20px rgba(255, 0, 60, 0.4);
  box-shadow: 0 1px 0 0 #ff003c !important;
  animation: cyber-pulse 2s infinite;
}

.input-group.exposed .pwd-eye {
  color: #ff003c !important;
  filter: drop-shadow(0 0 5px #ff003c);
}

.input-group.exposed input::placeholder {
  color: rgba(255, 0, 60, 0.4);
}

@keyframes cyber-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; text-shadow: 0 0 15px rgba(255, 0, 60, 1); }
  100% { opacity: 1; }
}
