* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --bg-card-alt: #ebebe6;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --accent: #222222;
  --accent-hover: #444444;
  --border: #d4d4d0;
  --border-light: #e0e0db;
  --shadow: rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,245,240,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 36px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-cta { 
  background: var(--accent); color: #fff !important; 
  padding: 8px 20px; border-radius: 20px; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

.menu-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 24px; padding: 4px 12px; border-radius: 8px; cursor: pointer; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero-logo { margin-bottom: 24px; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -1px; }
.highlight { color: var(--accent); }
.hero-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* Beginner Path */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-card-alt); }

.section-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.section-desc { text-align: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 40px; }

.path-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.path-step {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  width: 200px; transition: all 0.2s;
  position: relative;
}
.path-step:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 4px 20px var(--shadow); }
.step-num { 
  width: 32px; height: 32px; border-radius: 50%; 
  background: var(--accent); color: #fff; 
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin: 0 auto 12px;
}
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.step-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.path-arrow { 
  font-size: 24px; color: var(--text-light); 
  padding: 32px 12px 0; 
}

/* Stats */
.stats { padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.stat-number { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-label { color: var(--text-secondary); font-size: 13px; }

/* Filter */
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--text-secondary); padding: 8px 20px; border-radius: 20px;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--bg-card-alt); border-color: var(--accent); color: var(--accent); }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 12px;
  transition: all 0.2s; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow); }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.card-tag { padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-openclaw { background: #e8e8e0; color: #555; }
.tag-hermes { background: #e0e0e8; color: #555; }
.tag-general { background: #e8e8e8; color: #555; }
.tag-cloud { background: #e0e8e8; color: #555; }
.tag-local { background: #e8e0e8; color: #555; }

.card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.card-desc { color: var(--text-secondary); font-size: 12px; flex: 1; margin-bottom: 6px; line-height: 1.5; }
.card-meta { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600;
}
.card-link:hover { opacity: 0.7; }

.loading { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 16px; }

/* LLM Table */
.llm-grade-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; }
.grade-badge { padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.grade-s { background: #333; color: #fff; }
.grade-a { background: #888; color: #fff; }
.grade-b { background: #bbb; color: #fff; }

.llm-table { 
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 32px;
}
.llm-row { 
  display: grid; grid-template-columns: 50px 1fr 90px 70px 1fr 100px;
  padding: 14px 20px; align-items: center;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.llm-row:last-child { border-bottom: none; }
.llm-row:hover { background: var(--bg-card-alt); }
.llm-row-header { 
  font-weight: 700; font-size: 12px; color: var(--text-light); 
  text-transform: uppercase; letter-spacing: 0.5px; 
  cursor: default;
}
.llm-row-header:hover { background: transparent; }
.llm-rank { font-weight: 700; font-size: 14px; color: var(--text-light); }
.llm-name { font-weight: 700; font-size: 15px; }
.llm-provider { font-size: 12px; color: var(--text-secondary); }
.llm-rate { font-weight: 700; font-size: 16px; }
.llm-grade { font-weight: 700; font-size: 12px; }
.llm-pricing { font-size: 12px; color: var(--text-secondary); }
.llm-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.llm-tag {
  padding: 2px 8px; border-radius: 3px; background: var(--bg-card-alt);
  font-size: 11px; color: var(--text-secondary);
}

.llm-recommend {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px 28px;
}
.llm-recommend h3 { font-size: 16px; margin-bottom: 12px; }
.llm-rec-item { display: flex; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.llm-rec-item:last-child { margin-bottom: 0; }
.llm-rec-label { font-weight: 600; width: 110px; flex-shrink: 0; }
.llm-rec-value { color: var(--text-secondary); }

/* Community */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.community-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 18px 20px;
  text-decoration: none; color: var(--text); transition: all 0.2s;
}
.community-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.community-icon { font-size: 24px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-card-alt); border-radius: 10px; }
.community-name { font-size: 15px; font-weight: 600; }
.community-meta { font-size: 12px; color: var(--text-secondary); }

/* CTA */
.cta { padding: 80px 0; text-align: center; }
.cta-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.cta-benefits { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.benefit-item { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 20px; font-size: 14px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border-light); text-align: center; }
.footer-brand { margin-bottom: 12px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-light); font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .path-step { width: 160px; padding: 20px 16px; }
  .path-arrow { display: none; }
  .path-steps { gap: 12px; }
  .llm-row { grid-template-columns: 40px 1fr 60px 50px; gap: 8px; }
  .llm-pricing, .llm-tags { display: none; }

  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 20px; gap: 16px;
  }
  .menu-toggle { display: block; }
}
/* App Categories */
.app-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.app-category-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.app-category-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow); }
.app-category-icon { font-size: 28px; margin-bottom: 6px; }
.app-category-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.app-category-count { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.app-category-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
@media (max-width: 768px) { .app-categories { grid-template-columns: repeat(2, 1fr); } }
