/* 北元科技 · 企业站主题 — 亮/暗双主题 */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090d;
  --bg-elev: #0e1218;
  --bg-soft: #141a22;
  --bg-nav: rgba(7, 9, 13, .72);
  --bg-nav-solid: rgba(7, 9, 13, .96);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef2f7;
  --muted: #8b96a8;
  --content-text: #d5dde8;
  --content-bg: #0e1218;
  --content-code-bg: rgba(255, 255, 255, .06);
  --brand: #2fd4a6;
  --brand-2: #5ae4c0;
  --brand-soft: rgba(47, 212, 166, .12);
  --warn: #e8b86d;
  --btn-primary-fg: #04140f;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --mesh-a: rgba(47, 212, 166, .12);
  --mesh-b: rgba(88, 120, 255, .08);
  --hero-scrim: rgba(7, 9, 13, .88);
  --hero-scrim-mid: rgba(7, 9, 13, .45);
  --hero-scrim-end: rgba(7, 9, 13, .2);
  --hero-fade: rgba(7, 9, 13, .85);
  --about-panel: linear-gradient(160deg, #121820, #0c1016);
  --overlay-soft: rgba(255, 255, 255, .04);
  --overlay-mid: rgba(255, 255, 255, .035);
  --overlay-hover: rgba(255, 255, 255, .05);
  --radius: 18px;
  --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 72px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f9;
  --bg-elev: #ffffff;
  --bg-soft: #e8edf3;
  --bg-nav: rgba(255, 255, 255, .82);
  --bg-nav-solid: rgba(255, 255, 255, .97);
  --line: rgba(15, 23, 42, .1);
  --line-strong: rgba(15, 23, 42, .18);
  --text: #0f172a;
  --muted: #5b677a;
  --content-text: #1e293b;
  --content-bg: #ffffff;
  --content-code-bg: rgba(15, 23, 42, .05);
  --brand: #0f9f78;
  --brand-2: #0d8a68;
  --brand-soft: rgba(15, 159, 120, .12);
  --warn: #b45309;
  --btn-primary-fg: #04140f;
  --shadow: 0 20px 50px rgba(15, 23, 42, .1);
  --mesh-a: rgba(15, 159, 120, .1);
  --mesh-b: rgba(59, 100, 200, .06);
  --hero-scrim: rgba(244, 246, 249, .88);
  --hero-scrim-mid: rgba(244, 246, 249, .45);
  --hero-scrim-end: rgba(244, 246, 249, .15);
  --hero-fade: rgba(244, 246, 249, .9);
  --about-panel: linear-gradient(160deg, #eef6f3, #e4ebe8);
  --overlay-soft: rgba(15, 23, 42, .03);
  --overlay-mid: rgba(15, 23, 42, .025);
  --overlay-hover: rgba(15, 23, 42, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--mesh-a), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, var(--mesh-b), transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .25s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--text);
}

.bp-shell { min-height: 100vh; }
.bp-wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ambient mesh */
.bp-mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 35%, transparent) 70%, var(--bg)),
    radial-gradient(700px 400px at 50% 0%, var(--brand-soft), transparent 70%);
}
.bp-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .bp-grain { opacity: .02; }

/* NAV */
.bp-nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(18px) saturate(140%);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--line);
}
.bp-nav-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.bp-brand {
  display: flex; align-items: center;
  flex: 0 0 auto;
}
.bp-brand img {
  height: 36px;
  width: auto;
  flex: 0 0 auto;
  border-radius: 8px;
  background: transparent !important;
}
/* CMS 自定义 logo 若仍带白底：暗色下去白底、亮色保对比 */
html[data-theme="dark"] .bp-brand img:not([src*="logo-dark"]):not([src*="logo-light"]) {
  mix-blend-mode: screen;
  filter: contrast(1.05);
}
html[data-theme="light"] .bp-brand img:not([src*="logo-dark"]):not([src*="logo-light"]) {
  mix-blend-mode: multiply;
}

.bp-menu,
.bp-menu.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.bp-menu::-webkit-scrollbar { display: none; }
.bp-menu > li,
.bp-menu > .nav-item {
  position: relative;
  flex: 0 0 auto;
  width: auto !important;
  float: none !important;
  display: block;
}
.bp-menu > li > a,
.bp-menu .nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
  padding: .5rem .62rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  width: auto !important;
  flex-shrink: 0;
}
/* CMS 菜单图标：缩小 + 去白底圆圈 */
.bp-menu .nav-link svg.bi,
.bp-menu .nav-link svg,
.bp-menu .dropdown-item svg.bi,
.bp-menu .dropdown-item svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.15em;
  overflow: visible;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.bp-menu .nav-link img,
.bp-menu .dropdown-item img {
  width: 1.05rem !important;
  height: 1.05rem !important;
  object-fit: contain;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .bp-menu .nav-link img,
html[data-theme="dark"] .bp-menu .dropdown-item img {
  mix-blend-mode: screen;
  filter: contrast(1.05);
}
html[data-theme="light"] .bp-menu .nav-link img,
html[data-theme="light"] .bp-menu .dropdown-item img {
  mix-blend-mode: multiply;
}
/* bootstrap icons sprite 若带圆形底：用当前文字色描边感 */
.bp-menu .nav-link .bi,
.bp-menu .dropdown-item .bi {
  color: inherit;
  fill: currentColor;
}
.bp-menu > li > a:hover,
.bp-menu > li.active > a,
.bp-menu .nav-item.active > .nav-link {
  color: var(--text);
  background: var(--overlay-hover);
}
.bp-menu .dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 180px;
  padding: .45rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.bp-menu .dropdown:hover > .dropdown-menu,
.bp-menu .dropdown.show > .dropdown-menu { display: block; }
.bp-menu .dropdown-item {
  display: block;
  padding: .55rem .8rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: .9rem;
}
.bp-menu .dropdown-item:hover,
.bp-menu .dropdown-item.active {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.bp-nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
  margin-left: 0;
  position: relative;
  z-index: 2;
}
.bp-search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 248px;
  max-width: 248px;
  background: var(--overlay-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.bp-search:focus-within {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.bp-search input {
  background: transparent; border: 0; outline: 0;
  color: var(--text);
  padding: .5rem .2rem .5rem .9rem;
  width: 168px;
  min-width: 168px;
  max-width: none;
  flex: 1 1 auto;
  font: inherit;
}
.bp-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .5rem .65rem .5rem .35rem;
  cursor: pointer;
  font: inherit;
  flex: 0 0 auto;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  line-height: 1.2;
}
.bp-search button:hover { color: var(--brand); }

.bp-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--overlay-soft);
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
  flex: 0 0 auto;
  padding: 0;
}
.bp-theme-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: var(--brand-soft);
  color: var(--brand-2);
}

.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.bp-btn:active { transform: scale(.98); }
.bp-btn-primary {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 75%, #000));
  color: var(--btn-primary-fg) !important;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 25%, transparent);
}
.bp-btn-primary:hover {
  box-shadow: 0 14px 40px color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--btn-primary-fg) !important;
}
.bp-btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text) !important;
}
.bp-btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--overlay-soft);
}

.bp-nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--overlay-soft);
  cursor: pointer;
  padding: 0;
}
.bp-nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: var(--text); border-radius: 2px;
}

/* HERO / carousel */
.bp-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
}
.bp-hero .carousel,
.bp-hero .carousel-inner,
.bp-hero .carousel-item { height: 100%; min-height: min(88vh, 820px); }
.bp-hero .carousel-item {
  position: relative;
  background: var(--bg-soft);
}
.bp-hero .carousel-item > a {
  display: block; height: 100%;
}
.bp-hero .carousel-item img {
  width: 100%; height: min(88vh, 820px);
  object-fit: cover;
  filter: brightness(.55) saturate(1.05);
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}
html[data-theme="light"] .bp-hero .carousel-item img {
  filter: brightness(.72) saturate(1.05);
}
.bp-hero .carousel-item.active img { transform: scale(1); }
.bp-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--hero-scrim) 0%, var(--hero-scrim-mid) 48%, var(--hero-scrim-end) 100%),
    linear-gradient(180deg, transparent 40%, var(--hero-fade));
  pointer-events: none;
}
.bp-hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  display: flex; align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}
.bp-hero-copy .bp-wrap {
  padding: 0 0 5.5rem;
  max-width: min(720px, calc(100% - 2.5rem));
  margin-left: max(1.25rem, calc((100% - 1180px) / 2));
  pointer-events: auto;
}
.bp-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand-2);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.bp-kicker::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--brand-soft);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-soft); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 5%, transparent); }
}
.bp-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: .9rem;
  letter-spacing: -.04em;
}
.bp-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin: 0 0 1.6rem;
}
.bp-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.bp-hero .carousel-caption { display: none !important; }
.bp-hero .carousel-indicators { bottom: 1.5rem; z-index: 3; }
.bp-hero .carousel-indicators li {
  width: 28px; height: 3px; border-radius: 99px;
  background: color-mix(in srgb, var(--text) 25%, transparent); border: 0; opacity: 1;
}
.bp-hero .carousel-indicators .active { background: var(--brand); }
.bp-hero .carousel-control-prev,
.bp-hero .carousel-control-next {
  width: 56px; opacity: .7; z-index: 3;
}
.bp-hero .carousel-control-prev:hover,
.bp-hero .carousel-control-next:hover { opacity: 1; }

/* sections */
.bp-section {
  position: relative; z-index: 1;
  padding: 5.5rem 0;
}
.bp-section-head {
  text-align: left;
  margin-bottom: 2.5rem;
  max-width: 40rem;
}
.bp-section-head .bp-kicker { margin-bottom: .7rem; }
.bp-section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: .7rem;
}
.bp-section-head p { color: var(--muted); margin: 0; }

.bp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.bp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.bp-product {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--overlay-mid), var(--overlay-soft));
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
  height: 100%;
}
.bp-product:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  box-shadow: var(--shadow);
}
.bp-product-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.bp-product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.bp-product:hover .bp-product-media img { transform: scale(1.06); }
.bp-product-body { padding: 1.15rem 1.2rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.bp-product-body h3 {
  font-size: 1.05rem;
  margin-bottom: .45rem;
}
.bp-product-body p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-link {
  color: var(--brand-2) !important;
  font-weight: 600;
  font-size: .9rem;
}
.bp-link::after { content: " →"; transition: margin .25s; }
.bp-link:hover::after { margin-left: .2rem; }

.bp-about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 2.5rem;
  align-items: start;
}
.bp-about > * { min-width: 0; }
.bp-about-panel {
  position: relative;
  border-radius: 28px;
  padding: 2.2rem;
  background:
    radial-gradient(500px 240px at 20% 0%, var(--brand-soft), transparent 60%),
    var(--about-panel);
  border: 1px solid var(--line);
  min-height: 320px;
  overflow: hidden;
}
.bp-about-panel::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%);
}
.bp-about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: 1.8rem; position: relative; z-index: 1;
}
.bp-stat {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--overlay-soft);
  border: 1px solid var(--line);
}
.bp-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--brand-2);
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.bp-stat span {
  color: var(--muted);
  font-size: .85rem;
  word-break: break-all;
  line-height: 1.4;
}
.bp-about-copy p {
  color: var(--muted);
  margin: 0;
}

.bp-news {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--overlay-soft);
  transition: border-color .3s, transform .4s var(--ease), background .3s;
  height: auto;
  min-width: 0;
  margin-bottom: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.bp-news:hover {
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
  transform: translateY(-4px);
  background: var(--overlay-mid);
}
.bp-news img {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-soft);
  flex: 0 0 auto;
}
.bp-news-body {
  min-width: 0;
  overflow: hidden;
}
.bp-news h3 {
  font-size: 1.05rem;
  margin: 0 0 .4rem;
  line-height: 1.35;
  word-break: break-word;
}
.bp-news p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
  text-indent: 0 !important;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-more {
  display: flex; justify-content: center;
  margin-top: 2.2rem;
}

/* inner pages */
.bp-page { position: relative; z-index: 1; padding: 2rem 0 4rem; }
.bp-crumb {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  color: var(--muted); font-size: .9rem;
}
.bp-crumb li:not(:last-child)::after {
  content: "/"; margin-left: .5rem; opacity: .45;
}
.bp-crumb a { color: var(--muted); }
.bp-crumb a:hover { color: var(--brand-2); }
.bp-crumb .active { color: var(--text); }

.bp-article-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}
.bp-article-head h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: .75rem;
}
.bp-meta { color: var(--muted); font-size: .9rem; }
.bp-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--content-bg);
  box-shadow: var(--shadow);
}

/* CMS 正文：跟随主题，压制内联白底/浅灰字/冲突色 */
.bp-article #content,
#content.bp-cms,
.bp-article #content *,
#content.bp-cms * {
  color: var(--content-text) !important;
  font-family: var(--font) !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.bp-article #content,
#content.bp-cms {
  color: var(--content-text) !important;
  font-size: 1.02rem;
  line-height: 1.8;
  word-break: break-word;
}
.bp-article #content p,
.bp-article #content li,
.bp-article #content td,
.bp-article #content th,
.bp-article #content span,
.bp-article #content div,
.bp-article #content font {
  color: var(--content-text) !important;
  background: transparent !important;
  background-color: transparent !important;
}
.bp-article #content a {
  color: var(--brand-2) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bp-article #content a:hover { color: var(--brand) !important; }
.bp-article #content h1,
.bp-article #content h2,
.bp-article #content h3,
.bp-article #content h4,
.bp-article #content h5,
.bp-article #content h6,
.bp-article #content strong,
.bp-article #content b {
  color: var(--text) !important;
  background: transparent !important;
}
.bp-article #content h2,
.bp-article #content h3 { margin-top: 1.5rem; margin-bottom: .6rem; }
.bp-article #content p { margin: 0 0 1rem; }
.bp-article #content ul,
.bp-article #content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}
.bp-article #content li { margin: .25rem 0; }
.bp-article #content img {
  border-radius: 14px;
  margin: 1rem auto;
  max-width: 100% !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}
.bp-article #content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 1rem 0;
  background: transparent !important;
}
.bp-article #content th,
.bp-article #content td {
  border: 1px solid var(--line) !important;
  padding: .55rem .7rem;
  background: transparent !important;
}
.bp-article #content th {
  background: var(--content-code-bg) !important;
  color: var(--text) !important;
}
.bp-article #content blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--content-code-bg) !important;
  color: var(--content-text) !important;
}
.bp-article #content pre,
.bp-article #content code {
  background: var(--content-code-bg) !important;
  color: var(--content-text) !important;
  border-radius: 8px;
}
.bp-article #content pre { padding: .9rem 1rem; overflow-x: auto; }
.bp-article #content code { padding: .1rem .35rem; }
/* 保留有意义的强调色时仍保证可读：过浅/过深内联色统一压掉 */
html[data-theme="dark"] .bp-article #content [style*="color:#fff"],
html[data-theme="dark"] .bp-article #content [style*="color: #fff"],
html[data-theme="dark"] .bp-article #content [style*="color:#ffffff"],
html[data-theme="dark"] .bp-article #content [style*="color:white"],
html[data-theme="light"] .bp-article #content [style*="color:#000"],
html[data-theme="light"] .bp-article #content [style*="color: #000"],
html[data-theme="light"] .bp-article #content [style*="color:#000000"],
html[data-theme="light"] .bp-article #content [style*="color:black"] {
  color: var(--content-text) !important;
}

.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 1.5rem;
  align-items: start;
}
.bp-layout > * { min-width: 0; }
.bp-side {
  max-width: 100%;
  overflow: hidden;
}
.bp-side .bp-product { margin-bottom: 1rem; }
.bp-side .bp-product-media { aspect-ratio: 4/3; }
.bp-side .bp-product-body { padding: .9rem 1rem 1rem; }
.bp-side .bp-product-body h3 { font-size: .95rem; }

.bp-attrs {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--overlay-soft);
}
.bp-attrs h4 { margin-bottom: .8rem; }
.bp-attr-row {
  display: flex; gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.bp-attr-row:last-child { border: 0; }

.bp-actions {
  display: flex; justify-content: center; gap: .8rem;
  margin: 2rem 0;
}
.bp-pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}
.bp-pager a { color: var(--brand-2); }

/* pagination bootstrap override */
.pagination {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center; list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.pagination li a,
.pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted) !important;
  background: var(--overlay-soft);
}
.pagination li.active span,
.pagination li a:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand-2) !important;
  background: var(--brand-soft);
}

/* footer */
.bp-footer {
  position: relative; z-index: 1;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 55%, #000 8%));
  padding: 3.5rem 0 1.5rem;
  clear: both;
  overflow: hidden;
}
.bp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 2rem 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.bp-footer-grid > div {
  min-width: 0;
  position: relative;
  z-index: 1;
  float: none !important;
}
.bp-footer h4 {
  font-size: 1.05rem;
  margin: 0 0 .9rem;
  line-height: 1.4;
  position: static;
  float: none !important;
}
.bp-footer p, .bp-footer h6 {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 400;
  margin: 0 0 .45rem;
  line-height: 1.55;
  position: static;
  float: none !important;
  clear: none;
}
.bp-footer img[alt],
.bp-footer .bp-qr {
  height: 110px; width: 110px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
  display: block;
}
.bp-links {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  clear: both;
}
.bp-links a { color: var(--muted); font-size: .88rem; }
.bp-copy {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding-top: .5rem;
  clear: both;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}
.bp-copy p {
  margin: .45rem 0 0;
  color: var(--muted);
  float: none !important;
  position: static;
}
.bp-copy a { color: var(--brand-2); }

#liuyanForm {
  max-width: 560px;
  margin: 1.2rem auto 0;
  text-align: left;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
#liuyanForm .form-group { margin-bottom: .9rem; }
#liuyanForm label { display: block; color: var(--muted); margin-bottom: .35rem; font-size: .88rem; }
#liuyanForm .form-control,
#liuyanForm textarea {
  width: 100%;
  background: var(--overlay-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: .7rem .9rem;
  font: inherit;
}
#liuyanForm .btn,
#liuyanForm button {
  background: var(--brand);
  color: var(--btn-primary-fg);
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.2rem;
  font-weight: 650;
  cursor: pointer;
}

/* motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.bp-404 {
  min-height: 55vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.bp-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  background: linear-gradient(135deg, var(--text), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* bootstrap leftovers cleanup */
.navbar, .bg-primary, .bg-light, .bg-secondary, .card, .media, .breadcrumb, .container, .container-fluid {
  background: transparent !important;
}
.card { border: 0; }
.text-dark, .text-muted, .text-success, .text-info, .text-primary, .text-white { color: inherit !important; }
.nav-link { color: var(--muted); }
.dropdown-toggle::after { margin-left: .35em; }

@media (max-width: 1200px) {
  .bp-search { width: 232px; max-width: 232px; }
  .bp-search input { width: 156px; min-width: 156px; }
}
@media (max-width: 1100px) {
  .bp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bp-about { grid-template-columns: 1fr; }
  .bp-layout { grid-template-columns: 1fr; }
  .bp-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bp-menu .nav-link { padding: .45rem .48rem; font-size: .86rem; }
  .bp-search { width: 220px; max-width: 220px; }
  .bp-search input { width: 148px; min-width: 148px; padding-left: .8rem; }
  .bp-search button { padding: .45rem .55rem .45rem .3rem; }
  .bp-btn { padding: .55rem .9rem; font-size: .86rem; }
}
@media (max-width: 760px) {
  .bp-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .bp-brand { flex: 1 1 auto; }
  .bp-menu, .bp-search { display: none !important; }
  .bp-nav.is-open .bp-menu,
  .bp-nav.is-open .bp-menu.navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    padding: 1rem;
    gap: .15rem;
    overflow: visible;
    background: var(--bg-nav-solid);
    border-bottom: 1px solid var(--line);
    z-index: 1001;
  }
  .bp-nav.is-open .bp-menu > li,
  .bp-nav.is-open .bp-menu > .nav-item {
    width: 100% !important;
  }
  .bp-nav.is-open .bp-menu .nav-link {
    width: 100% !important;
  }
  .bp-nav.is-open .bp-search {
    display: flex !important;
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: 1rem;
    right: 1rem;
    max-width: none;
    width: auto;
    z-index: 1002;
  }
  .bp-nav.is-open .bp-search input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
  .bp-nav.is-open .bp-menu {
    padding-top: 3.5rem;
  }
  .bp-grid-4, .bp-grid-2 { grid-template-columns: 1fr; }
  .bp-hero-copy .bp-wrap { padding-bottom: 4rem; }
  .bp-footer-grid { grid-template-columns: 1fr; }
  .bp-news { grid-template-columns: 72px minmax(0, 1fr); }
  .bp-article { padding: 1.1rem .9rem 1.5rem; }
}
