/* ==========================================================================
   首页样式（HomeView.vue scoped 样式静态化，导航/页脚/QR/客服见 style.css）
   ========================================================================== */

/* Hero */
.hero { padding: 120px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 64px; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 100px; background: #16161f; border: 1px solid #23233a; font-size: 14px; color: #8b8b9e; margin-bottom: 24px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 18px; color: #8b8b9e; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }
.hero-visual { display: flex; justify-content: center; }
.hero-highlights { display: flex; flex-direction: column; gap: 16px; }
.highlight-card { display: flex; gap: 16px; padding: 20px; background: #16161f; border-radius: 12px; border: 1px solid #23233a; transition: all 0.3s; }
.highlight-card:hover { border-color: #6366f1; transform: translateX(4px); }
.highlight-icon { font-size: 28px; flex-shrink: 0; }
.highlight-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: #e8e8ed; }
.highlight-text p { font-size: 13px; color: #8b8b9e; line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px; background: #16161f; border-radius: 16px; border: 1px solid #23233a; }
.stat-item { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 14px; color: #8b8b9e; margin-top: 4px; }

/* About */
.about { padding: 100px 0; background: #111118; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.about-desc { font-size: 16px; color: #8b8b9e; line-height: 1.8; margin-bottom: 32px; }
.about-features { display: flex; flex-direction: column; gap: 24px; }
.about-feature { display: flex; gap: 16px; }
.about-icon { font-size: 24px; flex-shrink: 0; }
.about-feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.about-feature p { font-size: 14px; color: #8b8b9e; }
.about-visual { display: flex; flex-direction: column; gap: 20px; }
.about-card { padding: 24px; background: #16161f; border-radius: 12px; border: 1px solid #23233a; }
.about-card-icon { font-size: 32px; margin-bottom: 12px; }
.about-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.about-card ul { list-style: none; padding: 0; }
.about-card li { padding: 6px 0; font-size: 14px; color: #8b8b9e; border-bottom: 1px solid #23233a; }
.about-card li:last-child { border-bottom: none; }
.about-card li::before { content: '→ '; color: #6366f1; }

/* Products */
.products { padding: 100px 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product-card { position: relative; padding: 32px; background: #16161f; border-radius: 12px; border: 1px solid #23233a; transition: all 0.3s; }
.product-card:hover { border-color: #6366f1; transform: translateY(-4px); }
.product-badge { position: absolute; top: 16px; right: 16px; padding: 3px 10px; background: rgba(99,102,241,0.15); color: #818cf8; font-size: 11px; font-weight: 600; border-radius: 100px; letter-spacing: 0.5px; }
.product-icon { width: 64px; height: 64px; margin-bottom: 20px; }
.product-icon img { width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.product-card p { font-size: 14px; color: #8b8b9e; margin-bottom: 16px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; background: rgba(99,102,241,0.1); color: #6366f1; font-size: 12px; border-radius: 100px; }

/* Features */
.features { padding: 100px 0; background: #111118; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 32px; background: #16161f; border-radius: 12px; border: 1px solid #23233a; transition: all 0.3s; }
.feature-card:hover { border-color: #6366f1; transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #8b8b9e; }

/* Models 排行 */
.models { padding: 100px 0; }
.rank-tabs { display: flex; gap: 0; margin-bottom: 24px; background: #111118; border-radius: 10px; padding: 4px; border: 1px solid #23233a; width: fit-content; }
.rank-tabs button { padding: 10px 24px; border: none; background: transparent; color: #8b8b9e; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.rank-tabs button.active { background: #23233a; color: #e8e8ed; }
.rank-table { background: #111118; border-radius: 12px; border: 1px solid #23233a; overflow: hidden; }
.rank-table[hidden] { display: none; }
.rank-header { display: grid; padding: 14px 24px; background: #0a0a0f; font-size: 12px; font-weight: 600; color: #5c5c72; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #23233a; grid-template-columns: 60px 2fr 1fr 1fr 1fr 80px; }
.rank-header.agent-hdr { grid-template-columns: 60px 2fr 100px 100px 100px; }
.rank-row { display: grid; padding: 14px 24px; border-bottom: 1px solid #1c1c28; align-items: center; transition: background 0.2s; grid-template-columns: 60px 2fr 1fr 1fr 1fr 80px; }
.rank-row.agent-row { grid-template-columns: 60px 2fr 100px 100px 100px; }
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: #16161f; }
.rank-row.top-3 { background: rgba(99,102,241,0.03); }
.col-rank { text-align: center; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; font-size: 13px; font-weight: 700; background: #1c1c28; color: #8b8b9e; }
.rank-badge.r1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #0a0a0f; }
.rank-badge.r2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #0a0a0f; }
.rank-badge.r3 { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: white; }
.col-name { font-weight: 600; font-size: 14px; }
.col-provider { color: #8b8b9e; font-size: 14px; }
.col-calls { font-variant-numeric: tabular-nums; font-size: 14px; }
.col-tokens { font-variant-numeric: tabular-nums; font-size: 13px; color: #8b8b9e; }
.col-trend { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.col-trend.up { color: #22c55e; }
.col-trend.down { color: #ef4444; }
.agent-info { display: flex; flex-direction: column; gap: 2px; }
.agent-name { font-weight: 600; font-size: 14px; }
.agent-desc { font-size: 12px; color: #5c5c72; }
.cat-tag { display: inline-block; padding: 3px 10px; background: #1c1c28; border-radius: 100px; font-size: 12px; color: #8b8b9e; }
.col-users { font-size: 14px; font-variant-numeric: tabular-nums; }
.col-rating { font-size: 13px; }
.stars { color: #fbbf24; font-size: 10px; letter-spacing: -1px; }
.score { font-weight: 600; color: #e8e8ed; margin-left: 4px; }

/* How it works */
.how-it-works { padding: 100px 0; background: #111118; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.step-card { text-align: center; padding: 32px; }
.step-num { font-size: 48px; font-weight: 800; background: linear-gradient(135deg, #6366f1, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.step-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: #8b8b9e; }
.code-block { max-width: 700px; margin: 0 auto; background: #0d0d14; border-radius: 12px; border: 1px solid #23233a; overflow: hidden; }
.code-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #16161f; border-bottom: 1px solid #23233a; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-title { font-size: 12px; color: #5c5c72; margin-left: 8px; }
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; }
.code-block .kw { color: #c678dd; }
.code-block .str { color: #98c379; }
.code-block .fn { color: #61afef; }
.code-block .num { color: #d19a66; }

/* Download */
.download { padding: 100px 0; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.download-card { padding: 32px; background: #16161f; border-radius: 12px; border: 1px solid #23233a; text-align: center; transition: all 0.3s; }
.download-card:hover { border-color: #6366f1; transform: translateY(-2px); }
.download-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.download-card p { font-size: 13px; color: #8b8b9e; margin-bottom: 20px; }
.download-version { display: block; font-size: 12px; color: #5c5c72; margin-top: 12px; }
.btn-primary-sm-full { display: block; padding: 10px 24px; background: #6366f1; color: white; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; transition: all 0.2s; }
.btn-primary-sm-full:hover { background: #818cf8; box-shadow: 0 0 20px rgba(99,102,241,0.15); }
.btn-primary-sm-full.btn-disabled { background: #2a2a3d; color: #6b6b84; cursor: not-allowed; box-shadow: none; }
.download-features { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.download-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #8b8b9e; }

/* Pricing 查询 */
.pricing { padding: 100px 0; background: #111118; }
.pricing-search { max-width: 1200px; margin: 0 auto; }
.pricing-subtitle { display: flex; gap: 24px; justify-content: center; margin-top: 12px; }
.pricing-subtitle span { font-size: 14px; color: #8b8b9e; }
.capability-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.cap-tag { padding: 8px 16px; background: #16161f; border: 1px solid #23233a; border-radius: 20px; font-size: 13px; color: #8b8b9e; cursor: pointer; transition: all 0.2s; user-select: none; display: flex; align-items: center; gap: 6px; }
.cap-tag:hover { border-color: #6366f1; color: #e8e8ed; background: rgba(99,102,241,0.1); }
.cap-tag.active { border-color: #6366f1; background: #6366f1; color: white; }
.vendor-icon { width: 18px; height: 18px; border-radius: 3px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.search-controls { display: flex; gap: 16px; margin-bottom: 24px; align-items: center; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #16161f; border: 1px solid #23233a; border-radius: 12px; flex: 1; transition: border-color 0.2s; }
.search-box:focus-within { border-color: #6366f1; }
.search-icon { font-size: 20px; flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: #e8e8ed; font-size: 16px; }
.search-box input::placeholder { color: #5c5c72; }
.region-selector { display: flex; gap: 0; background: #16161f; border: 1px solid #23233a; border-radius: 12px; padding: 4px; flex-shrink: 0; }
.region-selector button { padding: 10px 16px; border: none; background: transparent; color: #8b8b9e; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
.region-selector button.active { background: #23233a; color: #e8e8ed; }
.region-selector button:hover:not(.active) { color: #e8e8ed; }
.search-results { background: #16161f; border: 1px solid #23233a; border-radius: 12px; overflow: hidden; }
.results-header { display: grid; grid-template-columns: 2fr 1fr 2fr 2fr 1.5fr; padding: 14px 20px; background: #0a0a0f; font-size: 12px; font-weight: 600; color: #5c5c72; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #23233a; }
.results-header span { display: flex; align-items: center; gap: 4px; }
.results-header .sortable { cursor: pointer; transition: color 0.2s; user-select: none; }
.results-header .sortable:hover { color: #e8e8ed; }
.sort-icon { font-size: 14px; color: #5c5c72; transition: color 0.2s; }
.sort-icon.active { color: #6366f1; }
.result-row { display: grid; grid-template-columns: 2fr 1fr 2fr 2fr 1.5fr; padding: 14px 20px; border-bottom: 1px solid #1c1c28; align-items: center; transition: background 0.2s; }
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: #1a1a24; }
.model-name { font-weight: 600; font-size: 14px; color: #e8e8ed; display: flex; align-items: center; gap: 8px; }
.copy-btn { background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.5; transition: opacity 0.2s; padding: 2px; }
.copy-btn:hover { opacity: 1; }
.model-provider { font-size: 13px; color: #8b8b9e; }
.model-price { display: flex; flex-direction: column; gap: 2px; }
.rc-price .price-detail { color: #10b981; }
.price-detail { font-size: 12px; color: #8b8b9e; font-variant-numeric: tabular-nums; }
/* 节约徽标：跟在每行 RouterCode 价后面，比价格本身更亮一档，靠药丸底色与价格文本区分 */
.price-saving {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.model-capabilities { display: flex; flex-wrap: wrap; gap: 4px; }
.cap-badge { display: inline-block; padding: 2px 8px; background: rgba(99,102,241,0.15); color: #818cf8; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.spec-item { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.spec-resolution { color: #8b8b9e; }
.spec-price { color: #6366f1; font-weight: 600; }
.search-empty { text-align: center; padding: 40px; color: #8b8b9e; }
.search-hint { text-align: center; padding: 20px; color: #5c5c72; }
.search-hint p { margin-bottom: 16px; }
.hint-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hint-tag { padding: 8px 16px; background: #16161f; border: 1px solid #23233a; border-radius: 8px; font-size: 14px; color: #8b8b9e; cursor: pointer; transition: all 0.2s; }
.hint-tag:hover { border-color: #6366f1; color: #e8e8ed; }

/* CTA */
.cta { padding: 100px 0; text-align: center; }
.cta h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 16px; color: #8b8b9e; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* Contact */
.contact { padding: 100px 0; background: #111118; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { padding: 32px; background: #16161f; border-radius: 12px; border: 1px solid #23233a; text-align: center; transition: all 0.3s; }
.contact-card:hover { border-color: #6366f1; transform: translateY(-2px); }
.contact-icon { font-size: 40px; margin-bottom: 16px; }
.contact-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.contact-card p { font-size: 14px; color: #8b8b9e; margin-bottom: 4px; }
.btn-outline-sm { display: inline-block; padding: 8px 20px; margin-top: 12px; border-radius: 6px; border: 1px solid #23233a; color: #e8e8ed; font-size: 13px; transition: all 0.2s; }
.btn-outline-sm:hover { border-color: #6366f1; background: rgba(99,102,241,0.1); }

/* 移动端 */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .products-grid, .features-grid, .steps-grid, .download-grid { grid-template-columns: 1fr; }
  .rank-header, .rank-row { grid-template-columns: 50px 1fr 80px 80px; }
  .rank-header.agent-hdr, .rank-row.agent-row { grid-template-columns: 50px 1fr 80px 80px; }
  .col-provider, .col-tokens, .col-trend, .col-cat, .col-rating { display: none; }
  .download-features { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .search-controls { flex-direction: column; }
  .region-selector { width: 100%; justify-content: center; }
  .results-header, .result-row { grid-template-columns: 1fr; gap: 4px; }
  .results-header span { display: none; }
  .result-row { padding: 12px 16px; }
  .model-provider::before { content: '供应商: '; color: #5c5c72; }
  .model-price::before { content: '官方价格: '; color: #5c5c72; }
  .rc-price::before { content: 'RouterCode: '; color: #5c5c72; }
  .model-capabilities::before { content: '能力: '; color: #5c5c72; }
}
