/* ==========================================================================
   linkint showcase — visitor-facing layer (2026-11-15)
   Loaded after style.css / catalog.css. Scoped to .hero-v3, .family-section,
   .china-band so dashboards, console and payment pages are untouched.
   ========================================================================== */

.catalog-home { --sc-ink: #0f1020; --sc-muted: #5d6072; --sc-line: #e8e6f6; --sc-violet: #6b4bf5; --sc-lav: #f6f5fd; }

/* ---------------- Hero ---------------- */
.catalog-home .catalog-hero.hero-v3 {
  position: relative;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(700px 480px at 6% 0%, rgba(59, 130, 246, .10), transparent 60%),
    var(--sc-lav);
  border-bottom: 1px solid var(--sc-line);
  overflow: hidden;
}
.hero-v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 44px;
}
.hero-v3 .preview-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--sc-line);
  color: #4b3fd0; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  padding: 7px 13px; border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 16, 60, .05);
}
.hero-v3 .preview-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-violet); box-shadow: 0 0 0 3px rgba(107, 75, 245, .14); }

.hero-v3 h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 4.35vw, 62px);
  line-height: 1.01;
  letter-spacing: -.045em;
  font-weight: 800;
  color: var(--sc-ink);
}
.hero-v3 h1 span { color: var(--sc-violet); }
.hero-v3 .hero-cn {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 650;
  color: #2a2440;
  letter-spacing: .01em;
}
.hero-v3 .hero-lead {
  margin-top: 12px;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--sc-muted);
}
.hero-v3 .hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-v3 .btn-lg { padding: 15px 24px; border-radius: 13px; font-size: 15px; font-weight: 650; }
.hero-v3 .btn-primary { background: var(--sc-violet); border-color: var(--sc-violet); box-shadow: 0 12px 28px -14px rgba(107, 75, 245, .8); }
.hero-v3 .btn-primary:hover { background: #5a3ae4; border-color: #5a3ae4; transform: translateY(-1px); }
.hero-v3 .btn-ghost { background: #fff; border: 1px solid var(--sc-line); color: #2b2b3d; }
.hero-v3 .btn-ghost:hover { border-color: #cfc8f4; color: var(--sc-violet); }

.hero-v3 .hero-facts {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 13px; color: #5b5d6d;
}
.hero-v3 .hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-v3 .hero-facts span::before {
  content: "✓"; color: var(--sc-violet); font-size: 12px; font-weight: 800;
}

/* hero explorer card */
.hero-v3 .hero-explorer {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 24px;
  box-shadow: 0 40px 80px -52px rgba(38, 24, 110, .45), 0 2px 6px rgba(20, 16, 60, .04);
  padding: 22px;
}
.hero-v3 .explorer-top { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7b7d90; }
.hero-v3 .explorer-model { margin-top: 18px; display: flex; gap: 14px; align-items: center; }
.hero-v3 .explorer-model h2 { font-size: 22px; letter-spacing: -.02em; }
.hero-v3 .provider-symbol {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: linear-gradient(140deg, #efeaff, #e6f0ff); color: #4b3fd0;
}
.hero-v3 .explorer-rates { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-v3 .explorer-rates > div {
  border: 1px solid var(--sc-line); border-radius: 14px; padding: 12px 14px; background: #fbfaff;
}
.hero-v3 .explorer-rates span { display: block; font-size: 11.5px; color: #7b7d90; }
.hero-v3 .explorer-rates strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -.02em; }
.hero-v3 .explorer-route { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #6b6d7e; }
.hero-v3 .route-node { border: 1px solid var(--sc-line); border-radius: 999px; padding: 4px 10px; background: #fff; }
.hero-v3 .route-brand { border-color: #d9d1fb; background: #f4f1ff; color: #4b3fd0; font-weight: 650; }
.hero-v3 .route-line { flex: 1; height: 1px; background: linear-gradient(90deg, #e2ddf7, #cdc5f5); }
.hero-v3 .explorer-bottom { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--sc-line); display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #6b6d7e; }
.hero-v3 .explorer-bottom a { color: var(--sc-violet); font-weight: 600; }

/* hero stats strip */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; padding-bottom: 44px;
}
.hero-stats > div {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--sc-line);
  padding: 18px 22px;
}
.hero-stats > div:first-child { border-radius: 16px 0 0 16px; }
.hero-stats > div:last-child { border-radius: 0 16px 16px 0; }
.hero-stats strong { display: block; font-size: 28px; letter-spacing: -.035em; color: var(--sc-ink); }
.hero-stats span { display: block; margin-top: 2px; font-size: 12.5px; color: #6b6d7e; }

/* ---------------- Catalog by model type ---------------- */
.family-section { padding: 84px 0 12px; background: #fff; scroll-margin-top: 84px; }
.family-section .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 32px; }
.family-section .section-heading > div { max-width: none; }
.family-section .section-heading p { max-width: 760px; width: 100%; }
.family-section .section-heading h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.04em; }
.family-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
.family-tabs button {
  border: 1px solid var(--sc-line); background: #fff; color: #43455a;
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .16s ease;
}
.family-tabs button span { color: #9a9cb0; font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.family-tabs button:hover { border-color: #cfc8f4; color: var(--sc-violet); }
.family-tabs button.on { background: var(--sc-violet); border-color: var(--sc-violet); color: #fff; }
.family-tabs button.on span { color: rgba(255, 255, 255, .72); }

.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.family-card {
  border: 1px solid var(--sc-line); border-radius: 20px; background: #fff;
  padding: 22px 22px 18px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.family-card:hover { border-color: #cfc8f4; box-shadow: 0 24px 50px -36px rgba(38, 24, 110, .55); transform: translateY(-2px); }
.family-card header { display: flex; align-items: center; gap: 12px; }
.family-monogram {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 750; font-size: 15px; color: #fff; flex-shrink: 0;
}
.family-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #f7f7fa; border: 1px solid var(--sc-line); flex-shrink: 0;
}
.family-logo img { width: 26px; height: 26px; display: block; }
.family-card h3 { font-size: 16.5px; letter-spacing: -.02em; }
.family-card .family-note { margin-top: 3px; font-size: 12.5px; color: #7b7d90; }
.family-region {
  margin-left: auto; font-size: 11px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--sc-line); color: #6b6d7e; background: #fafaff;
}
.family-region.cn { color: #a8410f; border-color: #f6ddcd; background: #fff7f2; }
.family-models { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.model-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--sc-line); background: #fbfaff; border-radius: 9px;
  max-width: 100%; flex-wrap: wrap; padding: 6px 10px; font-size: 12.5px; color: #2f3145; font-family: var(--mono);
  transition: border-color .15s ease, background .15s ease;
}
.model-chip:hover { border-color: #cfc8f4; background: #f5f2ff; }
.family-monogram { background: var(--sc-violet); }
.model-chip code { font: inherit; min-width: 0; overflow-wrap: anywhere; }
.model-chip small { color: var(--sc-muted); font-family: var(--font); }
.model-chip em { font-style: normal; font-family: var(--font); font-size: 10.5px; color: #8b8da1; }
.model-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: #c9c4e8; }
.model-chip[data-kind="reasoning"] .dot { background: #8b5cf6; }
.model-chip[data-kind="vision"] .dot { background: #3b82f6; }
.model-chip[data-kind="coding"] .dot { background: #0f9d76; }
.model-chip[data-kind="video"] .dot { background: #f59e0b; }
.family-foot { margin: 22px 0 0; font-size: 12.5px; color: #8a8c9e; line-height: 1.7; }
.family-empty { padding: 40px 0; color: #7b7d90; font-size: 14px; }

/* ---------------- Motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-v3 .hero-copy > * { animation: sc-rise .62s cubic-bezier(.22, .68, .3, 1) both; }
  .hero-v3 .hero-copy > *:nth-child(2) { animation-delay: .04s; }
  .hero-v3 .hero-copy > *:nth-child(3) { animation-delay: .1s; }
  .hero-v3 .hero-copy > *:nth-child(4) { animation-delay: .16s; }
  .hero-v3 .hero-copy > *:nth-child(5) { animation-delay: .22s; }
  .hero-v3 .hero-copy > *:nth-child(6) { animation-delay: .28s; }
  .hero-v3 .hero-explorer { animation: sc-rise .7s cubic-bezier(.22, .68, .3, 1) .12s both; }
  .family-card { animation: sc-rise .5s cubic-bezier(.22, .68, .3, 1) both; }
}
@keyframes sc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero-v3-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 64px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div:first-child { border-radius: 16px 0 0 0; }
  .hero-stats > div:nth-child(2) { border-radius: 0 16px 0 0; }
  .hero-stats > div:nth-child(3) { border-radius: 0 0 0 16px; }
  .hero-stats > div:last-child { border-radius: 0 0 16px 0; }
  .family-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-v3-grid { padding-top: 48px; padding-bottom: 30px; }
  .hero-v3 h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero-v3 .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-v3 .hero-explorer { padding: 18px; border-radius: 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div, .hero-stats > div:first-child, .hero-stats > div:nth-child(2),
  .hero-stats > div:nth-child(3), .hero-stats > div:last-child { border-radius: 14px; }
  .hero-stats { gap: 8px; }
  .family-section { padding-top: 56px; }
}
