:root {
  --bg: #eaf4ff;
  --bg-deep: #d6e8ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(241, 248, 255, 0.92);
  --ink: #0d2440;
  --muted: #607894;
  --line: rgba(49, 97, 148, 0.14);
  --accent: #177cff;
  --accent-deep: #0a62d3;
  --accent-soft: #d9ebff;
  --shadow: 0 24px 70px rgba(35, 87, 140, 0.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(23, 124, 255, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(87, 195, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(234, 244, 255, 0.9)),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.26;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 255, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: riseIn 560ms ease both;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 46%);
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #45c0ff);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 38px rgba(23, 124, 255, 0.28);
}

.brand-copy h1,
.brand-copy p {
  margin: 0;
}

.brand-copy h1 {
  font-size: 1.22rem;
}

.brand-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.locale-toggle,
.cta,
.cta-secondary,
.control-row button,
.search-row button,
.empty-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-link:hover,
.locale-toggle:hover,
.cta:hover,
.cta-secondary:hover,
.control-row button:hover,
.search-row button:hover,
.empty-card button:hover {
  transform: translateY(-1px);
}

.nav-link,
.locale-toggle,
.cta-secondary,
.control-row button,
.empty-card button {
  background: rgba(255, 255, 255, 0.84);
}

.nav-link.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #3bb8ff);
  box-shadow: 0 16px 28px rgba(23, 124, 255, 0.22);
}

.cta,
.search-row button {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #42bfff);
  box-shadow: 0 18px 32px rgba(23, 124, 255, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 24px;
  margin-top: 26px;
}

.hero-copy,
.hero-visual,
.section {
  padding: 30px;
}

.hero-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.88));
}

.hero-copy h2 {
  max-width: 11ch;
  margin: 16px 0 14px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at top right, rgba(23, 124, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(221, 238, 255, 0.88), rgba(255, 255, 255, 0.92));
}

.hero-ribbon {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(49, 97, 148, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-art {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.product-art {
  max-height: 360px;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-chip {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(49, 97, 148, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.88rem;
}

.stat-grid,
.category-grid,
.cards-grid,
.product-grid,
.compare-grid,
.connection-grid,
.event-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.connection-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.category-card,
.product-card,
.compare-card,
.support-card,
.seller-card,
.info-card,
.connection-card,
.stack-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 18px 34px rgba(45, 93, 146, 0.07);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.section {
  margin-top: 22px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.55rem;
}

.section-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(224, 239, 255, 0.86));
}

.category-card::after {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 124, 255, 0.22), transparent 64%);
}

.category-card h4 {
  margin: 0;
  font-size: 1.2rem;
}

.category-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.category-meta strong {
  color: var(--accent-deep);
  font-size: 2rem;
  line-height: 1;
}

.search-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.search-row input,
.search-row select,
.seller-form input,
.seller-form select,
.seller-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.search-row input:focus,
.search-row select:focus,
.seller-form input:focus,
.seller-form select:focus,
.seller-form textarea:focus {
  outline: none;
  border-color: rgba(23, 124, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(23, 124, 255, 0.12);
}

.seller-form textarea {
  resize: vertical;
  min-height: 150px;
}

.section-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-card h4,
.compare-card h4,
.support-card h4,
.seller-card h4,
.info-card h4,
.connection-card h4 {
  margin: 0;
  font-size: 1.06rem;
}

.product-media,
.compare-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(49, 97, 148, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(224, 239, 255, 0.84), rgba(255, 255, 255, 0.96));
}

.product-media img,
.compare-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
}

.key-value {
  display: grid;
  gap: 8px;
}

.key-value div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.key-value div:first-child {
  padding-top: 0;
  border-top: 0;
}

.key-value span {
  color: var(--muted);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.price-tag {
  display: block;
  margin-top: 6px;
  font-size: 1.38rem;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-card,
.support-card,
.seller-card,
.info-card,
.connection-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.muted {
  color: var(--muted);
}

.workflow-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.connection-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.connection-group {
  display: grid;
  gap: 12px;
}

.connection-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(229, 241, 255, 0.9));
}

.connection-card a,
.inline-link {
  color: var(--accent-deep);
  font-weight: 600;
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.product-graph {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.24fr) minmax(0, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.graph-column {
  display: grid;
  gap: 14px;
  align-content: center;
}

.graph-core {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(49, 97, 148, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(23, 124, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 242, 255, 0.88));
  min-height: 320px;
  justify-items: center;
  align-content: center;
}

.graph-crosshair {
  position: absolute;
  inset: 24px;
  border-radius: 22px;
  pointer-events: none;
}

.graph-crosshair::before,
.graph-crosshair::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(23, 124, 255, 0.2), transparent);
}

.graph-crosshair::before {
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(23, 124, 255, 0.22), transparent);
}

.graph-crosshair::after {
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  transform: translateY(-50%);
}

.graph-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(49, 97, 148, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(45, 93, 146, 0.08);
}

.graph-node strong {
  font-size: 1rem;
  line-height: 1.45;
}

.graph-node-primary {
  width: min(100%, 360px);
  padding: 24px;
  text-align: center;
  border-color: rgba(23, 124, 255, 0.16);
  background:
    radial-gradient(circle at top, rgba(23, 124, 255, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(228, 241, 255, 0.92));
}

.graph-node-primary h4 {
  margin: 0;
  font-size: 1.36rem;
}

.graph-node-primary .price-tag {
  margin-top: 2px;
}

.graph-node-secondary {
  min-height: 98px;
  align-content: center;
}

.graph-chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.graph-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(49, 97, 148, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.stack-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.stack-card img {
  width: 112px;
  height: 112px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(223, 238, 255, 0.9), rgba(255, 255, 255, 0.98));
  object-fit: contain;
}

.seller-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 16px;
}

.seller-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.seller-success {
  background: linear-gradient(180deg, rgba(226, 242, 255, 0.98), rgba(255, 255, 255, 0.96));
}

pre {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(49, 97, 148, 0.1);
  border-radius: 16px;
  background: rgba(238, 246, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-card {
  place-items: start;
}

.footer-note {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .connection-groups,
  .product-graph,
  .seller-form-layout,
  .event-grid,
  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 18px 16px 56px;
  }

  .hero-copy,
  .hero-visual,
  .section {
    padding: 22px;
  }

  .hero-copy h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .stat-grid,
  .search-row,
  .seller-form {
    grid-template-columns: 1fr;
  }

  .stack-card {
    grid-template-columns: 1fr;
  }

  .stack-card img {
    width: 100%;
    height: auto;
  }

  .form-actions {
    align-items: stretch;
  }
}
