/* WEB-61：/isp/ 只在 body.page-isp 下生效。酒红 #a82323，暖灰底，系统字体。
   WEB-107：暗红顶栏（--isp-dark）和暖灰底（--isp-bg）是产品识别色，予以保留。
   字号、按钮、辅助色按全站走。墨色跟 --fg，辅助色跟 --fg-muted（AA）。 */
.page-isp {
  --isp-brand: #a82323;
  --isp-brand-soft: #fbeeee;
  --isp-brand-border: #eecccc;
  --isp-brand-text: #7f1a1a;
  --isp-bg: #f7f6f4;
  --isp-surface: #fff;
  --isp-ink: #18181B;
  --isp-muted: #52525B;
  --isp-faint: #52525B;
  --isp-line: #e3dccf;
  --isp-rule: #e9e6e1;
  --isp-dark: #2a0d0d;
  --isp-dark-accent: #f0a8a8;
  --isp-dark-text: #e4cccc;
  --isp-dark-line: #6a3a3a;
  background: var(--isp-bg);
  color: var(--isp-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

.page-isp .wrap { padding-inline: 24px; }
@media (min-width: 768px) {
  .page-isp .wrap { padding-inline: 40px; }
}
@media (min-width: 1440px) {
  .page-isp .wrap { padding-inline: max(96px, calc((100% - 1248px) / 2)); }
}

.page-isp h1,
.page-isp h2,
.page-isp h3,
.page-isp p { margin: 0; }
.page-isp h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--isp-ink);
}
.page-isp h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.16px;
  color: var(--isp-ink);
}
@media (min-width: 768px) {
  .page-isp h1 { font-size: 48px; line-height: 1.2; }
  .page-isp h2 { font-size: 32px; line-height: 1.25; }
}

.isp-top { background: var(--isp-dark); color: #fff; }
.isp-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
@media (min-width: 1024px) {
  .isp-top .wrap { min-height: 56px; }
}
.isp-top .brand { color: #fff; font-size: 18px; font-weight: 500; line-height: 28px; gap: 8px; }
.isp-top .brand .sep { color: var(--isp-dark-accent); font-size: 16px; font-weight: 400; }
.isp-top .brand .sub { color: var(--isp-dark-text); font-size: 14px; font-weight: 400; }
.isp-top .lang-switch {
  color: var(--isp-dark-accent);
  border-color: var(--isp-dark-accent);
  border-radius: 8px;
  padding: 2px 12px;
  line-height: 20px;
}
.isp-top .lang-switch:hover { color: #fff; border-color: #fff; opacity: 1; }
/* WEB-91 全站产品导航放在深色顶栏上：只改颜色，结构和收起规则在 site.css */
.isp-top .wrap { gap: 24px; justify-content: flex-start; }
.page-isp .isp-top .nav-products > a,
.page-isp .isp-top .nav-more-btn { color: var(--isp-dark-text); }
.page-isp .isp-top .nav-products > a:hover,
.page-isp .isp-top .nav-more-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.page-isp .isp-top .nav-products a[aria-current="page"] { color: #fff; }
.page-isp .isp-top .nav-toggle { color: #fff; border-color: var(--isp-dark-accent); border-radius: 8px; }
.page-isp .isp-top .nav-drawer { padding: 0 16px 8px; border-bottom: 0; }
.page-isp .isp-top .nav-drawer a { color: var(--isp-dark-text); border-top-color: rgba(255, 255, 255, 0.12); }
.page-isp .isp-top .nav-drawer a[aria-current="page"] { color: #fff; }

.isp-eye {
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--isp-brand);
  border-bottom: 2px solid var(--isp-brand);
  padding-bottom: 4px;
}
.isp-eye-dark { color: var(--isp-dark-accent); border-bottom-color: var(--isp-dark-accent); }
.isp-num {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--isp-brand);
}

.isp-hero { padding: 40px 0 48px; }
.isp-hero-copy,
.isp-copy,
.isp-also-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.isp-hero-copy { gap: 16px; }
.page-isp .lead {
  max-width: 36em;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: var(--isp-muted);
}
.page-isp .status {
  background: var(--isp-brand-soft);
  border: 1px solid var(--isp-brand-border);
  color: var(--isp-brand-text);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  gap: 0;
}
.page-isp .status::before { content: none; }

.isp-copy > p,
.isp-card > p {
  font-size: 16px;
  line-height: 28px;
  color: var(--isp-muted);
}
.isp-card > p { font-size: 14px; line-height: 22px; }

.isp-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.isp-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--isp-muted);
}
.isp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--isp-brand);
}

.isp-block { padding: 56px 0; border-top: 1px solid var(--isp-rule); }
/* WEB-107 F04：隔段换浅底，不另加主按钮。nth-of-type 按 <section> 计，hero 为 1，01 段为 2。 */
.isp-block:nth-of-type(even) { background: var(--isp-surface); }
.isp-also-head { margin-bottom: 24px; }

.isp-fig {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.isp-fig > a {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  background: var(--isp-surface);
}
.isp-fig > a:hover { opacity: 1; }
.isp-fig img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.isp-fig figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.isp-fig-note,
.isp-zoom {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: var(--isp-faint);
}
.isp-zoom { cursor: zoom-in; }
.isp-zoom:hover { opacity: 1; color: var(--isp-muted); }

.isp-pair { display: grid; gap: 24px; }
.isp-card {
  background: var(--isp-surface);
  border: 1px solid var(--isp-line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.isp-card h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--isp-ink);
}

/* 窄屏同样文上图下，补上间距；≥1024 仍为 32px。 */
.isp-hero-row,
.isp-split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .isp-hero { padding: 64px 0 48px; }
  /* WEB-71：图内字要读得清，图占满正文整行宽；文字在上，图在下。 */
  .isp-hero-row,
  .isp-split {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .isp-hero-copy,
  .isp-split .isp-copy { max-width: 720px; }
  /* 卡片里的图撑出内边距，和其它图一样占满正文整行宽。 */
  .isp-card .isp-fig { width: calc(100% + 48px); margin-inline: -24px; }
}

.isp-band {
  background: var(--isp-dark);
  color: #fff;
  padding: 64px 0;
}
.isp-band h2 { color: #fff; margin-top: 16px; }
.isp-dark-list { max-width: 640px; margin-top: 16px; }
.isp-dark-list > div {
  border-top: 1px solid var(--isp-dark-line);
  padding: 12px 0;
}
.isp-dark-list h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.isp-dark-list p {
  font-size: 14px;
  line-height: 22px;
  color: var(--isp-dark-text);
}

.page-isp .site-footer {
  background: var(--isp-surface);
  border-top: 1px solid var(--isp-line);
  color: var(--isp-muted);
  padding: 40px 0;
}
.page-isp .footer-brand { color: var(--isp-ink); font-weight: 500; font-size: 14px; line-height: 22px; }
.page-isp .footer-note { color: var(--isp-muted); font-size: 14px; line-height: 22px; max-width: 36em; }
.page-isp .footer-col .footer-heading {
  color: var(--isp-ink);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
.page-isp .footer-legal {
  color: var(--isp-faint);
  border-top: 0;
  margin-top: 24px;
  padding-top: 0;
  font-size: 13px;
  line-height: 20px;
}

/* 灯箱沿用 site.js 的 zoom-layer。只改这一页的底色，桌伴页不动。 */
.page-isp .zoom-layer { background: var(--isp-bg); }
.page-isp .zoom-layer::backdrop { background: rgba(42, 13, 13, 0.88); }
.page-isp .zoom-close,
.page-isp .zoom-step {
  font-size: 14px;
  line-height: 20px;
}

/* WEB-71：技术架构段、05 带里的部署图。图沿用 .isp-fig 和 a[data-zoom] 灯箱。 */
.isp-fig-note + .isp-zoom { margin-top: 0; }
.isp-arch-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}
.isp-minis-wrap { margin-top: 48px; }
.isp-minis-wrap h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--isp-ink);
}
.isp-minis-hint {
  margin-top: 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--isp-faint);
}
.isp-minis {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .isp-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .isp-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.isp-minis li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.isp-minis a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--isp-surface);
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
}
.isp-minis a:hover { opacity: 1; border-color: var(--isp-brand); }
.isp-minis img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.isp-minis span {
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--isp-ink);
}
.isp-fig-note { font-size: 14px; line-height: 22px; }
.isp-arch-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.isp-arch-top .isp-copy { max-width: 720px; }

.isp-band-rows { margin-top: 40px; }
.isp-band-row {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--isp-dark-line);
  padding: 32px 0;
  min-width: 0;
}
.isp-band-row .isp-copy h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
}
.isp-band-row .isp-copy > p {
  font-size: 14px;
  line-height: 22px;
  color: var(--isp-dark-text);
}
.isp-band-row .isp-fig > a { border-color: var(--isp-dark-line); }
.isp-band-row .isp-zoom { color: var(--isp-dark-text); }
.isp-band-row .isp-zoom:hover { color: #fff; }


/* WEB-75：统一图注；知识库下的引用材料子块；缩略图也用同一套图注。 */
.isp-subsplit { margin-top: 48px; }
.isp-copy h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--isp-ink);
}
.isp-fig figcaption,
.isp-minis li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.isp-fig-note {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--isp-muted);
}
.isp-zoom {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: var(--isp-faint);
  cursor: zoom-in;
}
.isp-zoom:hover { opacity: 1; color: var(--isp-muted); }
.isp-minis .isp-fig-note { font-weight: 400; color: var(--isp-muted); }
.isp-band-row .isp-fig-note { color: var(--isp-dark-text); }
.isp-band-row .isp-zoom { color: var(--isp-dark-text); }
.isp-band-row .isp-zoom:hover { color: #fff; }

/* WEB-107 F04：手机上看不清四列功能地图，改为强调「点开看大图」，不另加主按钮。 */
.isp-zoom-narrow { display: none; }
@media (max-width: 767px) {
  .isp-hero .isp-fig-note { display: none; }
  .isp-hero .isp-zoom-wide { display: none; }
  .isp-hero .isp-zoom-narrow { display: inline; }
  .isp-hero .isp-fig > a[data-zoom]:not(.isp-zoom) { display: none; }
  .isp-hero .isp-zoom {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 10px 14px;
    border: 1px solid var(--isp-line);
    border-radius: 10px;
    background: var(--isp-surface);
    color: var(--isp-ink);
  }
  .isp-hero .isp-zoom:hover { opacity: 1; color: var(--isp-ink); }
}
