/* 万妖币：玄幻金蓝主题（对齐官网设计稿） */
:root {
  --color-primary: #D4A843;
  --color-primary-light: #E8C96A;
  --color-primary-dark: #A67C2E;
  --color-primary-50: rgba(212, 168, 67, 0.08);
  --color-primary-100: rgba(212, 168, 67, 0.15);
  --color-primary-200: rgba(212, 168, 67, 0.25);
  --color-cyan: #00E5FF;
  --color-cyan-dim: rgba(0, 229, 255, 0.3);
  --color-purple: #8B5CF6;
  --color-bg-deep: #0A0A14;
  --color-bg-surface: #111128;
  --color-bg-card: rgba(17, 17, 40, 0.7);
  --color-text-primary: #F0E6D0;
  --color-text-secondary: rgba(240, 230, 208, 0.65);
  --color-text-muted: rgba(240, 230, 208, 0.4);
  --color-text-accent: #FFD700;
  --color-border: rgba(212, 168, 67, 0.15);
  --color-border-hover: rgba(212, 168, 67, 0.35);
  --shadow-glow-gold: 0 0 30px rgba(212, 168, 67, 0.15);
  --shadow-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.1);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --ease-glow: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;

  /* 发射台兼容变量 */
  --bg: var(--color-bg-deep);
  --panel: var(--color-bg-card);
  --neon: var(--color-primary);
  --neon-dim: rgba(212, 168, 67, 0.32);
  --gold: var(--color-primary);
  --gold-deep: var(--color-primary-dark);
  --crimson: #FF3D5A;
  --text: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --border: var(--color-border);
  --font-pixel: "Noto Serif SC", "Ma Shan Zheng", "ZCOOL XiaoWei", serif;
  --font-terminal: "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Ma Shan Zheng", "ZCOOL XiaoWei", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(10, 10, 20, 0.92) 0%, rgba(10, 10, 20, 0.75) 100%);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(255, 196, 77, 0.55), 0 0 32px rgba(255, 140, 40, 0.22);
}
.brand-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { font-family: var(--font-pixel); font-size: 1.1rem; letter-spacing: 0.08em; }
.header-end { display: flex; gap: 8px; align-items: center; }

.header-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.15s;
}

.header-x:hover {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 18px var(--neon-dim), inset 0 0 12px rgba(212, 168, 67, 0.08);
}

.header-x:active {
  transform: scale(0.96);
}

.header-x-icon {
  display: block;
}

.btn {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  color: var(--color-bg-deep, #0A0A14);
  background: linear-gradient(135deg, var(--color-primary-dark, #A67C2E), var(--color-primary, #D4A843), var(--color-primary-light, #E8C96A));
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: var(--shadow-glow-gold, 0 0 30px rgba(212, 168, 67, 0.15)), inset 0 0 12px rgba(255, 255, 255, 0.08);
  font-weight: 600;
}
.btn-sm { padding: 7px 12px; font-size: 0.75rem; }

.main { max-width: 1120px; margin: 0 auto; padding: 18px; }
.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/bg.png") center/cover no-repeat;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 168, 67, 0.18), rgba(0,0,0,0.85) 55%);
}
.hero-inner { position: relative; padding: 32px 22px; z-index: 1; }
.hero-tag { color: var(--neon); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--font-pixel); letter-spacing: 0.06em; margin: 0; }
h1 { margin-bottom: 10px; }
.hero-sub { margin: 0 0 16px; max-width: 720px; font-family: var(--font-body); color: var(--muted); }
.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(360px, 100%);
  margin-bottom: 14px;
}
.btn-create {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.08rem;
  border-radius: 14px;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, rgba(212, 168, 67, 0.24), rgba(7, 36, 17, 0.96));
  border-color: #D4A843;
  box-shadow: 0 0 24px rgba(212, 168, 67, 0.32), inset 0 0 18px rgba(212, 168, 67, 0.14);
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}
.btn-create:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.45), inset 0 0 22px rgba(212, 168, 67, 0.2);
}
.btn-mine {
  justify-self: start;
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 10px;
  color: #c8d0d8;
  border-color: #2c3139;
  background: rgba(14, 16, 22, 0.88);
  opacity: 0.98;
}
.btn-mine:hover {
  color: #e8edf3;
  border-color: #4a505a;
  box-shadow: 0 0 14px rgba(100, 120, 140, 0.18);
}

.btn-vision-link {
  justify-self: start;
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 10px;
  color: #d8dde6;
  border-color: #313843;
  background: rgba(14, 17, 24, 0.9);
}

.btn-vision-link:hover {
  color: #f0f6ff;
  border-color: #4f5662;
  box-shadow: 0 0 14px rgba(126, 148, 172, 0.2);
}
.status {
  display: inline-block;
  border: 1px dashed var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 16px);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px;
}

.vision-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.32);
  background:
    radial-gradient(circle at 85% 15%, rgba(212, 168, 67, 0.15), rgba(4, 10, 8, 0) 45%),
    linear-gradient(180deg, rgba(7, 18, 12, 0.95), rgba(5, 12, 9, 0.95));
  box-shadow: 0 0 26px rgba(212, 168, 67, 0.12), inset 0 0 28px rgba(212, 168, 67, 0.05);
}

.vision-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.22), rgba(212, 168, 67, 0));
  pointer-events: none;
}

.vision-head,
.vision-body,
.vision-grid {
  position: relative;
  z-index: 1;
}

.vision-tag {
  margin: 0 0 6px;
  color: #8adf9a;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vision-slogan {
  margin: 10px 0 0;
  color: #e8ffec;
  font-size: 1.18rem;
  font-family: var(--font-pixel);
  text-shadow: 0 0 14px rgba(212, 168, 67, 0.26);
}

.vision-body {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-left: 3px solid rgba(212, 168, 67, 0.55);
  border-radius: 8px;
  background: rgba(7, 18, 12, 0.62);
  color: #c9e8cf;
  font-family: var(--font-body);
  line-height: 1.8;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.vision-card {
  border: 1px solid rgba(212, 168, 67, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(3, 8, 6, 0.62);
}

.vision-card h3 {
  margin: 0 0 6px;
  color: #deffe5;
  font-size: 0.86rem;
}

.vision-card p {
  margin: 0;
  color: #9bc9a4;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
}
.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.card h3 { font-size: 0.88rem; margin-bottom: 6px; color: var(--muted); }
.card p { margin: 0; color: var(--neon); font-size: 1.1rem; }

.features {
  margin: 10px 0 0;
  padding-left: 20px;
  font-family: var(--font-body);
  color: var(--muted);
}
.features li { margin-bottom: 8px; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.token-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.token-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
}
.token-avatar { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.token-meta strong { font-family: var(--font-pixel); }
.token-meta p { margin: 2px 0; color: var(--muted); font-family: var(--font-body); font-size: 0.88rem; }
.token-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal.open { display: grid; }
.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 24px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #051008;
  padding: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 67, 0.55) rgba(8, 14, 12, 0.9);
}

.modal-panel::-webkit-scrollbar {
  width: 10px;
}

.modal-panel::-webkit-scrollbar-track {
  background: rgba(8, 14, 12, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.14);
}

.modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.7), rgba(33, 136, 18, 0.75));
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.28);
}

.modal-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(90, 255, 66, 0.9), rgba(44, 168, 24, 0.9));
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.42);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.close {
  background: transparent; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer;
}
.form { display: grid; gap: 8px; }
label { font-family: var(--font-pixel); font-size: 0.92rem; color: #b7b7b7; }
label em { font-style: normal; color: #ff3849; }
input, textarea, select {
  width: 100%;
  border: 1px solid #1b1f25;
  border-radius: 12px;
  padding: 12px 14px;
  background: #0c0f14;
  color: var(--text);
  font-family: var(--font-body);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 10px;
}

.avatar-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid #2a2f36;
  background: #0c0f14;
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.avatar-box.empty {
  background: #2d3138;
  border-color: #3a3f47;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-box.empty img {
  display: none;
}

.avatar-empty-icon {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  display: none;
}

.avatar-box.empty .avatar-empty-icon {
  display: block;
}

.avatar-box-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 6px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #d0d0d0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.avatar-box:hover {
  border-color: #3a3f46;
}

.hidden-upload {
  display: none;
}

.notice-panel {
  width: min(440px, 100%);
  background: linear-gradient(180deg, #07130a 0%, #050d08 100%);
  border-color: rgba(212, 168, 67, 0.36);
  box-shadow: 0 0 28px rgba(212, 168, 67, 0.18), inset 0 0 22px rgba(212, 168, 67, 0.06);
}

.notice-text {
  margin: 8px 0 14px;
  font-family: var(--font-body);
  color: #d4e4d7;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
}

.meta-fields {
  display: grid;
  gap: 12px;
}

.meta-fields input {
  height: 46px;
}

select {
  height: 48px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7f8590 50%), linear-gradient(135deg, #7f8590 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #cfd3dc;
}

textarea#tokenIntro {
  min-height: 132px;
  resize: vertical;
}

@media (max-width: 700px) {
  .brand-text { display: none; }
  .token-item { grid-template-columns: 48px 1fr; }
  .token-actions { grid-column: 1 / -1; }
  .modal-body-grid { grid-template-columns: 1fr; }
  .avatar-box { width: 120px; }
  .modal {
    align-items: start;
    padding: 8px;
  }
  .modal-panel {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }
  .form {
    padding-bottom: 8px;
  }
}


/* merged Launch/zero-launchpad.css */

/* 发射台专页：广场 / 交易 / 创建 / 文档等布局与组件 */

.header-inner-launch,
.header-inner-wanya {
  flex-wrap: nowrap;
  max-width: 1120px;
  position: relative;
  width: 100%;
}

.header-nav-panel {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--neon);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header-menu-toggle:hover {
  border-color: var(--neon);
  box-shadow: 0 0 14px var(--neon-dim);
}

.header-menu-toggle.is-open {
  border-color: var(--neon);
  background: rgba(212, 168, 67, 0.1);
  box-shadow: 0 0 18px var(--neon-dim);
}

.header-menu-bars,
.header-menu-bars::before,
.header-menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.2s ease, top 0.22s ease;
}

.header-menu-bars {
  position: relative;
}

.header-menu-bars::before,
.header-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.header-menu-bars::before {
  top: -6px;
}

.header-menu-bars::after {
  top: 6px;
}

.header-menu-toggle.is-open .header-menu-bars {
  background: transparent;
}

.header-menu-toggle.is-open .header-menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.header-menu-toggle.is-open .header-menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-drawer-backdrop {
  display: none;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-tabs a.active {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 14px var(--neon-dim);
}

@media (max-width: 900px) {
  .header-inner-launch,
.header-inner-wanya {
    padding: 8px 12px;
    gap: 10px;
  }

  .brand-text {
    display: none;
  }

  .header-menu-toggle {
    display: inline-flex;
  }

  .header-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .header-drawer-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav-panel {
    position: fixed;
    z-index: 19;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 16px 24px;
    background: linear-gradient(180deg, rgba(6, 18, 11, 0.98) 0%, rgba(2, 8, 5, 0.98) 100%);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }

  .header-nav-panel.is-open {
    transform: translateX(0);
  }

  .nav-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .nav-tabs .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
  }

  .header-end {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .header-end .btn {
    width: 100%;
    justify-content: center;
  }

  .header-end .header-link-out {
    justify-content: flex-start;
  }

  #btnConnect {
    margin-top: 4px;
    padding: 12px 16px !important;
  }

  body.header-menu-open {
    overflow: hidden;
  }
}

/* ========== 代币广场（卡片网格） ========== */

.market-place {
  margin-top: 16px;
  border: 1px solid rgba(212, 168, 67, 0.28);
  background:
    linear-gradient(165deg, rgba(8, 22, 14, 0.96) 0%, rgba(4, 12, 8, 0.92) 100%);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.06), inset 0 1px 0 rgba(212, 168, 67, 0.08);
}

.market-place-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.market-place-title h2 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 1.28rem;
  color: var(--neon);
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px var(--neon-dim);
}

.market-place-lead {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
}

.market-place-meta {
  font-family: var(--font-terminal);
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.market-search-wrap {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
}

.market-search-icon {
  color: var(--muted);
  font-size: 1rem;
}

.market-search {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 12px 0 !important;
  border-radius: 0 !important;
}

.market-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 工具栏右侧两控件统一高度 */
.market-toolbar-ctrl-h {
  height: 38px;
  box-sizing: border-box;
}

.market-filter-launched {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 12.5rem;
  height: 38px;
  padding: 0 12px !important;
  font-size: 0.75rem !important;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.market-filter-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #6b7a72;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s, filter 0.2s;
}

.market-filter-launched.is-active {
  border-color: var(--neon) !important;
  color: var(--neon) !important;
  box-shadow: 0 0 14px var(--neon-dim), inset 0 0 10px rgba(212, 168, 67, 0.08);
}

.market-filter-launched.is-active .market-filter-icon {
  color: var(--neon);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(212, 168, 67, 0.75));
}

.market-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  flex-shrink: 0;
}

.market-sort-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}

.market-sort {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 0;
  max-width: 5.5rem;
  height: 38px;
  padding: 0 26px 0 10px !important;
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  line-height: 38px;
  cursor: pointer;
}

.market-sort-wrap:focus-within::after {
  border-top-color: var(--neon);
}

@media (max-width: 640px) {
  .market-filter-launched {
    max-width: 9rem;
    height: 36px;
    padding: 0 8px !important;
    font-size: 0.68rem !important;
  }

  .market-sort-wrap {
    height: 36px;
  }

  .market-sort {
    max-width: 4.8rem;
    height: 36px;
    line-height: 36px;
    font-size: 0.78rem !important;
  }
}

.market-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.market-page-info {
  font-family: var(--font-terminal);
  font-size: 0.84rem;
  color: var(--muted);
}

.market-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}

.market-grid--loading {
  min-height: 200px;
}

.market-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  background: linear-gradient(180deg, rgba(10, 28, 18, 0.55) 0%, rgba(3, 10, 7, 0.85) 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.market-card:hover,
.market-card:focus {
  outline: none;
  border-color: rgba(212, 168, 67, 0.55);
  box-shadow: 0 0 22px rgba(212, 168, 67, 0.18), inset 0 0 20px rgba(212, 168, 67, 0.04);
  transform: translateY(-2px);
}

.market-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.market-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(212, 168, 67, 0.25);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.15);
}

.market-card-logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a3d22, #0d1810);
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--neon);
}

.market-card-headtxt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.market-card-symbol {
  font-family: var(--font-pixel);
  font-size: 1.12rem;
  color: var(--neon);
  letter-spacing: 0.04em;
}

.market-card-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-pixel);
  letter-spacing: 0.06em;
}

.market-status--live {
  color: #b8ffc8;
  border: 1px solid rgba(212, 168, 67, 0.45);
  background: rgba(212, 168, 67, 0.12);
}

.market-status--done {
  color: #a8c4ff;
  border: 1px solid rgba(120, 160, 255, 0.35);
  background: rgba(80, 120, 255, 0.1);
}

.market-card-addr {
  font-family: var(--font-terminal);
  font-size: 0.78rem;
  color: #6a8f72;
  margin-bottom: 12px;
}

.market-card-progress {
  margin-top: auto;
}

.market-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
}

.market-progress-row strong {
  color: var(--text);
}

.market-progress-bar {
  height: 8px;
  border-radius: 999px;
}

.market-card-cta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 168, 67, 0.12);
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-pixel);
}

.market-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.market-empty-title {
  margin: 0 0 8px;
  font-family: var(--font-pixel);
  color: var(--neon);
}

.market-card--skeleton {
  pointer-events: none;
  cursor: default;
}

.market-card--skeleton:hover {
  transform: none;
  box-shadow: none;
}

.market-card--skeleton .sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(212, 168, 67, 0.06) 0%,
    rgba(212, 168, 67, 0.14) 50%,
    rgba(212, 168, 67, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: pulseSk 1.2s ease-in-out infinite;
}

.market-card--skeleton .market-card-logo.sk {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.market-card--skeleton .sk-line {
  height: 12px;
  margin-bottom: 6px;
}

.market-card--skeleton .sk-line.short {
  width: 60%;
}

.market-card--skeleton .sk-progress {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
}

.toolbar input[type="search"],
.toolbar select {
  min-width: 160px;
}

/* 交易页：左图右 Swap；同列等高，左侧折线区随高度伸展 */
.trade-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.trade-layout-curve-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

@media (max-width: 900px) {
  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-layout-curve-col {
    min-height: auto;
  }

  .inner-curve-panel {
    flex: none !important;
    min-height: 280px;
  }

  .curve-spark-wrap {
    flex: none !important;
  }

  .curve-spark-svg {
    height: 140px !important;
    flex: none !important;
  }

  .swap-panel.panel {
    height: auto !important;
  }
}

.inner-curve-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.inner-curve-panel .curve-head {
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 16, 10, 0.75);
}

.inner-curve-panel .curve-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--neon);
}

.inner-curve-panel .curve-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.curve-spark-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 12px 4px;
  background: linear-gradient(180deg, rgba(5, 12, 8, 0.9), rgba(0, 0, 0, 0.5));
}

.curve-spark-svg {
  width: 100%;
  flex: 1;
  min-height: 148px;
  height: auto;
  display: block;
}

.curve-progress-block {
  flex-shrink: 0;
  padding: 12px 14px 16px;
}

.curve-progress-block .progress-bar {
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.curve-progress-block .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #A67C2E, var(--neon));
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.55);
  transition: width 0.35s ease;
}

.curve-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
}

.curve-dex-link {
  flex-shrink: 0;
  margin: 10px 14px 14px;
}

.swap-panel.panel {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.swap-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.swap-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  font-family: var(--font-pixel);
  cursor: pointer;
}

.swap-tabs button.active {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 12px var(--neon-dim);
}

.trade-input-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-input-stack label {
  margin-top: 10px;
}

.trade-input-stack label:first-child {
  margin-top: 0;
}

.trade-readonly {
  opacity: 0.92;
  cursor: default;
}

.trade-sell-block .trade-sell-heading {
  margin-top: 0;
}

.trade-title-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-symbol-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-weight: normal;
}

.trade-symbol-main {
  font-family: var(--font-pixel);
  font-size: 1.28rem;
  color: var(--neon);
  letter-spacing: 0.04em;
}

.trade-name-inline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 100%;
}

.trade-social-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.trade-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 200, 0.35);
  color: var(--neon);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.trade-social-link:hover {
  background: rgba(0, 255, 200, 0.1);
  border-color: var(--neon);
}

.trade-social-link:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.trade-social-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.trade-addr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
}

.trade-addr-full {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--muted);
}

.buy-bnb-wrap {
  position: relative;
  width: 100%;
}

.buy-bal-corner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-family: var(--font-terminal);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.buy-bnb-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: min(48%, 220px);
  text-align: left;
}

.buy-pct-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.buy-pct-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  cursor: pointer;
}

.buy-pct-btn:hover {
  border-color: rgba(212, 168, 67, 0.45);
  color: var(--neon);
}

.sell-amt-wrap {
  position: relative;
  width: 100%;
}

.sell-bal-corner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-family: var(--font-terminal);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.sell-amt-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: min(42%, 200px);
  text-align: left;
}

.sell-pct-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.sell-pct-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  cursor: pointer;
}

.sell-pct-btn:hover {
  border-color: rgba(212, 168, 67, 0.45);
  color: var(--neon);
}

.fee-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-body);
}

.console-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed rgba(212, 168, 67, 0.45);
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.04);
}

.console-panel h3 {
  margin: 0 0 10px;
  color: var(--neon);
  font-family: var(--font-pixel);
}

/* 交易页 · 曲线 Transfer 列表（发射控制台下方） */
.trade-tx-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 67, 0.22);
  background: rgba(4, 14, 10, 0.65);
}

.trade-tx-panel > h3 {
  margin: 0 0 8px;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.trade-tx-list-meta {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.55;
}

.trade-tx-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.trade-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.trade-tx-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.35);
}

.trade-tx-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  vertical-align: middle;
}

.trade-tx-row--buy .trade-tx-tag {
  color: #E8C96A;
  font-weight: 700;
}

.trade-tx-row--sell .trade-tx-tag {
  color: #ff6b7a;
  font-weight: 700;
}

.trade-tx-row--create .trade-tx-tag {
  color: #ffd54f;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 213, 79, 0.35);
}

.trade-tx-bnb {
  font-weight: 600;
  white-space: nowrap;
}

.trade-tx-bnb--buy {
  color: #E8C96A;
}

.trade-tx-bnb--sell {
  color: #ff6b7a;
}

.trade-tx-mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
}

.trade-tx-hash {
  color: var(--neon);
  text-decoration: none;
  word-break: break-all;
}

.trade-tx-hash:hover {
  text-decoration: underline;
}

@keyframes pulseSk {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

.toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--neon);
  background: rgba(5, 16, 10, 0.96);
  box-shadow: 0 0 20px var(--neon-dim);
  font-size: 0.88rem;
  font-family: var(--font-body);
  animation: toastIn 0.25s ease;
}

.toast.err {
  border-color: #ff4466;
  color: #ffc8d4;
}

@keyframes toastIn {
  from {
    transform: translateX(12px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hint {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.settings-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-family: var(--font-body);
}

.portfolio-table th,
.portfolio-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}

.portfolio-table th {
  color: var(--muted);
  font-weight: normal;
}

.chart-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.chart-box iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.swap-panel.panel #tBnb,
.swap-panel.panel .buy-bnb-input,
.swap-panel.panel #tTokEst,
.swap-panel.panel #tAmtSell,
.swap-panel.panel #tBnbEst {
  margin-top: 4px;
}

/* 创建页：头像链接说明区 */
.create-logo-block {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 67, 0.22);
  background: rgba(5, 20, 12, 0.55);
}

.create-logo-block label {
  margin-top: 0;
}

.create-logo-label-sub {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

.create-logo-howto {
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.45;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.88;
}

.create-logo-howto code {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(150, 158, 152, 0.95);
  background: rgba(0, 0, 0, 0.25);
  padding: 0 4px;
  border-radius: 4px;
}

.create-logo-howto a {
  color: rgba(130, 150, 138, 0.98);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.create-logo-howto a:hover {
  color: var(--muted);
  filter: none;
}

.create-post-avatar-note {
  margin: 10px 0 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid rgba(248, 180, 60, 0.65);
}

/* 开发文档 / 使用教程 */
.docs-page {
  max-width: 860px;
  margin-inline: auto;
}

.docs-page > h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.docs-lead {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 14px;
  font-family: var(--font-body);
}

.docs-lead strong {
  color: var(--text);
  font-weight: 600;
}

.docs-factory-line {
  margin: 0 0 22px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.5;
}

.docs-code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 0.78rem;
  word-break: break-all;
  color: rgba(200, 230, 205, 0.95);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
}

.docs-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.docs-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.docs-section h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--neon);
  font-weight: 600;
  font-family: var(--font-body);
}

.docs-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.65;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.docs-section li {
  margin: 7px 0;
}

.docs-section li strong {
  color: #b8e8bf;
  font-weight: 600;
}

.docs-section a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-section a:hover {
  filter: brightness(1.08);
}

.docs-section code {
  font-size: 0.82em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(190, 220, 198, 0.95);
}

.docs-risk {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(180, 140, 120, 0.95);
  font-family: var(--font-body);
}

.docs-back {
  margin-top: 20px;
  padding-top: 8px;
}
