:root {
  --primary: #1677FF;
  --primary-dark: #0958D9;
  --primary-light: #E6F4FF;
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #E8E8E8;
  --shadow: rgba(22, 119, 255, 0.08);
  --gradient: linear-gradient(135deg, #1677FF 0%, #0958D9 100%);
}

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

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

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

/* Header */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

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

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

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

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

.theme-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-btn:hover {
  transform: scale(1.1);
}

.theme-btn.active {
  border-color: var(--text);
  transform: scale(1.15);
}

.token-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--gradient);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.token-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  box-shadow: 0 4px 12px var(--shadow);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg-secondary);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

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

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Search */
.search-box {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 24px;
  border: 2px solid var(--border);
  border-radius: 28px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--shadow);
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: var(--gradient);
  color: white;
  border-radius: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.search-box button:hover {
  opacity: 0.9;
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  margin-left: 16px;
}

/* Vendor Grid */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}

.vendor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--primary);
}

.vendor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vendor-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.vendor-name {
  font-size: 18px;
  font-weight: 600;
}

.vendor-count {
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: auto;
}

.vendor-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.vendor-models-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vendor-models-preview span {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 6px;
}

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.model-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow);
}

.model-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.model-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.model-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.model-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Model Detail */
.model-detail-header {
  padding: 60px 0 40px;
  background: var(--bg-secondary);
}

.model-detail-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.model-detail-header h1 span {
  color: var(--primary);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.model-detail-content {
  padding: 40px 0;
}

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

.detail-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-card h2::before {
  content: '';
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.detail-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-table th {
  color: var(--text-light);
  font-weight: 500;
  width: 140px;
}

.info-table td {
  color: var(--text);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* Model info card with CTA */
.model-info-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.model-info-row .info-table {
  flex: 1;
}

/* Large CTA button */
.btn-large {
  padding: 24px 100px;
  font-size: 22px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 8px 28px var(--shadow);
  flex-direction: column;
  line-height: 1.3;
  min-width: 260px;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px var(--shadow);
}

.btn-large .btn-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

/* CTA */
.cta-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--primary-light);
}

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

.footer p {
  color: var(--text-light);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .stat-num {
    font-size: 28px;
  }
  
  .vendor-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    display: none;
  }
  
  .model-detail-header h1 {
    font-size: 26px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vendor-card,
.model-card {
  animation: fadeIn 0.4s ease-out;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}
