/* ============================================
   TokenDistro - 布局样式（优化版）
   ============================================ */

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.navbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.navbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.navbar-title span {
  color: #7c3aed;
}

.navbar-nav {
  display: none;
  gap: 8px;
}

@media (min-width: 1024px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.navbar-link:hover {
  color: #1a1a1a;
  background: #f5f5f5;
}

.navbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navbar-actions [data-icon] {
  font-size: 18px;
}

.navbar-toggle {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #666;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

/* ========================================
   主内容
   ======================================== */
main {
  padding-top: 64px;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  text-align: center;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #f5f3ff;
  border: 1px solid #e9e5ff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6d28d9;
  margin-bottom: 24px;
}

.hero-badge [data-icon] {
  font-size: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.hero-title-highlight {
  color: #7c3aed;
}

.hero-description {
  font-size: 18px;
  color: #666;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-actions .search-box {
  width: 100%;
  max-width: 560px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
  }
}

.hero-stat {
  text-align: center;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

/* ========================================
   Section 区域
   ======================================== */
.section {
  padding: 64px 0;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   模型网格
   ======================================== */
.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .models-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   厂商网格
   ======================================== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .providers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .providers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.15s;
}

.provider-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.provider-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.provider-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.provider-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-meta {
  font-size: 12px;
  color: #999;
}

.provider-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #999;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.provider-link:hover {
  background: #f5f3ff;
  color: #7c3aed;
}

/* ========================================
   能力矩阵
   ======================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .capabilities-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.capability-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.15s;
}

.capability-card:hover {
  border-color: #7c3aed;
  background: #f5f3ff;
  transform: translateY(-4px);
}

.capability-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #f5f3ff;
  border-radius: 12px;
  color: #7c3aed;
  font-size: 24px;
}

.capability-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.capability-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.capability-count {
  font-size: 24px;
  font-weight: 700;
  color: #7c3aed;
}

/* ========================================
   使用场景
   ======================================== */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-case-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.15s;
}

.use-case-card:hover {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.use-case-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  background: #f5f3ff;
  border-radius: 12px;
  color: #7c3aed;
  flex-shrink: 0;
  font-size: 24px;
}

.use-case-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.use-case-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 48px 0 24px;
  background: #1a1a1a;
  color: #fff;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
}

.footer-description {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.footer-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #999;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* ========================================
   移动端菜单
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-link {
  padding: 12px 16px;
  font-size: 16px;
  color: #666;
  border-radius: 6px;
  text-decoration: none;
}

.mobile-menu-link:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}
