/* QuantVue 风格的 Klipfy 样式 */

/* 配色方案 - 蓝色主题 */
:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1e40af;
  --primary-blue-light: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
}

.gradient-bg-purple {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
}

/* 页面背景装饰 */
.page-bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-bg-decoration::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.page-bg-decoration::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, 50px);
  }
}

/* 容器 */
.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 导航栏 */
.navbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* 按钮样式 */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue-light);
  border: 1px solid var(--primary-blue-light);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.1);
}

/* 卡片样式 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 统计卡片 */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue-light);
}

.stat-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.stat-icon.yellow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  left: 0;
  top: 72px;
  width: 260px;
  height: calc(100vh - 72px);
  background: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem;
  overflow-y: auto;
  z-index: 50;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding: 0 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-item i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

/* 主内容区 */
.main-content {
  margin-left: 260px;
  margin-top: 72px;
  padding: 2rem;
  min-height: calc(100vh - 72px);
  width: calc(100% - 260px);
  max-width: calc(100% - 260px);
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* 页面内容容器 */
.page-content {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: auto; /* 改为 auto，让内容自然撑开 */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-content.hidden {
  display: none !important;
}

/* 页面标题 */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* 表格样式 */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: rgba(37, 99, 235, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge.info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue-light);
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 钱包连接提示 */
.wallet-prompt {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.wallet-prompt-content {
  max-width: 500px;
  text-align: center;
}

.wallet-prompt-icon {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.wallet-prompt-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.wallet-prompt-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* 功能特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-icon.purple {
  color: var(--accent-purple);
}

.feature-icon.cyan {
  color: var(--accent-cyan);
}

.feature-icon.green {
  color: var(--success);
}

.feature-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 钱包信息 */
.wallet-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wallet-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wallet-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 加载动画 */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 工具提示 */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--bg-darker);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%; /* 修复：小屏幕时使用全宽 */
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    margin-top: 72px;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-size: 1rem;
}

/* ==========================================
   Wallet Management Styles
   ========================================== */

.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.wallet-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.wallet-card.active {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(34, 211, 238, 0.05) 100%);
}

.wallet-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.wallet-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.wallet-card-info {
  flex: 1;
}

.wallet-card-type {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.wallet-card-address {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.wallet-card-actions {
  display: flex;
  gap: 0.5rem;
}

.wallet-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
}

.wallet-stat {
  text-align: center;
}

.wallet-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.wallet-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.network-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wallet-card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-darker);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-option:hover {
  border-color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.05);
  transform: translateX(4px);
}

.wallet-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wallet-option.disabled:hover {
  border-color: var(--border-color);
  background: transparent;
  transform: none;
}

.wallet-option-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.wallet-option-info {
  flex: 1;
}

.wallet-option-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.wallet-option-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.wallet-option-action {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.wallet-selector-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

.text-sm {
  font-size: 0.875rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

/* 钱包持仓样式 */
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.holding-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.2s;
}

.holding-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.holding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.token-symbol {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.holding-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.holding-value {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.holding-pnl {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.holdings-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.summary-item {
  text-align: center;
}

.summary-item span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.summary-item strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.positive {
  color: var(--success-green) !important;
}

.negative {
  color: var(--danger-red) !important;
}

/* ==================== Dashboard优化样式 ==================== */

/* 最近交易 - 上下滚动表格 */
.trades-scroll-container {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.trades-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.trades-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 4px;
}

.trades-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.trades-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 钱包持仓 - 左右滚动卡片 */
.holdings-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.holdings-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.holdings-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 4px;
}

.holdings-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.holdings-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.holding-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.holding-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue-light);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.holding-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.holding-token-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.holding-token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.holding-token-symbol {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.holding-pnl-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.holding-pnl-badge.positive {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.holding-pnl-badge.negative {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.holding-card-body {
  display: grid;
  gap: 0.75rem;
}

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

.holding-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.holding-stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.holding-value-primary {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue-light);
}

/* 图表容器优化 */
.chart-container {
  position: relative;
  height: 350px;
  padding: 1.5rem;
}

.chart-container canvas {
  max-height: 100% !important;
  width: 100% !important;
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.scroll-indicator.left {
  left: 0.5rem;
}

.scroll-indicator.right {
  right: 0.5rem;
}

.scroll-indicator i {
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* 空状态优化 */
.empty-holdings {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-holdings i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .holding-card {
    flex: 0 0 240px;
    min-width: 240px;
  }
  
  .trades-scroll-container {
    max-height: 300px;
  }
}

/* 定价页面样式 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
}

/* ===== AI策略管理样式 ===== */

/* 策略卡片 */
.strategy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

/* 优先级标记 */
.strategy-priority {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.priority-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

/* 策略头部 */
.strategy-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.strategy-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.strategy-info {
  flex: 1;
}

.strategy-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.strategy-type {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.strategy-status {
  flex-shrink: 0;
}

/* 风险指示器 */
.risk-indicator {
  margin: 1rem 0;
}

.risk-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 执行时间信息 */
.schedule-info {
  background: rgba(59, 130, 246, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* 策略参数 */
.strategy-params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.param-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
}

.param-item i {
  color: var(--primary-blue);
  font-size: 1rem;
}

.param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
}

.param-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 策略操作按钮 */
.strategy-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* 冲突警告 */
.conflicts-container {
  margin-top: 1rem;
}

.conflicts-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
}

.conflicts-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.conflicts-list {
  margin-bottom: 0.75rem;
}

.conflict-item {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.conflict-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.conflict-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.conflicts-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 模态框样式增强 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表单样式 */
.form-section {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.required {
  color: var(--danger);
}

.text-muted {
  color: var(--text-muted);
  font-weight: 400;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* 风险滑块 */
.risk-slider-container {
  margin-top: 0.5rem;
}

.risk-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 0.75rem;
}

.risk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.risk-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: none;
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* 复选框组 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* 响应式 */
@media (max-width: 768px) {
  .strategy-params {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .strategy-actions {
    flex-direction: column;
  }
  
  .strategy-actions .btn {
    width: 100%;
  }
}

/* ===== 代币选择器样式 ===== */
.token-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.token-selector-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.token-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.token-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.token-option.selected {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary-blue);
}

.token-icon {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.token-info {
  flex: 1;
  min-width: 0;
}

.token-symbol {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.token-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-check {
  font-size: 1rem;
  color: var(--primary-blue);
  opacity: 0;
  transition: opacity 0.2s;
}

.token-option.selected .token-check {
  opacity: 1;
}

.selected-tokens-display {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.selected-token-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--primary-blue);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue-light);
}

.selected-token-badge i {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.selected-token-badge i:hover {
  opacity: 1;
}

/* 仓位滑块样式 */
.position-slider-container {
  margin-top: 0.5rem;
}

.position-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #10b981 0%, #3b82f6 25%, #f59e0b 50%, #ef4444 100%);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 0.75rem;
}

.position-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.position-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: none;
}

.position-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.position-labels span {
  text-align: center;
  color: var(--text-muted);
}

.position-labels small {
  display: block;
  font-size: 0.65rem;
  margin-top: 0.125rem;
  opacity: 0.7;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .token-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .position-labels span {
    font-size: 0.65rem;
  }
  
  .position-labels small {
    display: none;
  }
}

/* ========== AI策略执行监控样式 ========== */
.execution-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.execution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
}

.execution-priority {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.execution-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.execution-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.execution-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.execution-type {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
}

.execution-status {
  margin-left: auto;
}

.execution-stats,
.execution-trades {
  animation: fadeInUp 0.4s ease;
}

.execution-actions {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 滑点选择按钮样式 */
.slippage-btn {
  transition: all 0.2s ease;
}

.slippage-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slippage-btn:active {
  transform: translateY(0);
}

/* 响应式布局优化 */
@media (max-width: 1024px) {
  #executionsList {
    grid-template-columns: 1fr !important;
  }
  
  .execution-stats,
  .execution-trades {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .execution-stats,
  .execution-trades {
    grid-template-columns: 1fr !important;
  }
  
  .execution-actions {
    flex-direction: column;
  }
  
  .execution-actions button {
    width: 100%;
  }
}

/* ==================== 钱包管理样式 ==================== */
.wallet-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid rgba(102, 126, 234, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.wallet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.wallet-card.active {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.wallet-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.wallet-address {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wallet-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.wallet-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.wallet-stat .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.wallet-stat .value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.wallet-card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.wallet-card-footer .btn {
  flex: 1;
}

/* 资产项样式 */
.assets-list {
  max-height: 400px;
  overflow-y: auto;
}

.asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.asset-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}

.asset-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.asset-info .text-muted {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.asset-balance {
  text-align: right;
}

.asset-balance div:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.wallet-info-card {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  padding: 1rem;
}

.wallet-info-card div {
  margin-bottom: 0.5rem;
}

.wallet-info-card div:last-child {
  margin-bottom: 0;
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==================== 智能合约管理样式 ==================== */
.contract-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid rgba(102, 126, 234, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contract-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.contract-card.bound {
  border: 2px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.contract-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.contract-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contract-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.contract-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contract-address {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.contract-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.contract-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.contract-stat .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contract-stat .value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.contract-description {
  background: rgba(102, 126, 234, 0.05);
  border-left: 3px solid #667eea;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contract-card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.contract-card-footer .btn {
  flex: 1;
}

/* 绑定卡片样式 */
.binding-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
  border: 2px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.binding-card.active {
  border: 2px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.binding-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.binding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.binding-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.binding-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.binding-contract-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.binding-wallet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.binding-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.binding-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.binding-stat .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.binding-stat .value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.binding-card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.binding-unbound-info {
  background: rgba(234, 88, 12, 0.1);
  border-left: 3px solid #ea580c;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 签署合约模态框样式 */
.contract-sign-info h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contract-sign-details {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item i {
  color: #667eea;
  width: 20px;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  color: var(--text-secondary);
}

/* 收益记录样式 */
.revenue-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.revenues-list {
  max-height: 400px;
  overflow-y: auto;
}

.revenue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.revenue-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}

.revenue-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.revenue-amount {
  text-align: right;
}

.revenue-amount div:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

/* 合约信息卡片 */
.contract-info-card {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
}

.contract-info-card h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contract-details {
  margin-top: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-row .value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* 选项卡样式 */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.tab {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(102, 126, 234, 0.05);
}

.tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-content.hidden {
  display: none;
}
