/* =========================================================
   Solution detail pages — extends design.css + inner.css
   Built to carry the full source-page content:
   hero / program features / feature band / application
   scenarios / system principle / recommended products /
   global cases.
   Locks held: one accent (#B45309), 2px panels, no serif.
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------- hero ---------------- */
.sol-hero {
  position: relative;
  min-height: clamp(430px, 50vw, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0D1117;
}
.sol-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sol-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,23,.55) 0%, rgba(13,17,23,.12) 34%, rgba(13,17,23,.78) 100%),
    linear-gradient(90deg, rgba(13,17,23,.72) 0%, rgba(13,17,23,.28) 52%, rgba(13,17,23,0) 100%);
}
.sol-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px var(--pad) clamp(40px, 5vw, 68px);
  color: #fff;
}
.sol-hero .crumb { color: rgba(255,255,255,.62); margin-bottom: 26px; flex-wrap: wrap; }
.sol-hero .crumb a { color: rgba(255,255,255,.86); }
.sol-hero .crumb a:hover { color: #fff; }
.sol-hero .crumb-sep { color: rgba(255,255,255,.38); }

.sol-eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F0A85A;
}
.sol-hero h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 640;
}
.sol-lede {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}
.sol-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-ghost {
  border-color: rgba(255,255,255,.42);
  color: #fff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); }

/* ---------------- generic section ---------------- */
.sol-sec { padding: clamp(56px, 6.6vw, 104px) var(--pad); }
.sol-sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sol-sec-inner { max-width: var(--maxw); margin: 0 auto; }

.sol-h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.026em;
  font-weight: 640;
}
.sol-h2.center { text-align: center; }

/* ---------------- program features ---------------- */
.sol-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
  margin-top: clamp(34px, 4vw, 56px);
}
.sol-feat { text-align: center; }
.sol-feat img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 18px;
}
.sol-feat h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -.012em;
}

/* ---------------- feature band ---------------- */
.sol-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sol-band-inner {
  margin: 0 auto;
  padding: clamp(28px, 3.2vw, 44px) var(--pad);
  max-width: var(--maxw);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(24px, 3vw, 48px);
}
.sol-band-inner li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.sol-band-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------- split (application scenarios) ---------------- */
.sol-split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.sol-split-copy .sol-h2 { margin-bottom: 20px; }
.sol-split-copy p {
  margin: 0 0 14px;
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.7;
  color: var(--text-2);
}
.sol-split-media img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
}

/* ---------------- system principle + products ----------------
   Title sits ON the diagram (source does the same: the heading is
   absolutely positioned over the full-bleed flow picture), so the
   picture keeps the whole viewport width instead of being shrunk
   into a column under a stacked heading. */
.sol-principle {
  background: #F4F4F4;            /* matches the diagram's own backdrop */
  padding-bottom: clamp(48px, 5.6vw, 88px);
}
.sol-principle-wrap { position: relative; }
.sol-principle-img {
  display: block;
  width: 100%;
  height: auto;
}
.sol-principle-title {
  position: absolute;
  top: clamp(20px, 3.85vw, 72px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  max-width: min(92%, 30ch);
  text-align: center;
  font-size: clamp(24px, 2.9vw, 42px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 640;
  color: var(--text);
}
.sol-prod-wrap { padding: 0 var(--pad); }
.sol-prods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --g: clamp(18px, 2.2vw, 28px);
  --cols: 3;
  gap: var(--g);
  margin-top: clamp(30px, 3.4vw, 44px);
}
.sol-prods.n4 { --cols: 4; }
.sol-prod {
  display: block;
  flex: 0 1 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
  max-width: calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.sol-prod:hover {
  border-color: #CBD1D8;
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.sol-prod-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #FCFCFD;
  border-bottom: 1px solid var(--line-soft);
}
.sol-prod-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sol-prod-name {
  padding: 16px 18px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.008em;
}

/* ---------------- global cases ---------------- */
.sol-cases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --g: clamp(20px, 2.6vw, 34px);
  --cols: 3;
  gap: var(--g);
  margin-top: clamp(34px, 4vw, 52px);
}
.sol-cases.n2 { --cols: 2; }
.sol-case {
  flex: 0 1 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
  max-width: calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
}
.sol-case img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
}
.sol-case h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.012em;
}
.sol-case p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
  /* felix: 两行简短简介，别把源站那段长描述全铺出来 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(2 * 1.62em);
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .sol-split { grid-template-columns: 1fr; }
  .sol-split-media { order: -1; }
  .sol-band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sol-hero { min-height: 0; }
  .sol-hero-inner { padding-top: 120px; }
  .sol-feats { grid-template-columns: 1fr; gap: 34px; }
  .sol-feat img { width: 76px; height: 76px; margin-bottom: 14px; }
  .sol-band-inner { grid-template-columns: 1fr; }
  .sol-prod, .sol-case { max-width: 100%; flex-basis: 100%; }
  /* on phones the diagram is too small to carry the heading: stack it */
  .sol-principle-title {
    position: static;
    transform: none;
    max-width: none;
    padding: 26px var(--pad) 2px;
    text-align: center;
  }
  .sol-principle-title + .sol-principle-img,
  .sol-principle-wrap .sol-principle-img { margin-top: 0; }
}
