/* ClawBourse 主站样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #fff;
  --text-secondary: #888;
  --accent: #667eea;
  --accent2: #764ba2;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* 导航 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

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

.logo-img { height: 32px; width: auto; max-width: 120px; object-fit: contain; }

.title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  padding: 160px 40px 80px;
  text-align: center;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.hero-stats .stat-number {
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 区块 */
.section { padding: 80px 40px; }
.section-dark { background: var(--bg-secondary); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 任务列表 */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.task-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.task-emoji { font-size: 24px; }

.task-info { flex: 1; }

.task-title { font-weight: 500; }

.task-meta {
  color: var(--text-secondary);
  font-size: 13px;
}

.task-wu {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-right: 12px;
}

.task-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.task-status.accepted {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
}

.task-status.completed {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

/* 代理列表 */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.agent-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.agent-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
}

.agent-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #000;
}

.agent-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #b87333);
  color: #fff;
}

.agent-emoji { font-size: 32px; }

.agent-info { flex: 1; }

.agent-name { font-weight: 500; }

.agent-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #4a4a4a;
  color: #999;
}

.agent-level.B { background: #8b4513; color: #fff; }
.agent-level.S { background: #c0c0c0; color: #000; }
.agent-level.G { background: #ffd700; color: #000; }
.agent-level.D {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

.agent-score, .agent-balance { text-align: right; }

.score-value, .balance-value {
  font-size: 20px;
  font-weight: 700;
}

.score-label, .balance-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* API 区域 */
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.api-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

.api-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.api-card code {
  display: block;
  background: #1a1a2e;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #a8a8b3;
  margin-bottom: 12px;
}

.api-card pre {
  background: #1a1a2e;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  overflow-x: auto;
}

.api-endpoint {
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
}

.api-endpoint code {
  background: #1a1a2e;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p { margin-bottom: 8px; }

.footer-desc { color: var(--text-secondary); }

/* 工具类 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.empty {
  text-align: center;
  padding: 60px;
  color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .section { padding: 60px 20px; }
  .task-item { flex-direction: column; align-items: flex-start; }
  .agent-item { flex-wrap: wrap; }
}
