/* ============================================================
   Yijia Robotics · 产品目录版式
   作用域全部以 .yj- 前缀，避免与 Blocksy 主题样式冲突
   ============================================================ */

:root {
  --yj-navy: #0A1E3C;
  --yj-navy-2: #12305C;
  --yj-blue: #1560D4;
  --yj-blue-dark: #0E46A0;
  --yj-blue-soft: #E8F0FD;
  --yj-accent: #FF6B1A;
  --yj-ink: #16233A;
  --yj-muted: #5D6E8A;
  --yj-line: #E2E8F2;
  --yj-bg-soft: #F4F7FB;
  --yj-radius: 10px;
  --yj-shadow: 0 1px 2px rgba(16, 35, 66, .06), 0 8px 24px -12px rgba(16, 35, 66, .18);
  --yj-shadow-lg: 0 2px 4px rgba(16, 35, 66, .06), 0 18px 48px -18px rgba(16, 35, 66, .28);
}

.yj-main { display: block; }

.yj-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- 页头 hero ---------------- */
.yj-pagehero {
  position: relative;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(21, 96, 212, .55), transparent 62%),
    linear-gradient(160deg, var(--yj-navy) 0%, var(--yj-navy-2) 100%);
  color: #fff;
  padding: 54px 0 58px;
  overflow: hidden;
}

.yj-pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.yj-pagehero > .yj-wrap { position: relative; z-index: 1; }

.yj-crumb {
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 16px;
}
.yj-crumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.yj-crumb a:hover { color: #fff; text-decoration: underline; }
.yj-crumb__sep { margin: 0 8px; opacity: .5; }
.yj-crumb__here { color: #fff; }

.yj-pagehero h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: #fff;
}

.yj-pagehero p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.yj-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.yj-kpis b { display: block; font-size: 24px; font-weight: 700; color: #fff; }
.yj-kpis span { font-size: 13px; color: rgba(255, 255, 255, .65); }

/* ---------------- 分类筛选条 ---------------- */
.yj-catbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 26px 6px;
}

.yj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--yj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--yj-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .18s ease;
  white-space: nowrap;
}
.yj-chip:hover { border-color: var(--yj-blue); color: var(--yj-blue); transform: translateY(-1px); }
.yj-chip.is-active { background: var(--yj-navy); border-color: var(--yj-navy); color: #fff; }
.yj-chip em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--yj-muted);
  background: var(--yj-bg-soft);
  border-radius: 999px;
  padding: 1px 8px;
}
.yj-chip.is-active em { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------------- 产品网格 ---------------- */
.yj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
  padding-block: 26px 60px;
}

.yj-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  overflow: hidden;
  transition: .22s ease;
}
.yj-card:hover {
  border-color: #C9D8F0;
  box-shadow: var(--yj-shadow-lg);
  transform: translateY(-3px);
}

.yj-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #FAFCFF 0%, var(--yj-bg-soft) 100%);
  border-bottom: 1px solid var(--yj-line);
  display: grid;
  place-items: center;
  padding: 18px;
}
.yj-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.yj-card:hover .yj-card__media img { transform: scale(1.05); }

.yj-card__certs {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}
.yj-card__certs span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--yj-blue-dark);
  background: rgba(255, 255, 255, .92);
  border: 1px solid #CFE0FA;
  border-radius: 4px;
  padding: 2px 6px;
}

.yj-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.yj-card__type {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--yj-blue);
  margin-bottom: 6px;
}

.yj-card__model {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--yj-ink);
  margin: 0 0 10px;
}
.yj-card__model a { color: inherit; text-decoration: none; }

.yj-card__specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 5px;
}
.yj-card__specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  padding-bottom: 5px;
  border-bottom: 1px dashed #EDF1F8;
}
.yj-card__specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.yj-card__specs dt, .yj-card__specs span:first-child { color: var(--yj-muted); }
.yj-card__specs b { color: var(--yj-ink); font-weight: 600; white-space: nowrap; }

.yj-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--yj-line);
}
.yj-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--yj-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.yj-card__link:hover { color: var(--yj-blue-dark); }
.yj-card__quote {
  font-size: 13px;
  font-weight: 700;
  color: var(--yj-ink);
  text-decoration: none;
  border: 1px solid var(--yj-line);
  border-radius: 6px;
  padding: 6px 12px;
  transition: .18s ease;
}
.yj-card__quote:hover { background: var(--yj-navy); border-color: var(--yj-navy); color: #fff; }

/* ---------------- 产品详情 hero ---------------- */
.yj-phero {
  background: var(--yj-bg-soft);
  border-bottom: 1px solid var(--yj-line);
  padding: 26px 0 46px;
}
.yj-phero .yj-crumb { color: var(--yj-muted); margin-bottom: 22px; }
.yj-phero .yj-crumb a { color: var(--yj-blue); }
.yj-phero .yj-crumb__here { color: var(--yj-ink); }

.yj-phero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.yj-gallery__main {
  background: #fff;
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 32px;
}
.yj-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }

.yj-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.yj-gallery__thumbs button {
  width: 78px;
  height: 78px;
  padding: 6px;
  border: 1px solid var(--yj-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: .18s ease;
}
.yj-gallery__thumbs button:hover,
.yj-gallery__thumbs button.is-active { border-color: var(--yj-blue); box-shadow: 0 0 0 2px var(--yj-blue-soft); }
.yj-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.yj-phero__type {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--yj-blue);
  margin-bottom: 8px;
}
.yj-phero h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--yj-ink);
  margin: 0 0 14px;
}
.yj-phero__summary {
  font-size: 16px;
  line-height: 1.7;
  color: var(--yj-muted);
  margin: 0 0 22px;
}

.yj-hl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--yj-line);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.yj-hl__item { background: #fff; padding: 15px 16px; }
.yj-hl__item b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yj-ink);
  letter-spacing: -.01em;
}
.yj-hl__item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--yj-muted);
}

.yj-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.yj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: .18s ease;
  cursor: pointer;
}
.yj-btn--primary { background: var(--yj-accent); color: #fff; }
.yj-btn--primary:hover { background: #E85F0F; color: #fff; transform: translateY(-1px); }
.yj-btn--ghost { background: #fff; border-color: var(--yj-line); color: var(--yj-ink); }
.yj-btn--ghost:hover { border-color: var(--yj-navy); background: var(--yj-navy); color: #fff; }

.yj-phero__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--yj-muted);
}

/* ---------------- 通用区块 ---------------- */
.yj-section { padding-block: 56px; }
.yj-section--soft { background: var(--yj-bg-soft); border-block: 1px solid var(--yj-line); }
.yj-section__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--yj-ink);
  margin: 0 0 8px;
}
.yj-section__lead { font-size: 15px; color: var(--yj-muted); margin: 0 0 28px; max-width: 720px; line-height: 1.7; }

/* ---------------- 规格表 ---------------- */
.yj-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 26px;
}
.yj-specs__group {
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  overflow: hidden;
  background: #fff;
}
.yj-specs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--yj-navy);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.yj-specs__head em { font-style: normal; font-weight: 600; color: rgba(255, 255, 255, .6); font-size: 12px; }

.yj-specs__row {
  display: grid;
  grid-template-columns: minmax(140px, 44%) 1fr;
  gap: 14px;
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #EFF3F9;
}
.yj-specs__row:nth-child(even) { background: #FAFCFF; }
.yj-specs__row:last-child { border-bottom: 0; }
.yj-specs__row dt { color: var(--yj-muted); margin: 0; }
.yj-specs__row dd { margin: 0; color: var(--yj-ink); font-weight: 600; word-break: break-word; }

.yj-specs__toggle {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--yj-line);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yj-ink);
  cursor: pointer;
}
.yj-specs__toggle:hover { border-color: var(--yj-blue); color: var(--yj-blue); }

/* ---------------- 正文 ---------------- */
.yj-prose { max-width: 860px; font-size: 16px; line-height: 1.8; color: var(--yj-ink); }
.yj-prose h2 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -.01em; }
.yj-prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.yj-prose p { margin: 0 0 16px; }
.yj-prose ul { margin: 0 0 18px; padding-left: 22px; }
.yj-prose li { margin-bottom: 7px; }
.yj-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.yj-prose a { color: var(--yj-blue); }

/* ---------------- CTA 带 ---------------- */
.yj-cta {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(760px 320px at 88% 0%, rgba(21, 96, 212, .6), transparent 60%),
    linear-gradient(150deg, var(--yj-navy) 0%, var(--yj-navy-2) 100%);
  color: #fff;
  padding: 44px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.yj-cta h2 { font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; margin: 0 0 8px; color: #fff; letter-spacing: -.01em; }
.yj-cta p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .8); max-width: 620px; line-height: 1.65; }

/* ---------------- 相关产品 ---------------- */
.yj-related { padding-block: 50px 64px; }

/* ---------------- 无结果 ---------------- */
.yj-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--yj-muted);
  grid-column: 1 / -1;
}

/* ---------------- 分页 ---------------- */
.yj-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 56px;
}
.yj-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--yj-line);
  border-radius: 8px;
  background: #fff;
  color: var(--yj-ink);
  font-weight: 600;
  text-decoration: none;
}
.yj-pager .page-numbers.current { background: var(--yj-navy); border-color: var(--yj-navy); color: #fff; }
.yj-pager .page-numbers:hover:not(.current) { border-color: var(--yj-blue); color: var(--yj-blue); }

/* ============================================================
   首页
   ============================================================ */

.yj-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% 12%, rgba(21, 96, 212, .5), transparent 60%),
    radial-gradient(720px 420px at 8% 92%, rgba(21, 96, 212, .22), transparent 62%),
    linear-gradient(155deg, #08182F 0%, var(--yj-navy-2) 100%);
  color: #fff;
  padding: 66px 0 70px;
}

.yj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 62px 62px;
  pointer-events: none;
}

.yj-hero > .yj-wrap { position: relative; z-index: 1; }

.yj-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 46px;
  align-items: center;
}

.yj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9FC4FF;
  background: rgba(21, 96, 212, .22);
  border: 1px solid rgba(120, 170, 255, .3);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 20px;
}

.yj-hero h1 {
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 18px;
}
.yj-hero h1 em { font-style: normal; color: #7FB2FF; }

.yj-hero__lead {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .82);
  max-width: 620px;
  margin: 0 0 28px;
}

.yj-hero .yj-btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.yj-hero .yj-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--yj-navy); }

.yj-hero__visual { position: relative; }
.yj-hero__visual img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
}
.yj-hero__glow {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(90, 155, 255, .35), transparent 72%);
  filter: blur(6px);
  z-index: -1;
}

.yj-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.yj-trust div { display: flex; align-items: baseline; gap: 8px; }
.yj-trust b { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.yj-trust span { font-size: 13px; color: rgba(255, 255, 255, .62); }

/* ---------- 分类卡 ---------- */
.yj-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.yj-cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  overflow: hidden;
  text-decoration: none;
  transition: .22s ease;
}
.yj-cat:hover { border-color: #C9D8F0; box-shadow: var(--yj-shadow-lg); transform: translateY(-3px); }

.yj-cat__img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #FAFCFF 0%, var(--yj-bg-soft) 100%);
  display: grid;
  place-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--yj-line);
}
.yj-cat__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.yj-cat:hover .yj-cat__img img { transform: scale(1.06); }

.yj-cat__body { padding: 16px 18px 18px; }
.yj-cat__body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--yj-ink);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.yj-cat__body p { font-size: 13px; line-height: 1.6; color: var(--yj-muted); margin: 0 0 10px; }
.yj-cat__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--yj-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 价值主张 ---------- */
.yj-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 22px;
}
.yj-prop {
  background: #fff;
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  padding: 24px 22px;
}
.yj-prop__ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--yj-blue-soft);
  color: var(--yj-blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.yj-prop h3 { font-size: 16px; font-weight: 700; color: var(--yj-ink); margin: 0 0 8px; }
.yj-prop p { font-size: 14px; line-height: 1.65; color: var(--yj-muted); margin: 0; }

/* ---------- 行业场景 ---------- */
.yj-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.yj-scene {
  position: relative;
  border-radius: var(--yj-radius);
  overflow: hidden;
  background: var(--yj-navy);
  aspect-ratio: 4 / 3;
}
.yj-scene img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: .35s ease; }
.yj-scene:hover img { opacity: .78; transform: scale(1.05); }
.yj-scene span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

@media (max-width: 1024px) {
  .yj-phero__grid { grid-template-columns: 1fr; gap: 30px; }
  .yj-specs { grid-template-columns: 1fr; }
  .yj-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .yj-hero__visual { order: -1; max-width: 460px; }
}

@media (max-width: 680px) {
  .yj-hero { padding: 40px 0 46px; }
  .yj-hero__lead { font-size: 15px; }
  .yj-trust { gap: 12px 20px; }
  .yj-trust b { font-size: 19px; }
  .yj-prop { padding: 20px 18px; }
}


@media (max-width: 680px) {
  .yj-pagehero { padding: 38px 0 42px; }
  .yj-kpis { gap: 22px; }
  .yj-kpis b { font-size: 20px; }
  .yj-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .yj-card__body { padding: 12px 12px 14px; }
  .yj-card__model { font-size: 16px; }
  .yj-card__specs li:nth-child(n+3) { display: none; }
  .yj-card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .yj-card__quote { text-align: center; }
  .yj-cta { padding: 30px 24px; }
  .yj-section { padding-block: 40px; }
  .yj-btn { width: 100%; }
}
