:root {
  color-scheme: light;
  --paper: #f2f5f7;
  --white: #ffffff;
  --ink: #111820;
  --muted: #63717d;
  --line: #ccd5dc;
  --line-dark: #aebbc6;
  --signal: #155eef;
  --signal-dark: #0d43b7;
  --focus: #f04e30;
  --max: 76rem;
  --header: 4.75rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.025rem/1.68 Aptos, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image: linear-gradient(rgba(17, 24, 32, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 32, .025) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

a { color: inherit; }

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(21, 94, 239, .16);
}

button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .65rem .9rem;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - clamp(3rem, 8vw, 7rem)));
  margin-inline: auto;
}

.site-header {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: .55rem;
  text-decoration: none;
}

.wordmark > span {
  grid-row: 1 / 3;
  color: var(--signal);
  font: 800 1.25rem/1 "Bahnschrift Condensed", "Arial Narrow", sans-serif;
}

.wordmark strong {
  font: 750 .96rem/1 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  letter-spacing: .09em;
}

.wordmark small {
  margin-top: .22rem;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover,
.site-header nav a[aria-current] { color: var(--ink); }

.site-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: .45rem;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--signal);
  font: 700 .82rem/1.3 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
  align-items: end;
  column-gap: 3rem;
  padding: clamp(2.5rem, 4vw, 3.8rem) 0 2.2rem;
}

.catalog-hero .eyebrow { grid-column: 1 / -1; }

.catalog-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 750;
  line-height: .94;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.catalog-hero > p:last-child {
  max-width: 30rem;
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  text-wrap: pretty;
}

.product-directory {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.directory-head,
.product-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(10rem, .7fr) minmax(18rem, 1.45fr) minmax(13.5rem, .65fr);
  gap: 1.25rem;
  align-items: center;
}

.directory-head {
  min-height: 3.2rem;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.directory-head h2 {
  grid-column: 1 / 3;
  margin: 0;
  color: var(--ink);
  font-size: .86rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.product-row {
  min-height: 7.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
  transition: background-color .2s ease;
}

.product-row:hover { background: rgba(255, 255, 255, .62); }

.row-no {
  align-self: start;
  padding-top: .35rem;
  color: var(--signal);
  font: 650 .82rem/1 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-variant-numeric: tabular-nums;
}

.product-name b,
.product-name small { display: block; }

.product-name b {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.product-name small {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .86rem;
}

.product-use h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.product-use p {
  max-width: 38rem;
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .98rem;
  text-wrap: pretty;
}

.product-actions {
  display: grid;
  justify-items: stretch;
  gap: .55rem;
}

.product-actions > a:last-child {
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
  text-decoration: none;
}

.action-primary,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.8rem;
  padding: .55rem .85rem;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.action-primary {
  color: #fff;
  background: var(--signal);
}

.action-primary:hover {
  background: var(--signal-dark);
  transform: translateY(-1px);
}

.action-primary:active { transform: translateY(1px); }

.contact-strip,
.email-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 3.5rem 0 5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.contact-strip span,
.email-fallback span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.contact-strip strong,
.email-fallback strong { font-size: 1.05rem; }

.contact-strip > a,
.email-fallback > a {
  color: var(--signal);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.connect-hero {
  padding: clamp(2.8rem, 5vw, 4.5rem) 0 2.3rem;
  border-bottom: 1px solid var(--line-dark);
}

.connect-hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.connect-hero > p:last-child {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.channel-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-dark);
}

.channel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 2rem clamp(1.2rem, 2.5vw, 2.2rem) 2.4rem;
  border-right: 1px solid var(--line-dark);
}

.channel:last-child { border-right: 0; }

.channel-copy {
  position: relative;
  min-height: 18rem;
  padding-left: 2rem;
}

.channel-copy::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .35rem;
  bottom: .35rem;
  width: 1px;
  background: var(--line-dark);
}

.channel-copy::after {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: .7rem;
  height: .7rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.channel-no {
  color: var(--signal);
  font: 650 .82rem/1 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.channel h2 {
  margin: 1.1rem 0 .5rem;
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.channel-copy > p {
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  text-wrap: pretty;
}

.channel-copy .scan-help {
  margin-top: 1.3rem;
  font-size: .78rem;
}

.text-action {
  width: 100%;
  margin-top: 1.2rem;
  border: 1px solid var(--line-dark);
}

.text-action:hover { background: var(--white); }

.qr-link {
  position: relative;
  display: block;
  width: 100%;
  max-width: 20rem;
  margin: 1.5rem auto 0;
  padding: .85rem;
  aspect-ratio: 1;
  background: var(--white);
  box-shadow: 0 1.2rem 3rem rgba(42, 60, 75, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}

.qr-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.5rem 3.5rem rgba(42, 60, 75, .14);
}

.qr-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.group-status {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.35rem !important;
  color: var(--ink) !important;
  font-size: .88rem !important;
}

.status-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #159455;
  box-shadow: 0 0 0 .25rem rgba(21, 148, 85, .12);
}

.expired-cover { display: none; }

.channel.is-expired .status-dot {
  background: #b42318;
  box-shadow: 0 0 0 .25rem rgba(180, 35, 24, .12);
}

.channel.is-expired .qr-link {
  cursor: not-allowed;
  box-shadow: none;
}

.channel.is-expired .qr-link img { opacity: .14; }

.channel.is-expired .expired-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b42318;
  font-size: 1.1rem;
  font-weight: 700;
}

.channel.is-expired .text-action {
  color: var(--muted);
  background: transparent;
}

.email-fallback { margin-top: 4rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 0 calc(2.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: .92rem;
}

.site-footer p { margin: 0; }

.page-hero {
  max-width: 55rem;
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.page-hero > p:last-child {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.1rem;
  text-wrap: pretty;
}

.back-link {
  display: inline-block;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .75fr);
  gap: 1px;
  margin-bottom: 5rem;
  background: var(--line);
}

.content-panel {
  min-width: 0;
  padding: 2.2rem;
  background: var(--white);
}

.content-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.content-panel p,
.content-panel li { color: var(--muted); }

.content-panel a { overflow-wrap: anywhere; }

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border: 1px solid var(--line-dark);
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  border-color: var(--signal);
  background: var(--signal);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.detail-stats div {
  padding: 1rem;
  background: var(--paper);
}

.detail-stats strong,
.detail-stats span { display: block; }

.detail-stats span {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .76rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.action-primary,
.button,
.text-action,
.product-actions a,
.site-header a,
.site-footer a,
.contact-strip a,
.email-fallback a {
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

@media (max-width: 56rem) {
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-hero > p:last-child { margin-top: 1.2rem; }
  .directory-head { display: none; }
  .product-row {
    grid-template-columns: 2.5rem minmax(9rem, .8fr) minmax(0, 1.2fr);
  }
  .product-directory > .product-row:first-of-type { border-top: 1px solid var(--line-dark); }
  .product-actions {
    grid-column: 3;
    grid-template-columns: minmax(10rem, 1fr) auto;
    align-items: center;
  }
  .product-actions > a:last-child { text-align: left; }
  .channel-list { grid-template-columns: 1fr; }
  .channel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 2rem;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .channel:last-child { border-bottom: 0; }
  .channel-copy { min-height: 0; }
  .qr-link { margin: 0; }
}

@media (max-width: 44rem) {
  :root { --header: 4.25rem; }
  .site-header,
  .site-footer,
  main { width: min(100% - 1.5rem, var(--max)); }
  .wordmark small { display: none; }
  .site-header nav { gap: .9rem; }
  .catalog-hero { padding: 3.2rem 0 2rem; }
  .catalog-hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .product-row {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .8rem;
    padding: 1.2rem 0;
  }
  .product-use,
  .product-actions { grid-column: 2; }
  .product-use p { font-size: .83rem; }
  .product-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
  }
  .product-actions .action-primary { width: 100%; }
  .contact-strip,
  .email-fallback {
    display: grid;
    gap: 1rem;
    margin: 2.5rem 0 3.5rem;
  }
  .connect-hero { padding: 3.2rem 0 2.4rem; }
  .connect-hero h1 { font-size: clamp(3.7rem, 18vw, 5.6rem); }
  .channel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    min-height: 0;
    padding: 2rem 0 2.6rem;
  }
  .channel-copy { padding-left: 2rem; }
  .channel-copy { min-height: 0; }
  .channel h2 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .qr-link {
    width: min(100%, 21rem);
    justify-self: center;
    margin-top: 0;
  }
  .site-footer { display: block; }
  .site-footer nav {
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .content-grid { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .action-primary:hover,
  .qr-link:hover { transform: none; }
}
