/*!
 * /**
 * * @file client-rspack.js
 * * @description No code generated
 * * --------------------------------------------------------------------------
 * * ⚡ Rspack Client App (Development)
 * * --------------------------------------------------------------------------
 * * • [   client-entry.js ] ──▶ [■ client-rspack.js ] ──▶ [   client-meteor.js ]
 * *
 * * This file is empty because `meteor.mainModule.client` is not set in package.json.
 * *
 * * ⚠️ Note: This file is autogenerated. It is not meant to be modified manually.
 * * These files also act as a cache: they can be safely removed and will be
 * * regenerated on the next build. They should be ignored in IDE suggestions
 * * and version control.
 * * /
 *
 *
 *
 */
/* ==========================================
   1. 皮肤主题变量配置 (CSS Variables)
   ========================================== */
:root, [data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-panel: #111a2e;
  --bg-ticker: #151e33;
  --bg-button: #1e293b;
  --border-color: #1e293b;
  --border-ticker: #24324f;
  --text-main: #f8fafc;
  --text-dim: #64748b;
  --text-neutral: #cbd5e1;
  --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg-main: #f3f4f6;
  --bg-panel: #ffffff;
  --bg-ticker: #eaedf5;
  --bg-button: #e5e7eb;
  --border-color: #cbd5e1;
  --border-ticker: #94a3b8;
  --text-main: #0f172a; 
  --text-dim: #64748b;
  --text-neutral: #334155;
  --shadow: rgba(0, 0, 0, 0.05);
}

/* ==========================================
   2. 全局基础结构与工业级 Navbar 防拥挤控制
   ========================================== */
.exchange-container {
  background-color: var(--bg-main);
  min-height: 100vh;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background-color 0.25s, color 0.25s;
}

.site-navbar {
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  color: #3b82f6; 
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-logo span { color: var(--text-main); }

.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 24px;
  height: 100%;
}

.nav-item {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  height: 100%;
}
.nav-item:hover, .nav-item.active { color: #3b82f6; }

.nav-selectors-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.select-control {
  background: var(--bg-button);
  border: 1px solid var(--border-ticker);
  color: var(--text-neutral);
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  outline: none;
}

/* 🌟 新增：高级 PC 端账户下拉菜单骨架 */
.navbar-user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
}

.user-dropdown-trigger {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: rgba(59, 130, 246, 0.05);
}

.user-dropdown-menu {
  position: absolute;
  top: 54px;
  right: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 140px;
  box-shadow: 0 10px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.user-dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.user-dropdown-item:hover {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}
.user-dropdown-item.logout-style {
  color: #f43f5e;
  border-top: 1px solid var(--border-color);
}
.user-dropdown-item.logout-style:hover {
  background-color: rgba(244, 63, 94, 0.08);
}

/* 🌟 新增：手机端汉堡开关与侧边菜单抽屉 */
.mobile-menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-drawer-menu {
  position: fixed;
  top: 64px; right: 0; bottom: 0;
  width: 260px;
  background-color: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  box-shadow: -5px 0 20px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  gap: 20px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-drawer-links .nav-item {
  height: 40px;
  font-size: 15px;
}

/* ==========================================
   3. 页面公用骨架与基础行元素
   ========================================== */
.page-layout { padding: 24px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.loading { text-align: center; padding: 50px; color: var(--text-dim); font-size: 14px; }
.no-data { color: var(--text-dim); text-align: center; padding: 30px 0; font-size: 13px; }

.panel-card { background-color: var(--bg-panel); border-radius: 12px; border: 1px solid var(--border-color); padding: 16px; box-sizing: border-box; box-shadow: 0 4px 6px var(--shadow); }
.table-header { display: flex; color: var(--text-dim); font-size: 12px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); margin-bottom: 4px; }
.list-scroll { display: flex; flex-direction: column; max-height: 350px; overflow-y: auto; }
.data-row { display: flex; padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border-color); align-items: center; position: relative; min-width: 0; color: var(--text-main); }

/* ==========================================
   4. 状态颜色与超链接防爆字交互
   ========================================== */
.color-ask { color: #f43f5e; }
.color-bid { color: #10b981; }
.color-neutral { color: var(--text-main); }
.color-dim { color: var(--text-dim); }

.badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-left: 6px; }
.badge.sync { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge.delay { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.clickable-link { color: #3b82f6; text-decoration: none; font-weight: 500; transition: color 0.15s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; min-width: 0; }
.clickable-link:hover { color: #60a5fa; text-decoration: underline; }

.clickable-market { color: #f59e0b; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ==========================================
   5. 首页与交易市场页大盘排版
   ========================================== */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.status-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; box-shadow: 0 4px 6px var(--shadow); }
.market-ticker-bar { background-color: var(--bg-ticker); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.ticker-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; width: 100%; }
.market-main-flex { display: flex; gap: 20px; width: 100%; }
.market-books-wrapper { flex: 3; display: flex; gap: 20px; min-width: 0; }
.order-book-side { flex: 1; background-color: var(--bg-panel); border-radius: 12px; border: 1px solid var(--border-color); padding: 16px; box-sizing: border-box; min-width: 0; box-shadow: 0 4px 6px var(--shadow); }
.depth-bg { position: absolute; right: 0; top: 2px; bottom: 2px; z-index: 1; transition: width 0.3s ease; }
.pc-market-sidebar { flex: 1; min-width: 260px; max-width: 320px; background-color: var(--bg-panel); border-radius: 12px; border: 1px solid var(--border-color); padding: 16px; box-sizing: border-box; box-shadow: 0 4px 6px var(--shadow); }
.sidebar-search-input { width: 100%; background-color: var(--bg-main); border: 1px solid var(--border-color); border-radius: 6px; padding: 8px 10px; color: var(--text-main); font-size: 12px; margin-bottom: 12px; box-sizing: border-box; outline: none; }
.sidebar-search-input:focus { border-color: #3b82f6; }

.remove-pair-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px 6px; margin-left: auto; font-size: 11px; border-radius: 4px; transition: all 0.15s ease; }
.remove-pair-btn:hover { background-color: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.active-market-row { background-color: rgba(59, 130, 246, 0.1); border-left: 3px solid #3b82f6; }
.history-panel { width: 100%; background-color: var(--bg-panel); border-radius: 12px; border: 1px solid var(--border-color); padding: 16px; box-sizing: border-box; margin-top: 20px; box-shadow: 0 4px 6px var(--shadow); }
.market-dropdown-select { background-color: var(--bg-button); border: 1px solid #3b82f6; color: var(--text-main); padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; outline: none; cursor: pointer; }

/* ==========================================
   6. 查账与搜索基础组件
   ========================================== */
.search-box { display: flex; gap: 10px; max-width: 500px; margin: 20px 0; }
.search-input { flex: 1; background-color: var(--bg-panel); border: 1px solid var(--border-ticker); border-radius: 6px; padding: 10px 14px; color: var(--text-main); font-size: 14px; }
.search-btn { background-color: #3b82f6; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }

/* ==========================================
   7. 📱 移动端响应式与抽屉触发断点机制
   ========================================== */
.main-trading-area { display: flex; gap: 20px; width: 100%; }
.user-main-flex { display: flex; gap: 20px; width: 100%; }
.user-core-content { flex: 3; min-width: 0; }
.pc-user-sidebar { flex: 1; min-width: 260px; max-width: 320px; background-color: var(--bg-panel); border-radius: 12px; border: 1px solid var(--border-color); padding: 16px; box-sizing: border-box; box-shadow: 0 4px 6px var(--shadow); align-self: flex-start; }
.user-flatten-row { display: flex; gap: 20px; width: 100%; }
.user-flatten-row .order-book-side { flex: 1; min-width: 0; }

.mobile-only-search { display: none !important; }

@media (max-width: 990px) {
  /* 🌟 当屏幕小于 990px 时，立刻斩断并屏蔽 PC 横向多控制组合，唤醒汉堡小抽屉 */
  .nav-right-controls .nav-links,
  .nav-right-controls .nav-selectors-group,
  .nav-right-controls .navbar-user-dropdown {
    display: none !important;
  }
  .mobile-menu-toggle-btn {
    display: block !important;
  }
}

@media (max-width: 850px) {
  .main-trading-area { flex-direction: column; }
  .market-main-flex { flex-direction: column; gap: 15px; }
  .market-books-wrapper { flex-direction: column; width: 100%; gap: 15px; }
  .user-flatten-row { flex-direction: column; gap: 15px; }
  .pc-market-sidebar, .pc-user-sidebar { display: none !important; }
  .mobile-only-search { display: flex !important; width: 100%; margin-top: 12px; gap: 8px; }
  .mobile-market-selector { display: inline-block !important; }
}

@media (max-width: 767px) {
  .site-navbar { padding: 0 16px; }
  .ticker-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ticker-stats .stat-box:last-child { grid-column: span 2; }
  .exchange-content { padding: 12px; }

  .main-trading-area div:nth-child(2) .table-header span:nth-child(3),
  .main-trading-area div:nth-child(2) .table-header span:nth-child(4),
  .main-trading-area div:nth-child(2) .data-row span:nth-child(3),
  .main-trading-area div:nth-child(2) .data-row span:nth-child(4) { display: none !important; }
  .main-trading-area div:nth-child(2) .table-header span:nth-child(1), .main-trading-area div:nth-child(2) .clickable-market { width: 50% !important; }
  .main-trading-area div:nth-child(2) .table-header span:nth-child(2), .main-trading-area div:nth-child(2) .color-ask { width: 50% !important; text-align: right !important; }

  .main-trading-area div:nth-child(1) .table-header span:nth-child(1), .main-trading-area div:nth-child(1) .data-row .clickable-link:nth-of-type(1) { width: 25% !important; display: block !important; }
  .main-trading-area div:nth-child(1) .table-header span:nth-child(2), .main-trading-area div:nth-child(1) .data-row .clickable-link:nth-of-type(2) { width: 25% !important; display: block !important; }
  .main-trading-area div:nth-child(1) .table-header span:nth-child(3), .main-trading-area div:nth-child(1) .data-row .color-bid { width: 25% !important; display: block !important; text-align: right !important; }
  .main-trading-area div:nth-child(1) .table-header span:nth-child(4), .main-trading-area div:nth-child(1) .data-row .color-neutral { width: 25% !important; display: block !important; text-align: right !important; }

  .history-panel .mobile-hide-cell { display: none !important; }
  .m-hist-col1 { width: 50% !important; display: block !important; }
  .m-hist-col2 { width: 50% !important; display: block !important; text-align: right !important; }
  .user-date-cell { width: 25% !important; }
  .u-mobile-w30 { width: 30% !important; }
  .u-mobile-w40 { width: 40% !important; }
}

/* ==========================================
   11. 用户页面平铺栅格与悬停对齐
   ========================================== */
.user-flatten-row { display: flex; gap: 20px; width: 100%; }
.user-flatten-row .order-book-side { flex: 1; min-width: 0; }
.user-date-cell::before { content: attr(data-full); white-space: nowrap; }

@media (max-width: 767px) {
  .user-date-cell::before { content: attr(data-full); } /* 保持统一纯JS输出 */
}


/* this file is imported in client/main.jsx */

:root {
  /* Colors */
  --color-background: hsl(210, 20%, 98%);
  --color-foreground: hsl(220, 20%, 15%);
  --color-card: hsl(0, 0%, 100%);
  --color-primary: hsl(4, 70%, 55%);
  --color-primary-hover: hsl(4, 70%, 45%);
  --color-muted: hsl(220, 10%, 50%);
  --color-border: hsl(220, 14%, 90%);

  /* Shadows */
  --shadow-card: 0 1px 3px 0 hsl(220 20% 15% / 0.04),
    0 1px 2px -1px hsl(220 20% 15% / 0.04);
  --shadow-card-hover: 0 10px 15px -3px hsl(220 20% 15% / 0.08),
    0 4px 6px -4px hsl(220 20% 15% / 0.04);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border radius */
  --radius: 0.75rem;
  --radius-sm: 0.5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 250ms ease;
}

/* ============ Reset & Base Styles ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============ Layout ============ */
.page {
  min-height: 100vh;
  background-color: var(--color-background);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

/* ============ Header / Navigation ============ */
.header {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-card);
  border-radius: var(--radius);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo {
  width: 4rem;
  height: 4rem;
}

.logo-text {
  font-weight: 600;
  color: var(--color-foreground);
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: inline;
  }
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.8;
}

/* ============ Main Content ============ */
.main {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .main {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }
}

/* ============ Card Component ============ */
.card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

/* ============ Counter Section ============ */
.counter-card {
  padding: var(--spacing-lg);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .counter-card {
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
  }
}

.counter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .counter-content {
    flex-direction: row;
  }
}

.counter-text {
  color: var(--color-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .counter-text {
    text-align: left;
  }
}

.counter-value {
  font-weight: 600;
  color: var(--color-foreground);
}

/* ============ Button Component ============ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-normal),
    transform var(--transition-fast);
}

.button:hover {
  background-color: var(--color-primary-hover);
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============ Resources Section ============ */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.025em;
}

.resources-grid {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ Resource Card ============ */
.resource-link {
  display: block;
}

.resource-card {
  padding: 1.25rem;
  transition: box-shadow var(--transition-slow),
    transform var(--transition-slow);
}

.resource-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.resource-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resource-title {
  font-weight: 500;
  color: var(--color-foreground);
  transition: color var(--transition-fast);
}

.resource-link:hover .resource-title {
  color: var(--color-primary);
}

.resource-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-muted);
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.resource-link:hover .resource-icon {
  opacity: 1;
  color: var(--color-primary);
}


/*# sourceMappingURL=main.css.map*/