/* ============================================================
   昱麟 YULIN · 专业科研设备产品站
   主蓝 #4e97fd · 深蓝(白字) #2c6edb · 深文字 #333 · 淡灰 #666
   ============================================================ */

:root {
  --blue: #4e97fd;
  --blue-dark: #2c6edb;   /* 白字小按钮用深蓝，保证对比 */
  --blue-bg: #f5f9ff;
  --orange: #e4573d;
  --text: #333;
  --muted: #666;
  --line: #e6e6e6;
  --card-bg: #f2f3f5;     /* 图片浅灰方块 */
  --radius: 12px;
  --shadow: 0 6px 20px rgba(45, 90, 180, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page { width: 100%; padding: 0 216px 60px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); }

.ic { width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--blue-dark); color: #fff; font-size: 13px; }
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar-item { white-space: nowrap; }
.topbar-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-link:hover { color: rgba(255,255,255,.85); }
.topbar-right { margin-left: auto; color: rgba(255,255,255,.85); }

/* ---------- 主导航 ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.brand-name em { font-style: normal; font-weight: 700; color: var(--blue); margin-left: 6px; letter-spacing: 2px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.tabs { display: flex; gap: 6px; margin-left: auto; }
.tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 48px;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, background-color .15s ease;
}
.tab:hover { color: var(--blue-dark); background: var(--blue-bg); }
.tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tab.is-active { color: var(--blue-dark); background: var(--blue-bg); }
.tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}


/* ---------- 面板 ---------- */
.panel { padding-top: 8px; }
.panel[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--blue-bg); width: 100%; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  padding: 6px 0;
}
.hero-copy { container-type: inline-size; }
.hero-title {
  font-size: clamp(32px, 11cqw, 65px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  margin-top: 10px;
}
.hero-title .hl { color: var(--blue); }
.hero-desc {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.cta {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .06s ease;
}
.cta:hover { background: #2459b8; }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cta-ghost { background: #fff; color: var(--blue-dark); box-shadow: inset 0 0 0 1.5px var(--blue); }
.cta-ghost:hover { background: var(--blue-bg); }


/* ---------- 横向分类入口 ---------- */
.cat-strip { padding: 40px 0; }
.cat-strip > .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  background: var(--blue-bg);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid #e3edfc;
  transition: box-shadow .15s ease, transform .06s ease;
}
.cat-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cat-kicker { font-size: 13px; font-weight: 700; color: var(--blue); }
.cat-title { font-size: 20px; font-weight: 700; }
.cat-note { font-size: 14px; color: var(--muted); }

/* ---------- 章节标题 ---------- */
.hardware, .software { padding: 24px 0 12px; }
.section-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .5px;
}
.section-sub { margin-top: 8px; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- 筛选 ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.filter {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 48px;
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { border-color: var(--blue); color: var(--blue-dark); }
.filter:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- 设备网格 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.device-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .06s ease;
}
.device-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.device-card[hidden] { display: none; }
.card-media {
  background: var(--card-bg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 18px; font-weight: 700; margin-top: 4px; }
.card-model { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.card-desc { font-size: 14px; color: var(--muted); margin-top: 8px; flex: 1; }
.card-specs { list-style: none; margin: 12px 0 4px; }
.card-specs li { font-size: 14px; color: var(--text); padding: 3px 0; }
.card-specs li::before { content: '·'; color: var(--blue); font-weight: 700; margin-right: 8px; }
.spec-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-bg);
  border: 1px solid #d7e6fd;
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 48px;
  margin-top: 12px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.spec-btn:hover { background: #e4eefd; }
.spec-btn:active { transform: translateY(1px); }
.spec-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.fine-print { margin-top: 26px; font-size: 13px; color: #888; text-align: center; }

/* ---------- 软件 ---------- */
.soft-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.soft-copy .section-title, .soft-copy .section-sub { text-align: left; }
.studio-shot {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  position: sticky;
  top: 20px;
}
.studio-shot img { width: 100%; border-radius: 8px; background: #fff; }
.studio-shot figcaption { text-align: center; font-size: 13px; color: var(--muted); padding-top: 10px; }
.proto-note {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--orange);
  padding: 8px 14px;
  background: #fdf3f1;
  border-radius: 0 8px 8px 0;
  margin: 20px 0 30px;
}

.sw-head { font-size: 20px; font-weight: 700; margin: 26px 0 14px; color: var(--text); }
.cap-list, .suggests, .delivery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.cap, .suggest, .del-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.cap strong, .suggest .s-name, .del-item strong { font-size: 15px; font-weight: 700; }
.cap span, .suggest .s-use, .del-item span { font-size: 13px; color: var(--muted); }
.cap-list.plan { background: var(--blue-bg); border-radius: var(--radius); padding: 8px; }
.cap-list.plan .cap { background: #fff; }
.cap-list.plan .cap strong { color: var(--blue-dark); }
.suggest .s-config { font-size: 13px; color: var(--blue-dark); font-weight: 600; }

.flow {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.flow li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  counter-increment: step;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  padding: 1px 7px;
  margin: 0;
}
.flow strong { grid-column: 2; align-self: center; font-size: 15px; }
.flow span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

.sw-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.sw-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

/* ---------- 学习资源 ---------- */
.lock-notice {
  background: var(--blue-bg);
  border: 1px solid #d7e6fd;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  margin: 22px 0;
}
.resource-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.resource-card h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}
.badge.lock { background: #fdecea; color: #c0392b; }
.badge.ok   { background: #e8f5e9; color: #1e8e3e; }
.resource-card a.enter {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 48px;
  transition: background-color .15s ease;
}
.resource-card a.enter:hover { background: #2459b8; }
.resource-card a.enter:active { transform: translateY(1px); }
.resource-card a.enter:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* 两侧固定卡片独立于标签页；正文为它们预留空间。 */
.qr-docks { height: 0; }
.qr-cards[hidden] { display: none; }
.qr {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
  width: 184px;
}
.qr-left { left: 16px; }
.qr-right { right: 16px; }
.qr img { width: 154px; height: 154px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }
.qr h3 { font-size: 15px; margin-top: 10px; }
.qr p { font-size: 13px; color: var(--muted); }

/* 二维码收起/展开：同一按钮始终可达；收起态释放正文为两侧预留的留白。 */
.qr-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 21;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color .15s ease;
}
.qr-toggle:hover { background: var(--blue-bg); }
.qr-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
body.qr-collapsed .page { padding-left: 0; padding-right: 0; }
body.qr-collapsed .qr-cards { display: none; }

/* ---------- 联系咨询（两标签共用，正常文档流） ---------- */
.contact { padding: 30px 0 0; }
.contact-grid {
  display: grid;
  /* auto-fit 按实际可用宽度（已扣除两侧收起/展开预留）分列；
     卡内容宽 >=220px，保证企业微信 QR 显示宽 >=200px 且窄屏不溢出 */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr));
  gap: 24px;
  margin-top: 26px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.contact-item h3 { font-size: 16px; font-weight: 700; color: var(--text); }
/* 描述区统一为两行行高，三卡媒体顶部对齐 */
.contact-desc {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4em;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.contact-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-link:hover { color: var(--blue); text-decoration: underline; }
/* 三卡统一媒体框：220px 正方形（含边框，内容 218x218），窄屏等比缩小；QR 以 contain 完整保留静区 */
.contact-media {
  display: block;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 12px;
  line-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.contact-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.contact-media:focus-visible,
.contact-action:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.contact-action {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.contact-action:hover { color: var(--blue-dark); }
.contact-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 70px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 40px; height: 40px; object-fit: contain; }
.footer-name { font-size: 16px; font-weight: 700; }
.footer-sub { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue-dark); }
.footer-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.footer-icp { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.footer-icp a { font-size: 13px; color: #888; text-decoration: none; }
.footer-icp a:hover { color: var(--blue-dark); }
.footer-icp a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Dialog ---------- */
dialog { border: none; padding: 0; background: transparent; max-width: 92vw; }
dialog::backdrop { background: rgba(20, 40, 70, 0.45); }
.param-dialog, .gate-dialog {
  width: 560px;
  max-width: 94vw;
  max-height: 84vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  background: #fff;
  overflow: hidden;
}
.param-dialog[open], .gate-dialog[open] {
  display: flex;
  flex-direction: column;
  margin: auto;
}
.gate-dialog { width: 400px; }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-bg);
}
.dialog-title { font-size: 19px; font-weight: 700; }
.dialog-close {
  font-size: 18px;
  line-height: 1;
  width: 48px;
  height: 48px;
  min-height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
}
.dialog-close:hover { background: #f0f4fa; }
.dialog-close:active { transform: translateY(1px); }
.dialog-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.dialog-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.params { width: 100%; border-collapse: collapse; }
.params caption {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 12px;
  color: var(--text);
}
.params th, .params td {
  border: 1px solid var(--line);
  padding: 9px 14px;
  text-align: left;
  font-size: 15px;
}
.params th { background: var(--blue-bg); width: 42%; font-weight: 600; color: var(--text); }
.dialog-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.dialog-foot {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--blue-bg);
  justify-content: flex-end;
}

.gate-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.gate-msg { font-size: 14px; color: #c0392b; min-height: 22px; margin-bottom: 8px; }
.gate-msg.is-error { color: #c0392b; }
.gate-msg.is-ok { color: var(--blue-dark); }
.gate-label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.gate-form input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 14px;
}
.gate-form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.gate-submit { width: 100%; }
.gate-dialog.is-expired .gate-form { display: none; }

/* ---------- 可访问性：减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 响应式：1440 用满 / 768 平板 / 375 手机 ---------- */
/* 窄屏固定在左下和右下；独立滚动区避免卡片盖住正文和备案。 */
@media (max-width: 1100px) {
  body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .topbar { flex: 0 0 auto; }
  .page { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 0 32px; }
  /* 二维码栏：默认展开（244px，可含底部安全区）；收起覆盖规则保证 56px 并完全隐藏二维码 */
  .qr-docks {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(244px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--blue-bg);
  }
  body.qr-collapsed .qr-docks { height: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .qr-cards { position: relative; flex: 1 1 auto; min-height: 0; } /* 首帧默认展开；收起时由覆盖规则隐藏 */
  body.qr-collapsed .qr-cards { display: none; }
  .qr-toggle {
    position: static;
    display: block;
    width: 100%;
    height: 56px;
    min-height: 56px;
    flex: 0 0 auto;
    border: none;
    border-top: 1px solid var(--line); /* 顶边框计入 56px 栏高，收起栏总高不超出视口 */
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
    text-align: center;
  }
  .qr { position: absolute; top: auto; bottom: 10px; transform: none; width: 160px; max-width: calc(50% - 24px); padding: 8px; }
  .qr-left { left: 12px; }
  .qr-right { right: 12px; }
  .qr img { width: 100px; height: 100px; }
  .qr h3 { font-size: 13px; margin-top: 4px; }
  .qr p { font-size: 12px; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sw-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .soft-grid { grid-template-columns: 1fr; }
  .studio-shot { position: static; }
  .cat-strip > .container { grid-template-columns: repeat(2, 1fr); }
  .header-in { flex-wrap: wrap; gap: 14px; }
  .tabs { margin-left: 0; width: 100%; }
  .tab { flex: 1; text-align: center; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .topbar-inner { padding: 9px 16px; gap: 10px; }
  .topbar-right { display: none; }
  .hero-title { font-size: 38px; }
  .cat-strip > .container { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .dialog-foot { flex-direction: column; }
  .dialog-foot .cta { width: 100%; justify-content: center; }
}
