/* Keysight-inspired corporate theme for 迅睿CMS */
:root {
  --ks-red: #0858A0;
  --ks-red-hover: #06457C;
  --ks-black: #000000;
  --ks-dark: #1a1a1a;
  --ks-gray: #555555;
  --ks-mid: #767676;
  --ks-light: #f5f5f5;
  --ks-border: #e5e5e5;
  --ks-white: #ffffff;
  --ks-container: 1280px;
  --ks-header-h: 64px;
  --ks-topbar-h: 40px;
  --ks-font: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ks-body {
  margin: 0;
  font-family: var(--ks-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ks-dark);
  background: var(--ks-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.ks-nav-lock {
  overflow: hidden;
  touch-action: none;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ks-red); }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
.ks-container {
  width: 100%;
  max-width: var(--ks-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.ks-btn-primary {
  background: var(--ks-red);
  color: var(--ks-white) !important;
}
.ks-btn-primary:hover { background: var(--ks-red-hover); color: var(--ks-white) !important; }
.ks-btn-outline {
  border: 2px solid var(--ks-white);
  color: var(--ks-white) !important;
  background: transparent;
}
.ks-btn-outline:hover { background: var(--ks-white); color: var(--ks-dark) !important; }
.ks-btn-outline-dark {
  border: 2px solid var(--ks-dark);
  color: var(--ks-dark) !important;
}
.ks-btn-outline-dark:hover { background: var(--ks-dark); color: var(--ks-white) !important; }
.ks-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ks-red);
}
.ks-link-arrow::after {
  content: "›";
  font-size: 1.3em;
  line-height: 1;
}

/* ========== Header ========== */
.ks-topbar {
  background: var(--ks-dark);
  color: #ccc;
  font-size: 13px;
  height: var(--ks-topbar-h);
}
.ks-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.ks-topbar a { color: #ccc; }
.ks-topbar a:hover { color: #fff; }
.ks-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ks-lang-switch a { color: #999; }
.ks-lang-switch a.is-active,
.ks-lang-switch a:hover { color: #fff; font-weight: 600; }
.ks-lang-sep { color: #666; }
.ks-lang-switch-header {
  margin: 0 4px 0 0;
  font-size: 13px;
}
.ks-lang-switch-header a { color: #666; }
.ks-lang-switch-header a.is-active,
.ks-lang-switch-header a:hover { color: var(--ks-red, #e31c23); }

.ks-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ks-border);
  height: var(--ks-header-h);
}
.ks-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ks-logo { flex-shrink: 0; display: flex; align-items: center; }
.ks-logo img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.ks-footer-logo img { height: 42px; width: auto; max-width: 220px; object-fit: contain; }

.ks-nav { flex: 1; min-width: 0; height: 100%; }
.ks-nav > ul {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-wrap: nowrap;
  height: 100%;
}
.ks-nav-item { position: relative; display: flex; align-items: stretch; }
.ks-nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 100%;
  min-height: var(--ks-header-h);
  font-size: 15px;
  font-weight: 600;
  color: var(--ks-dark);
  border-radius: 0;
}
/* 一级：当前页 / 当前展开 / 悬停，同时只有一项因 is-open 展开 */
.ks-nav-item.is-active > a,
.ks-nav-item.is-open > a { color: var(--ks-red); }
.ks-nav-item:not(.is-open) > a:hover { color: var(--ks-red); }
/* 已有其他项展开时，未展开项悬停不再额外抢色（由 JS 切 is-open） */
.ks-nav:has(.ks-nav-item.is-open) .ks-nav-item:not(.is-open):not(.is-active) > a:hover {
  color: var(--ks-dark);
}
.ks-nav-item > a .ks-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: .7;
}
/* 悬停桥：消除菜单项与下拉之间的空隙，避免移入时闪退 */
.ks-megamenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.ks-nav-item:hover > .ks-megamenu,
.ks-nav-item.is-open > .ks-megamenu { display: block; }

/* Keysight 式级联下拉：二级 | 三级 | 四级 */
.ks-megamenu {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  top: 100%;
  width: max-content;
  max-width: min(100vw - 32px, 960px);
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--ks-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  z-index: 60;
  box-sizing: border-box;
  overflow: visible;
}
.ks-nav-mega { position: relative; }
.ks-header { overflow: visible; }
.ks-header-inner { overflow: visible; }

.ks-cascade {
  display: inline-flex;
  align-items: stretch;
  min-height: 320px;
  position: relative;
  width: auto;
  max-width: 100%;
  margin: 0;
  vertical-align: top;
}
.ks-cascade-col.ks-cascade-l2 {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  position: relative;
  z-index: 3;
}
.ks-cascade-slot-l3 {
  width: 240px;
  flex-shrink: 0;
  background: #f3f3f3;
  border-right: 1px solid #e8e8e8;
  pointer-events: none;
}
.ks-cascade-slot-l4 {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  pointer-events: none;
}
.ks-cascade-slot-l5 {
  width: 260px;
  flex-shrink: 0;
  background: #fafafa;
  pointer-events: none;
}
.ks-cascade-menu[data-cols="1"] .ks-cascade {
  min-height: 0;
}
.ks-cascade-menu[data-cols="1"] .ks-cascade-l2 {
  width: 280px;
  border-right: 0;
}
.ks-cascade-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}
.ks-cascade-item > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #1a1a1a !important;
  transition: background .15s, color .15s;
}
.ks-cascade-item > a span {
  flex: 0 1 auto;
  min-width: 0;
}
.ks-cascade-item.has-kids > a .ks-chevron {
  margin-left: auto;
}
/* 仅当前 is-active 高亮，避免 hover 与残留 active 叠在一起 */
.ks-cascade-l2 > .ks-cascade-list > .ks-cascade-item.is-active > a {
  background: #ebebeb;
  color: #1a1a1a !important;
}
.ks-cascade-l3-panel .ks-cascade-item.is-active > a {
  background: transparent;
  color: var(--ks-red) !important;
}
.ks-cascade-l3-panel {
  background: #f3f3f3;
}
.ks-cascade-l3-panel .ks-cascade-list {
  padding: 8px 0;
}
.ks-cascade-l4-panel .ks-cascade-item > a {
  font-weight: 500;
}
.ks-cascade-l4-panel .ks-cascade-item.is-active > a {
  background: transparent;
  color: var(--ks-red) !important;
}
.ks-cascade-l4-panel .ks-cascade-item:hover > a {
  background: #f5f5f5;
  color: var(--ks-red) !important;
}
.ks-cascade-l5-panel .ks-cascade-item > a {
  font-weight: 500;
}
.ks-cascade-l5-panel .ks-cascade-item:hover > a {
  background: #f0f0f0;
  color: var(--ks-red) !important;
}

.ks-chevron,
.ks-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  color: #666;
}
.ks-chevron::before { content: "›"; font-size: 20px; }
.ks-arrow::before { content: "→"; font-size: 16px; }
.ks-cascade-item.is-active > a .ks-chevron,
.ks-cascade-l3-panel .ks-cascade-item.is-active > a .ks-chevron,
.ks-cascade-item.is-leaf > a .ks-arrow,
.ks-cascade-all .ks-arrow {
  color: var(--ks-red);
}

.ks-cascade-panel {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: visible;
  box-sizing: border-box;
}
.ks-cascade-panel > .ks-cascade-list {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ks-cascade-l3-panel {
  left: 100%;
  width: 240px;
  border-right: 1px solid #e8e8e8;
  z-index: 2;
}
.ks-cascade-l4-panel {
  left: 100%;
  width: 240px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  z-index: 1;
}
.ks-cascade-l5-panel {
  left: 100%;
  width: 260px;
  background: #fafafa;
  z-index: 0;
}
/* 末级：箭头紧跟名称，不拉满整列 */
.ks-cascade-item.is-leaf > a {
  justify-content: flex-start;
  gap: 8px;
}
.ks-cascade-item.is-leaf > a .ks-arrow {
  margin-left: 0;
}
.ks-cascade-item.has-kids.is-active > .ks-cascade-panel {
  display: block;
}

.ks-cascade-all {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid #e8e8e8;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a !important;
  background: #fff;
}
.ks-cascade-all:hover {
  color: var(--ks-red) !important;
}

.ks-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ks-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ks-dark);
  border-radius: 50%;
}
.ks-icon-btn:hover { background: var(--ks-light); color: var(--ks-red); }
.ks-quote-btn { white-space: nowrap; }

.ks-search-panel {
  display: none;
  position: absolute;
  right: 24px;
  top: calc(var(--ks-topbar-h) + var(--ks-header-h));
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ks-border);
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
  z-index: 210;
}
.ks-search-panel.is-open { display: block; }
.ks-search-panel form { display: flex; gap: 8px; }
.ks-search-panel input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ks-border);
  font-size: 15px;
  outline: none;
}
.ks-search-panel input:focus { border-color: var(--ks-red); }

.ks-mobile-toggle { display: none; }

/* ========== Hero ========== */
.ks-hero {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}
.ks-hero-slider { position: relative; min-height: 480px; }
.ks-hero-slide {
  display: none;
  position: relative;
  min-height: 520px;
  padding: 90px 0 110px;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
}
.ks-hero-slide.is-active { display: block; animation: ksFade .45s ease; }
@keyframes ksFade {
  from { opacity: .4; }
  to { opacity: 1; }
}
.ks-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.2) 100%);
  z-index: 0;
}
.ks-hero-slide .ks-container { position: relative; z-index: 1; }
.ks-hero-title {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.ks-hero-desc {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}
.ks-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.ks-hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.ks-hero-dot.is-active { background: var(--ks-red); }

/* Banner 背景图由后台 hdtp 字段动态输出，勿在此写死图片 */

/* Feature band */
.ks-band {
  padding: 56px 0;
}
.ks-band-dark {
  background: var(--ks-black);
  color: #fff;
}
.ks-band-dark.ks-band-solutions {
  background:
    linear-gradient(180deg, rgba(8,8,10,.88) 0%, rgba(8,8,10,.82) 100%),
    url("../img/bg-solutions.jpg") center / cover no-repeat;
}
.ks-band-dark.ks-band-pagehero {
  background:
    linear-gradient(100deg, rgba(6,8,12,.88) 0%, rgba(10,12,18,.72) 45%, rgba(12,14,20,.55) 100%),
    var(--ks-pagehero-bg, linear-gradient(145deg, #12161c, #1c2838)) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.ks-find-card.ks-find-card-dark {
  background:
    linear-gradient(160deg, rgba(10,10,12,.92) 0%, rgba(18,14,20,.88) 100%),
    url("../img/bg-solution-card.jpg") center / cover no-repeat;
  border-color: #333;
  color: #fff;
}
.ks-find-card.ks-find-card-dark h3 { color: #fff; }
.ks-find-card.ks-find-card-dark p { color: #aaa; }
.ks-find-card.ks-find-card-dark:hover {
  border-color: var(--ks-red);
  box-shadow: 0 8px 24px rgba(233,0,41,.18);
}
.ks-band-light { background: var(--ks-light); }
.ks-band-white { background: #fff; }
.ks-band-red {
  background: var(--ks-red);
  color: #fff;
}

.ks-section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.ks-section-sub {
  margin: 0 0 32px;
  max-width: 720px;
  font-size: 17px;
  color: var(--ks-gray);
}
.ks-band-dark .ks-section-sub { color: rgba(255,255,255,.75); }
.ks-section-sub-rich {
  line-height: 1.75;
  white-space: normal;
}
.ks-section-sub-rich p {
  margin: 0 0 0.45em;
}
.ks-section-sub-rich p:last-child {
  margin-bottom: 0;
}
.ks-section-sub-rich br {
  line-height: 1.75;
}

.ks-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ks-split-media {
  min-height: 280px;
  background: linear-gradient(145deg, #1a1a1a, #3a1520) center / cover no-repeat;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.ks-split-media.ks-split-media-support {
  background-image:
    linear-gradient(145deg, rgba(10,12,16,.25), rgba(20,16,22,.35)),
    url("../img/bg-support.jpg");
  background-size: cover;
  background-position: center;
}
.ks-split-media.ks-split-media-careers {
  background-image:
    linear-gradient(145deg, rgba(10,16,24,.3), rgba(8,12,20,.4)),
    url("../img/bg-careers.jpg");
  background-size: cover;
  background-position: center;
}
.ks-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(233,0,41,.2), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.ks-split-media-support::after,
.ks-split-media-careers::after {
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.18) 100%);
}
.ks-split-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards */
.ks-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ks-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ks-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ks-ai-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 24px;
  color: #fff !important;
  background: #111;
  overflow: hidden;
  border-radius: 2px;
}
.ks-ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
.ks-ai-card:nth-child(1) { background: linear-gradient(160deg, #1a1020, #5a1028); }
.ks-ai-card:nth-child(2) { background: linear-gradient(160deg, #0e1828, #1a4060); }
.ks-ai-card:nth-child(3) { background: linear-gradient(160deg, #101010, #3a2030); }
.ks-ai-card:nth-child(4) { background: linear-gradient(160deg, #181018, #4a1828); }
.ks-ai-card-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}
.ks-ai-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.ks-ai-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.45;
}

/* Product category tiles */
.ks-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ks-prod-tile {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: #0d0d0d;
  color: #fff !important;
  overflow: hidden;
}
.ks-prod-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.ks-prod-tile:hover .ks-prod-tile-bg { transform: scale(1.06); }
.ks-prod-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8) 100%);
}
.ks-prod-tile-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0,0,0,.88);
  font-size: 16px;
  font-weight: 700;
}
.ks-prod-tile-title span { opacity: .9; font-size: 18px; }

.ks-tile-osc { background: linear-gradient(145deg, #1a1a22, #15202a), radial-gradient(circle at 70% 40%, #0858A044, transparent 50%); }
.ks-tile-sa { background: linear-gradient(145deg, #121820, #203040); }
.ks-tile-sg { background: linear-gradient(145deg, #181818, #302028); }
.ks-tile-emu { background: linear-gradient(145deg, #101418, #182838); }
.ks-tile-sw { background: linear-gradient(145deg, #141414, #242030); }
.ks-tile-dc { background: linear-gradient(145deg, #101010, #282018); }
.ks-tile-na { background: linear-gradient(145deg, #12161c, #1c2838); }
.ks-tile-dmm { background: linear-gradient(145deg, #141210, #2a2018); }

/* Latest products */
.ks-product-card {
  background: #fff;
  border: 1px solid var(--ks-border);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ks-product-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.ks-product-card-img {
  aspect-ratio: 16/10;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.ks-product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ks-product-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.ks-product-card p {
  margin: 0 0 16px;
  flex: 1;
  font-size: 14px;
  color: var(--ks-gray);
}
.ks-product-ph {
  width: 100%;
  height: 100%;
  display: block;
}

/* Services */
.ks-service-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(120deg, #0a0a0a 0%, #2a1018 100%);
  color: #fff;
  border-radius: 2px;
}
.ks-service-banner h2 { margin: 0 0 14px; font-size: 32px; }
.ks-service-banner p { margin: 0 0 24px; color: rgba(255,255,255,.8); }

/* Solution finders */
.ks-find-card {
  display: block;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--ks-border);
  transition: border-color .2s, box-shadow .2s;
  height: 100%;
}
.ks-find-card:hover {
  border-color: var(--ks-red);
  box-shadow: 0 8px 24px rgba(233,0,41,.08);
  color: inherit;
}
.ks-find-card .ks-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ks-red);
}
.ks-find-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}
.ks-find-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ks-gray);
}

/* Explore cards */
.ks-explore-card {
  display: block;
  color: inherit;
}
.ks-explore-card-img {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  margin-bottom: 16px;
  overflow: hidden;
}
.ks-explore-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.ks-explore-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ks-gray);
}

/* News */
.ks-news-list { display: flex; flex-direction: column; gap: 0; }
.ks-news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ks-border);
  color: inherit;
}
.ks-news-item:hover { color: inherit; }
.ks-news-item:hover h3 { color: var(--ks-red); }
.ks-news-thumb {
  aspect-ratio: 16/10;
  background: #eee;
  overflow: hidden;
}
.ks-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ks-news-meta {
  font-size: 13px;
  color: var(--ks-mid);
  margin-bottom: 6px;
}
.ks-news-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  transition: color .2s;
}
.ks-news-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ks-gray);
}

/* Waveform divider */
.ks-wave {
  height: 48px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24c40-20 80-20 120 0s80 20 120 0 80-20 120 0 80 20 120 0 80-20 120 0 80 20 120 0 80-20 120 0 80 20 120 0 80-20 120 0 80 20 120 0v24H0z' fill='%230858A0'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

/* ========== Footer ========== */
.ks-footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 56px 0 0;
  font-size: 14px;
}
.ks-footer a { color: #bbb; }
.ks-footer a:hover { color: #fff; }
.ks-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.ks-footer h4 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.ks-footer ul li { margin-bottom: 10px; }
.ks-footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
}
.ks-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ks-footer-logo { margin-bottom: 16px; }
.ks-footer-logo img { height: 24px; }

/* Inner pages */
.ks-main { flex: 1; }
.ks-breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--ks-mid);
  border-bottom: 1px solid var(--ks-border);
  background: var(--ks-light);
}
.ks-breadcrumb a { color: var(--ks-gray); }
.ks-breadcrumb a:hover { color: var(--ks-red); }
.ks-bc-sep { margin: 0 8px; color: #ccc; }

.ks-page {
  padding: 40px 0 64px;
}
.ks-page-narrow {
  max-width: 960px;
}
.ks-page-title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
}
.ks-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ks-border);
}
.ks-list-item-text {
  grid-template-columns: 1fr;
}
.ks-list-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  background: #f3f4f6;
  overflow: hidden;
}
.ks-list-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3f4f6;
}
.ks-list-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}
.ks-list-item h3 a:hover { color: var(--ks-red); }
.ks-list-desc {
  margin: 0 0 12px;
  color: var(--ks-gray);
  font-size: 15px;
}
.ks-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ks-mid);
}

.ks-show-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}
.ks-show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ks-border);
  font-size: 14px;
  color: var(--ks-mid);
}
.ks-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.ks-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}
.ks-content p { margin: 0 0 1em; }
.ks-content table {
  width: 100% !important;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.ks-content iframe,
.ks-content video {
  max-width: 100%;
}
.ks-content .product,
.ks-content .product-detail,
.ks-content .fl,
.ks-content .fr {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}
.ks-content .product-img,
.ks-content .product-des {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}
.ks-content h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}
.ks-about-block {
  margin: 0 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ks-border);
}
.ks-about-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.ks-vision {
  padding: 28px 24px;
  background: linear-gradient(145deg, #0d1520, #1a3048);
  color: #fff;
  text-align: center;
}
.ks-vision-line {
  margin: 0 0 10px !important;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff !important;
}
.ks-vision-line:last-child { margin-bottom: 0 !important; }
.ks-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ks-contact-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}
.ks-contact-list li span {
  color: var(--ks-mid);
}
.ks-contact-list a { color: var(--ks-red); }
.ks-plain-list {
  margin: 0;
  padding-left: 1.2em;
}
.ks-plain-list li { margin: 0 0 10px; }
.ks-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ks-gallery-item {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f2f2f2;
}
.ks-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}
@media (max-width: 640px) {
  .ks-contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.ks-prevnext {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ks-border);
}
.ks-prevnext p { margin: 0 0 10px; font-size: 15px; }
.ks-related { margin-top: 48px; }
.ks-related-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
}

/* 正文错标签外溢时，底部区块仍保持左右边距 */
.ks-main > .ks-inquiry,
.ks-main > .ks-prevnext,
.ks-main > .ks-related,
.ks-main > .ks-side,
.ks-main > .clear {
  width: 100%;
  max-width: var(--ks-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.ks-side {
  position: sticky;
  top: calc(var(--ks-header-h) + 16px);
}
.ks-side-box {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--ks-border);
}
.ks-side-box h4 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ks-red);
  font-size: 16px;
}
.ks-side-hit {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.ks-side-hit img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  flex-shrink: 0;
}
.ks-side-hit a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.ks-layout-2 {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.xrpagination {
  margin-top: 32px;
}
.xrpagination > .pagination,
.xrpagination ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xrpagination > .pagination > li,
.xrpagination ul.pagination > li {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.xrpagination a,
.xrpagination span,
.xrpagination > .pagination > li > a,
.xrpagination > .pagination > li > span,
.xrpagination ul.pagination > li > a,
.xrpagination ul.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ks-border);
  background: #fff;
  color: var(--ks-dark);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}
.xrpagination .active > a,
.xrpagination .active > span,
.xrpagination li.active > a,
.xrpagination li.active > span,
.xrpagination a:hover {
  background: var(--ks-red);
  border-color: var(--ks-red);
  color: #fff !important;
}

.ks-scrolltop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 52px;
  height: auto;
  padding: 10px 12px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--ks-red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  z-index: 100;
  font-size: 16px;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.ks-scrolltop-txt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ks-scrolltop.is-show { display: flex; }

/* Promo modal (optional) */
.ks-promo {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  padding: 24px;
}
.ks-promo.is-open { display: flex; }
.ks-promo-card {
  position: relative;
  width: min(520px, 100%);
  background: #000;
  color: #fff;
  overflow: hidden;
}
.ks-promo-card-bg {
  min-height: 280px;
  padding: 36px 32px 80px;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(233,0,41,.5), transparent 50%),
    linear-gradient(160deg, #0a0a0a, #1a0a10);
}
.ks-promo-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.ks-promo-line {
  width: 48px;
  height: 3px;
  background: var(--ks-red);
  margin-bottom: 16px;
}
.ks-promo-card p { margin: 0 0 8px; font-size: 15px; color: rgba(255,255,255,.9); }
.ks-promo-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ks-red);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}
.ks-promo-foot {
  padding: 20px 32px;
  background: #0a0a0a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

/* Tablet / Mobile */
@media (max-width: 1024px) {
  .ks-container { padding: 0 20px; }
  .ks-grid-4, .ks-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-grid-3 { grid-template-columns: 1fr 1fr; }
  .ks-split, .ks-service-banner, .ks-layout-2 { grid-template-columns: 1fr; gap: 28px; }
  .ks-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ks-side { position: static; }
  /* backdrop-filter 会使内部 fixed 相对页头定位，菜单高度被压成约 20px */
  .ks-header {
    top: 0;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .ks-header-inner {
    gap: 8px;
    overflow: visible;
  }
  .ks-logo img { height: 32px; max-width: 160px; }
  .ks-mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .ks-quote-btn {
    min-height: 40px;
    padding: 8px 12px;
  }
  .ks-quote-btn span { display: none; }
  .ks-topbar { display: none; }
  .ks-search-panel {
    top: var(--ks-header-h);
    right: 12px;
    left: 12px;
    width: auto;
  }

  .ks-nav {
    display: none !important;
    flex: none;
    height: auto !important;
    min-width: 0;
  }
  .ks-nav.is-open {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ks-header-h);
    bottom: auto;
    height: calc(100vh - var(--ks-header-h)) !important;
    height: calc(100dvh - var(--ks-header-h)) !important;
    max-height: calc(100vh - var(--ks-header-h));
    max-height: calc(100dvh - var(--ks-header-h));
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 220;
  }
  .ks-nav > ul {
    display: block !important;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 24px;
    height: auto !important;
    min-height: 0;
    gap: 0;
  }
  .ks-nav-item {
    display: block !important;
    position: relative;
  }
  .ks-nav-item > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    min-height: 48px;
    height: auto !important;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  .ks-nav-item > a .ks-caret {
    border-top: 0;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    border-right: 0;
    margin-left: 8px;
    transition: transform .2s;
  }
  .ks-nav-item.is-open > a .ks-caret {
    transform: rotate(90deg);
  }
  .ks-nav-mega { position: relative; }
  .ks-megamenu::before { display: none !important; }
  .ks-megamenu {
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 0 8px !important;
    margin: 0 !important;
    transform: none !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    min-width: 0 !important;
    background: #f7f7f7 !important;
    z-index: auto !important;
    overflow: visible !important;
  }
  .ks-nav-item.is-open > .ks-megamenu {
    display: block !important;
  }
  .ks-cascade {
    display: block !important;
    min-height: 0 !important;
    max-width: none !important;
  }
  .ks-cascade-slot { display: none !important; }
  .ks-cascade-col.ks-cascade-l2 {
    width: 100% !important;
    border-right: 0 !important;
  }
  .ks-cascade-panel {
    display: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: #efefef !important;
  }
  .ks-cascade-item.is-open > .ks-cascade-panel {
    display: block !important;
  }
  .ks-cascade-item > a {
    padding: 12px 16px 12px 28px !important;
    font-size: 15px !important;
    min-height: 44px;
  }
  .ks-cascade-l3-panel .ks-cascade-item > a {
    padding-left: 40px !important;
    background: transparent !important;
  }
  .ks-cascade-l4-panel .ks-cascade-item > a {
    padding-left: 52px !important;
  }
  .ks-cascade-l5-panel .ks-cascade-item > a {
    padding-left: 64px !important;
  }
  .ks-cascade-l3-panel .ks-cascade-item.is-active > a,
  .ks-cascade-l3-panel .ks-cascade-item:hover > a {
    color: var(--ks-red) !important;
  }
  .ks-cascade-all {
    margin: 4px 16px 8px !important;
    padding: 12px 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
  }
  .ks-megamenu { padding: 0 !important; }
  .ks-list-item { grid-template-columns: 140px 1fr; gap: 16px; }
  .ks-news-item { grid-template-columns: 120px 1fr; }

  .ks-hero-slider { min-height: 0; }
  .ks-hero-slide {
    min-height: 420px;
    padding: 64px 0 88px;
  }
  .ks-hero-title {
    font-size: clamp(26px, 7vw, 36px);
    max-width: none;
  }
  .ks-hero-desc {
    font-size: 15px;
    max-width: none;
    margin-bottom: 22px;
  }
  .ks-section-title { font-size: clamp(22px, 5.5vw, 30px); }
  .ks-section-sub { font-size: 14px; }
  .ks-show-title { font-size: clamp(22px, 5.5vw, 30px); }
  .ks-breadcrumb {
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .ks-inquiry { padding: 20px 16px 24px; margin: 28px 0 8px; }
  .ks-inquiry-btn {
    width: 100%;
    min-height: 46px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .ks-container { padding: 0 20px; }
  .ks-grid-4, .ks-prod-grid, .ks-grid-3, .ks-grid-2 { grid-template-columns: 1fr; }
  .ks-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .ks-hero-slide { min-height: 380px; padding: 48px 0 76px; }
  .ks-list-item { grid-template-columns: 1fr; }
  .ks-news-item { grid-template-columns: 1fr; gap: 12px; }
  .ks-band { padding: 36px 0; }
  .ks-service-banner { padding: 22px; }
  .ks-page { padding: 28px 0 48px; }
  .ks-main > .ks-inquiry,
  .ks-main > .ks-prevnext,
  .ks-main > .ks-related,
  .ks-main > .ks-side,
  .ks-main > .clear {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ks-logo img { height: 28px; max-width: 140px; }
  .ks-icon-btn { width: 36px; height: 36px; }
  .ks-header-actions { gap: 6px; }
  .ks-find-card,
  .ks-explore-card,
  .ks-product-card { min-width: 0; }
  .ks-scrolltop { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* 产品询价表单 */
.ks-inquiry {
  margin: 40px 0 8px;
  padding: 28px 24px 32px;
  background: #f5f5f5;
}
.ks-inquiry-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.ks-inquiry-desc {
  margin: 0 0 20px;
  color: var(--ks-gray);
  font-size: 14px;
}
.ks-inquiry-row {
  margin-bottom: 16px;
}
.ks-inquiry-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.ks-inquiry-row input,
.ks-inquiry-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
}
.ks-inquiry-row input:focus,
.ks-inquiry-row textarea:focus {
  border-color: var(--ks-red);
}
.ks-inquiry-row textarea {
  resize: vertical;
  min-height: 110px;
}
.ks-inquiry-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 22px;
  border: 0;
  background: var(--ks-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ks-inquiry-btn:hover { background: var(--ks-red-hover); }
.ks-inquiry-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.ks-inquiry-msg {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
}
.ks-inquiry-msg.is-ok { background: #e8f7ee; color: #0a7a38; }
.ks-inquiry-msg.is-err { background: #fdecef; color: #c0392b; }

/* ===== Product detail (not article) ===== */
.ks-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.ks-btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,.08);
}
.ks-prod-hero {
  background: linear-gradient(135deg, #0b0b0d 0%, #1a1218 48%, #121820 100%);
  color: #e8e8e8;
  padding: 48px 0 56px;
}
.ks-prod-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
}
.ks-prod-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ks-prod-hero-title {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  color: #f5f5f5;
}
.ks-prod-hero-summary {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 36em;
}
.ks-prod-hero-points {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.ks-prod-hero-points li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.ks-prod-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ks-red);
}
.ks-prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ks-prod-hero-media { min-width: 0; }
.ks-prod-hero-figure {
  margin: 0;
  background: #0f0f12;
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.ks-prod-hero-figure img {
  max-height: 340px;
  width: auto;
  object-fit: contain;
  margin: 0;
}
.ks-prod-hero-ph {
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 40%, rgba(233,0,41,.25), transparent 45%),
    linear-gradient(145deg, #1a1a1a, #15202a);
}
.ks-prod-tabs {
  position: sticky;
  top: var(--ks-header-h);
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--ks-border);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.ks-prod-tabs-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ks-prod-tabs-inner::-webkit-scrollbar { display: none; }
.ks-prod-tab {
  flex: 0 0 auto;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ks-gray);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ks-prod-tab:hover { color: var(--ks-red); }
.ks-prod-tab.is-active {
  color: var(--ks-red);
  border-bottom-color: var(--ks-red);
}
.ks-prod-tab-cta {
  margin-left: auto;
  color: var(--ks-red);
}
.ks-prod-tab-cta:hover { color: var(--ks-red-hover); }
.ks-prod-page { padding-top: 8px; }
.ks-prod-main { max-width: 960px; }
.ks-prod-section {
  padding: 40px 0 8px;
  scroll-margin-top: calc(var(--ks-header-h) + 52px);
}
.ks-prod-sec-title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ks-red);
  line-height: 1.3;
}
.ks-prod-sec-title span {
  display: inline-block;
  padding-left: 14px;
  border-left: 4px solid var(--ks-red);
}
.ks-prod-body {
  font-size: 16px;
  line-height: 1.8;
}
.ks-prod-body .ks-prod-bullets,
.ks-prod-body ul {
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}
.ks-prod-body .ks-prod-bullets li,
.ks-prod-body ul li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.ks-prod-body .ks-prod-bullets li::before,
.ks-prod-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ks-red);
}
.ks-prod-body table {
  display: table;
  width: 100% !important;
  border: 1px solid var(--ks-border);
  margin: 16px 0 24px;
  font-size: 14px;
}
.ks-prod-body table th,
.ks-prod-body table td {
  border: 1px solid var(--ks-border);
  padding: 10px 12px;
  vertical-align: top;
}
.ks-prod-body table th {
  background: #f7f8fa;
  font-weight: 600;
}
.ks-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}
.ks-metric-card {
  background: #f7fafc;
  border: 1px solid var(--ks-border);
  border-top: 3px solid var(--ks-red);
  padding: 16px 18px;
  min-height: 88px;
}
.ks-metric-label {
  font-size: 13px;
  line-height: 1.4;
  color: #667788;
  margin-bottom: 8px;
}
.ks-metric-value {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ks-dark);
  word-break: break-word;
}
.ks-metric-group {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 8px 2px 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ks-red);
  border-bottom: 1px solid #e5eef5;
}
@media (max-width: 900px) {
  .ks-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ks-metrics-grid {
    grid-template-columns: 1fr;
  }
  .ks-metric-value {
    font-size: 16px;
  }
}
.ks-spec-wrap {
  overflow-x: auto;
  margin: 8px 0 28px;
  border: 1px solid var(--ks-border);
  border-radius: 4px;
}
.ks-spec-table {
  display: table;
  width: 100% !important;
  border-collapse: collapse;
  margin: 0 !important;
  border: 0 !important;
  font-size: 15px;
  line-height: 1.55;
}
.ks-spec-table thead th {
  background: var(--ks-red);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  width: auto;
}
.ks-spec-table thead th:first-child {
  width: 28%;
  min-width: 120px;
}
.ks-spec-table tbody th,
.ks-spec-table tbody td {
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--ks-border);
  vertical-align: top;
  text-align: left;
}
.ks-spec-table tbody th {
  width: 28%;
  min-width: 120px;
  background: #f4f8fb;
  color: var(--ks-dark);
  font-weight: 600;
  white-space: nowrap;
}
.ks-spec-table tbody td {
  background: #fff;
  color: #333;
  word-break: break-word;
}
.ks-spec-table tbody tr:nth-child(even) td {
  background: #fafcfd;
}
.ks-spec-table tbody tr:last-child th,
.ks-spec-table tbody tr:last-child td {
  border-bottom: 0;
}
.ks-spec-table tr.ks-spec-group th {
  background: #e8f1f7;
  color: var(--ks-red);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-bottom: 1px solid #d5e4ee;
  white-space: normal;
}
@media (max-width: 640px) {
  .ks-spec-table,
  .ks-spec-table tbody th,
  .ks-spec-table thead th:first-child {
    font-size: 14px;
  }
  .ks-spec-table tbody th {
    white-space: normal;
    width: 36%;
    min-width: 96px;
  }
  .ks-spec-table thead th,
  .ks-spec-table tbody th,
  .ks-spec-table tbody td {
    padding: 10px 12px;
  }
}
.ks-prod-body img {
  display: block;
  margin: 20px auto;
  max-width: min(100%, 720px);
  background: #fafafa;
  border: 1px solid var(--ks-border);
  padding: 8px;
}
.ks-prod-related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ks-border);
}
.ks-prod-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ks-prod-related-head .ks-related-title { margin: 0; }
.ks-prod-related-more {
  font-size: 14px;
  color: var(--ks-red);
  font-weight: 600;
}
.ks-prod-related-more:hover { color: var(--ks-red-hover); }

/* 典型应用：普通文本，无卡片外框 */
#ks-sec-apps .ks-prod-bullets {
  display: block;
  margin-top: 8px;
}
#ks-sec-apps .ks-prod-bullets li {
  margin: 0;
  padding: 8px 0 8px 18px;
  border: 0;
  background: transparent;
  border-bottom: 0;
  font-weight: 400;
  color: var(--ks-dark);
  line-height: 1.7;
}
#ks-sec-apps .ks-prod-bullets li::before {
  top: 16px;
  transform: none;
  left: 0;
}

@media (max-width: 900px) {
  .ks-prod-hero { padding: 32px 0 36px; }
  .ks-prod-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ks-prod-hero-media { order: -1; }
  .ks-prod-hero-figure { min-height: 200px; padding: 12px; }
  .ks-prod-hero-figure img { max-height: 240px; }
  .ks-prod-sec-title { font-size: 22px; }
  .ks-prod-tab { padding: 12px 14px; }
  .ks-prod-tab-cta { margin-left: 0; }
}

/* ===== Partners / 诚招合作伙伴 ===== */
.ks-partner-page .ks-show-title {
  margin-bottom: 12px;
}
.ks-partner-hero {
  max-width: 760px;
  margin-bottom: 36px;
}
.ks-partner-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ks-red);
}
.ks-partner-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ks-gray);
}
.ks-partner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 40px;
}
.ks-partner-card {
  padding: 24px 22px 26px;
  background: var(--ks-light);
  border-top: 3px solid var(--ks-red);
}
.ks-partner-card-num {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ks-red);
}
.ks-partner-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ks-dark);
}
.ks-partner-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ks-gray);
}
.ks-partner-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.ks-partner-form-wrap {
  padding: 28px 24px 32px;
  background: #f5f5f5;
}
.ks-partner-aside {
  padding: 28px 24px;
  border: 1px solid var(--ks-border);
  background: #fff;
}
.ks-partner-aside h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.ks-partner-aside-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ks-gray);
}
.ks-partner-aside .ks-contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
@media (max-width: 900px) {
  .ks-partner-cards {
    grid-template-columns: 1fr;
  }
  .ks-partner-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ks-partner-hero { margin-bottom: 28px; }
  .ks-partner-lead { font-size: 15px; }
  .ks-partner-form-wrap,
  .ks-partner-aside { padding: 22px 18px 26px; }
}
