/* 诺安红黑主题：品牌变量 + 必要覆盖（布局与动效见 official-effects / official-product-sidebar 等） */

:root {
  --brand-red: #c30319;
  --brand-red-hover: #a00214;
  --brand-red-soft: rgb(195 3 25 / 12%);
  --brand-red-mid: rgb(195 3 25 / 22%);
  --brand-red-border: rgb(195 3 25 / 15%);
  --brand-black: #111928;
  --brand-black-deep: #0a0d14;
  --brand-gray-bg: #f8f9fb;
  --brand-gray-tint: #fdf2f3;

  --color-primary: #c30319;
  --color-blue-dark: #a00214;
  --color-secondary: #111928;

  --home-banner-btn-primary-bg: var(--brand-red);
  --home-banner-btn-primary-color: #fff;
  --home-banner-btn-primary-hover: var(--brand-red-hover);
  --home-banner-btn-ghost-color: var(--brand-black);
  --home-banner-btn-ghost-hover-bg: var(--brand-black);
  --home-banner-dot-active: var(--brand-red);
  --ud-header-height: 5rem;
}

html.dark {
  --home-banner-btn-primary-bg: var(--brand-red);
  --home-banner-btn-primary-color: #fff;
  --home-banner-btn-primary-hover: var(--brand-red-hover);
  --home-banner-dot-active: var(--brand-red);
}

::selection {
  background: var(--brand-red-soft);
  color: var(--brand-black);
}

/* ---- 顶栏 ---- */
.ud-header {
  overflow: visible;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  /* 确保滚动后（ud-header-scrolled）层级高于页面内容，不被遮挡 */
  z-index: 10000;
}

.ud-header.ud-header-scrolled,
body:has(.home-first-screen) .ud-header.ud-header-scrolled {
  background-color: var(--brand-black) !important;
  backdrop-filter: none !important;
  border-bottom: 3px solid var(--brand-red);
  box-shadow:
    0 4px 24px rgb(0 0 0 / 28%),
    0 6px 28px rgb(195 3 25 / 32%);
}

.ud-header.ud-header-scrolled .navbar-logo {
  padding-block: 1.25rem;
}

@media (width >= 1024px) {
  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) {
    background: linear-gradient(
      180deg,
      rgb(17 25 40 / 72%) 0%,
      rgb(195 3 25 / 18%) 55%,
      transparent 100%
    ) !important;
    backdrop-filter: blur(6px);
  }

  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .home-nav-link {
    color: rgb(255 255 255 / 94%);
    text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
  }

  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .home-nav-link:hover,
  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .home-nav-link.text-primary {
    color: #fff !important;
  }

  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .home-nav-toggler {
    background-color: #fff;
  }

  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .home-nav-icon,
  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .locale-switcher-btn {
    color: #fff;
  }

  html:not(.dark) body:has(.home-first-screen) .ud-header:not(.ud-header-scrolled) .home-nav-link:hover {
    color: var(--brand-red);
    opacity: 1;
  }
}

.ud-header.ud-header--subpage:not(.ud-header-scrolled) {
  background: rgb(255 255 255 / 82%) !important;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgb(195 3 25 / 35%);
  box-shadow: 0 4px 16px rgb(195 3 25 / 8%);
}

html.dark .ud-header.ud-header--subpage:not(.ud-header-scrolled) {
  background: rgb(17 25 40 / 82%) !important;
}

body:has(.ud-header--subpage) .subpage-banner {
  padding-top: calc(var(--ud-header-height) + 2rem);
}

body:has(.home-first-screen) .ud-header.ud-header-scrolled .home-nav-link {
  color: rgb(255 255 255 / 92%);
}

body:has(.home-first-screen) .ud-header.ud-header-scrolled .home-nav-link:hover {
  color: var(--brand-red);
  opacity: 1;
}

body:has(.home-first-screen) .ud-header.ud-header-scrolled .home-nav-toggler {
  background-color: #fff;
}

.ud-header.ud-header-scrolled #navbarToggler span {
  background-color: #fff;
}

.ud-header.ud-header-scrolled #navbarCollapse li > a,
.ud-header.ud-header-scrolled .locale-switcher-btn,
.ud-header.ud-header-scrolled #themeSwitcher ~ span,
.ud-header.ud-header-scrolled .loginBtn {
  color: rgb(255 255 255 / 92%);
}

/* 滚动后地球图标 SVG stroke 也强制白色（覆盖 tailwind .sticky 等意外规则） */
.ud-header.ud-header-scrolled .locale-switcher-btn svg {
  stroke: rgb(255 255 255 / 92%);
}

.ud-header.ud-header-scrolled #navbarCollapse li > a:hover,
.ud-header.ud-header-scrolled .locale-switcher-btn:hover,
.ud-header.ud-header-scrolled .loginBtn:hover {
  color: var(--brand-red);
  opacity: 1;
}

.ud-header.ud-header-scrolled #navbarCollapse li .ud-menu-scroll.active,
.ud-header.ud-header-scrolled #navbarCollapse li > a.text-primary {
  color: var(--brand-red);
}

.ud-header .locale-switcher {
  position: relative;
  z-index: 50;
}

.ud-header .locale-switcher-btn {
  position: relative;
  z-index: 51;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ud-header .locale-switcher-menu {
  overscroll-behavior: contain;
}

@media (width >= 1024px) {
  .ud-header #navbarCollapse,
  .ud-header #navbarCollapse > ul {
    overflow: visible;
  }

  .ud-header .submenu-item {
    position: relative;
    z-index: 20;
  }

  .ud-header .submenu-item:hover,
  .ud-header .submenu-item:focus-within {
    z-index: 30;
  }

  .ud-header .submenu {
    z-index: 40;
    margin-top: -0.625rem;
    padding-top: 0.625rem;
    opacity: 1;
    pointer-events: none;
  }

  .ud-header .submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.625rem;
  }

  .ud-header .submenu-item:hover .submenu,
  .ud-header .submenu-item:focus-within .submenu {
    pointer-events: auto;
  }
}

/* ---- 内页页眉 ---- */
.subpage-banner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(
    180deg,
    var(--brand-gray-tint) 0%,
    var(--brand-gray-bg) 55%,
    #fff 100%
  );
}

.subpage-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
}

.products-catalog-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* ---- 关于页 ---- */
.about-page .about-page-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 9999px;
  background: var(--brand-red);
}

.about-page .about-page-media img {
  box-shadow: 0 12px 32px rgb(17 25 40 / 10%);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-page .about-page-media > div:hover img {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgb(195 3 25 / 14%);
}

.about-page .about-page-stat {
  background: linear-gradient(135deg, var(--brand-red) 0%, #9a0215 100%);
  box-shadow: 0 12px 32px rgb(195 3 25 / 28%);
}

.about-page .about-page-cta {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-black) 100%);
}

/* ---- 多语言横条 ---- */
.locale-choose__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.625rem auto 0;
  border-radius: 9999px;
  background: var(--brand-red);
}

.locale-choose__item:hover {
  color: var(--brand-red);
}

.locale-choose__item.is-active .locale-choose__name {
  color: var(--brand-red);
}

.locale-switcher-menu a.locale-active,
.locale-switcher-menu a[aria-current="true"] {
  color: var(--brand-red);
  font-weight: 600;
}

.locale-choose__item.is-active .locale-choose__flag {
  box-shadow: 0 0 0 2px var(--brand-red), 0 4px 12px rgb(195 3 25 / 25%);
}

/* ---- Banner ---- */
.home-banner__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(17 25 40 / 16%);
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 0% 50%, rgb(195 3 25 / 16%) 0%, transparent 58%),
    radial-gradient(ellipse 45% 60% at 100% 40%, rgb(17 25 40 / 32%) 0%, transparent 55%);
}

.home-banner__overlay {
  background:
    radial-gradient(ellipse 90% 72% at 50% 46%, rgb(17 25 40 / 58%) 0%, rgb(17 25 40 / 22%) 52%, transparent 76%),
    linear-gradient(180deg, rgb(17 25 40 / 38%) 0%, transparent 38%, rgb(17 25 40 / 48%) 100%) !important;
}

.home-banner__title,
.home-banner__summary {
  color: #fff !important;
  text-shadow: 0 2px 18px rgb(17 25 40 / 72%), 0 1px 4px rgb(0 0 0 / 42%);
}

.home-banner__summary {
  color: rgb(255 255 255 / 90%) !important;
}

.home-banner__title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
}

.home-banner__btn--primary {
  background: linear-gradient(135deg, var(--brand-red) 0%, #9a0215 100%) !important;
  box-shadow: 0 8px 24px rgb(195 3 25 / 38%);
  font-weight: 600;
}

.home-banner__btn--ghost {
  backdrop-filter: blur(6px);
  background: rgb(255 255 255 / 14%) !important;
  border: 1px solid rgb(255 255 255 / 52%) !important;
  color: #fff !important;
  font-weight: 600;
}

.home-banner__btn--ghost:hover {
  background: rgb(255 255 255 / 24%) !important;
  border-color: rgb(255 255 255 / 72%) !important;
}

.home-banner__dot.is-active {
  background: var(--brand-red) !important;
  box-shadow: 0 0 0 3px rgb(195 3 25 / 35%);
}

/* ---- 首页区块：轻量品牌点缀 ---- */
.product-showcase-gradient {
  border-top: 4px solid var(--brand-red);
  background: linear-gradient(180deg, #fff 0%, var(--brand-gray-tint) 42%, #fff 100%) !important;
}

.mx-auto h2.mb-3::after,
.product-features-section__intro h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--brand-black), var(--brand-red), var(--brand-black));
}

/* 标题文字上方留白与下方装饰线间距（1rem）一致 */
.product-features-section__intro h2,
.product-features-section__heading-wrap h2 {
  padding-top: 1rem;
}

.grid-pattern {
  background-image:
    linear-gradient(rgb(195 3 25 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(195 3 25 / 6%) 1px, transparent 1px);
}

.magic-card::before {
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgb(195 3 25 / 18%),
    transparent 40%
  );
}

.magic-card::after {
  background: linear-gradient(135deg, rgb(195 3 25 / 35%), rgb(195 3 25 / 5%) 40%, rgb(195 3 25 / 25%));
}

.product-tab-grid__item .magic-card:hover {
  border-color: rgb(195 3 25 / 28%) !important;
  box-shadow: 0 12px 32px rgb(195 3 25 / 12%) !important;
}

#strength .stat-counter.text-primary,
#strength .stat-counter .stat-counter {
  background: linear-gradient(135deg, var(--brand-red) 20%, var(--brand-black) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#strength .history-zigzag {
  border-radius: 1.25rem;
  border: 1px solid rgb(195 3 25 / 14%);
  background: linear-gradient(165deg, #fff 0%, var(--brand-gray-tint) 100%);
  box-shadow: 0 12px 40px rgb(17 25 40 / 6%);
  padding: 1.75rem 1.25rem 2rem;
}

@media (width >= 768px) {
  #strength .history-zigzag {
    padding: 2.25rem 2rem 2.5rem;
  }
}

@media (width >= 1024px) {
  #strength .history-zigzag {
    padding: 2.75rem 2.5rem 3rem;
  }
}

@media (width >= 1280px) {
  #strength .history-zigzag {
    padding: 3rem 3rem 3.5rem;
  }
}

.dark #strength .history-zigzag {
  background: linear-gradient(165deg, #1f2937 0%, #111928 100%);
  border-color: rgb(195 3 25 / 22%);
}

#process.process-grid-module {
  border-top: 4px solid var(--brand-red);
}

.process-grid-module__num,
.process-grid-module__hero-badge {
  background: var(--brand-red);
  box-shadow: 0 4px 12px rgb(195 3 25 / 30%);
}

.process-grid-module__item.is-active .process-grid-module__card {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgb(195 3 25 / 20%), 0 10px 28px rgb(195 3 25 / 14%);
}

/* ---- CTA / 热销 / 资质 ---- */
.cta-banner.bg-primary {
  background: linear-gradient(
    125deg,
    var(--brand-black-deep) 0%,
    var(--brand-black) 38%,
    var(--brand-red) 100%
  ) !important;
}

.cta-banner__btn {
  background: #fff !important;
  color: var(--brand-red) !important;
  border: 2px solid rgb(255 255 255 / 85%) !important;
  font-weight: 600;
}

.cta-banner__btn:hover {
  background: var(--brand-black) !important;
  color: #fff !important;
  border-color: var(--brand-red) !important;
}

.product-hover-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-black));
}

.product-hover-card__badge {
  background: linear-gradient(135deg, var(--brand-red), #9a0215) !important;
}

.testimonial-marquee-card,
.marquee-card {
  border-left: 3px solid var(--brand-red) !important;
}

/* 客户评价：姓名首字母圆形头像 */
.testimonial-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--brand-red) 12%, #fff);
  color: var(--brand-red);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html.dark .testimonial-avatar {
  background: color-mix(in oklab, var(--brand-red) 22%, var(--color-dark-2, #1f2937));
  color: #fff;
}

.cert-marquee-card {
  border-color: var(--brand-red-border);
}

.cert-marquee-card:hover,
.cert-marquee-card:focus-visible {
  border-color: var(--brand-red-mid);
  box-shadow: 0 10px 28px rgb(195 3 25 / 14%);
}

/* ---- 公司简介 ---- */
.about-intro__overlay {
  background: linear-gradient(
    115deg,
    rgb(10 13 20 / 88%) 0%,
    rgb(195 3 25 / 52%) 48%,
    rgb(17 25 40 / 85%) 100%
  ) !important;
}

.about-intro .about-intro__copy {
  background: linear-gradient(145deg, rgb(17 25 40 / 92%), rgb(17 25 40 / 78%));
  border: 1px solid rgb(255 255 255 / 14%);
  border-left: 4px solid var(--brand-red);
  border-radius: 1rem;
  box-shadow: 0 24px 56px rgb(0 0 0 / 38%), inset 0 1px 0 rgb(255 255 255 / 10%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-intro .about-intro__copy h2 {
  color: #fff;
}

.about-intro .about-intro__copy p {
  color: rgb(255 255 255 / 80%);
}

.about-intro .about-intro__copy h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 9999px;
  background: var(--brand-red);
}

.about-intro .about-media-zoom {
  border: 2px solid var(--brand-red);
  box-shadow: 0 24px 48px rgb(0 0 0 / 35%);
}

/* ---- 联系区 ---- */
.contact-section__backdrop {
  background: linear-gradient(
    180deg,
    var(--brand-gray-tint) 0%,
    var(--brand-gray-bg) 50%,
    #fff 100%
  );
}

html.dark .contact-section__backdrop {
  background: var(--brand-black);
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-black), var(--brand-red), var(--brand-black));
  z-index: 2;
}

#contact .rounded-xl.bg-white,
#contact .rounded-lg.bg-white {
  border: 1px solid rgb(195 3 25 / 12%);
  box-shadow: 0 16px 40px rgb(17 25 40 / 8%);
}

.official-field-input:focus,
#official-contact-form input.is-focused,
#official-contact-form textarea.is-focused {
  border-color: var(--brand-red) !important;
  box-shadow: 0 1px 0 0 var(--brand-red);
}

/* ---- 主按钮 / 浮动询盘 / 返回顶部 ---- */
.bg-primary,
a.bg-primary,
button.bg-primary,
.border-primary.bg-primary {
  background: linear-gradient(135deg, var(--brand-red) 0%, #9a0215 100%) !important;
  box-shadow: 0 6px 18px rgb(195 3 25 / 28%);
}

.bg-primary.hover\:bg-blue-dark:hover,
a.bg-primary:hover,
button.bg-primary:hover {
  background: linear-gradient(135deg, var(--brand-red-hover), var(--brand-black)) !important;
}

.floating-inquiry__btn {
  color: var(--brand-red);
  border-color: rgb(195 3 25 / 22%);
}

.floating-inquiry__btn--primary {
  background: linear-gradient(135deg, var(--brand-red), #9a0215) !important;
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 22px rgb(195 3 25 / 35%);
}

.floating-inquiry__pulse::after {
  border-color: rgb(195 3 25 / 45%);
}

.back-to-top.bg-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-black)) !important;
  box-shadow: 0 6px 20px rgb(195 3 25 / 35%);
}

.team-card {
  --team-icon-accent: var(--brand-red);
}

/* ---- 页脚 ---- */
footer.bg-\[\#090E34\] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #06080d 0%,
    var(--brand-black-deep) 40%,
    var(--brand-black) 100%
  ) !important;
}

footer.bg-\[\#090E34\]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-black), var(--brand-red), var(--brand-black));
}

footer .border-\[\#8890A4\]\/40 {
  border-color: rgb(255 255 255 / 12%) !important;
}

footer a.hover\:text-primary:hover,
footer .hover\:text-primary:hover,
footer .text-gray-7.hover\:text-white:hover {
  color: var(--brand-red) !important;
}

footer h4.text-white {
  position: relative;
  padding-left: 0.75rem;
}

footer h4.text-white::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 9999px;
  background: var(--brand-red);
}

/* ---- 在线客服 ---- */
.reception-widget-toggle {
  box-shadow: 0 12px 32px rgb(195 3 25 / 28%);
}

.reception-widget-header {
  background: linear-gradient(135deg, var(--brand-black), var(--brand-red));
}

.reception-widget-row.is-visitor .reception-widget-bubble {
  background: var(--brand-red);
}

.reception-widget-input-row input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgb(195 3 25 / 12%);
}

.reception-widget-input-row button {
  background: var(--brand-red);
}

.reception-widget-input-row button:hover {
  background: var(--brand-red-hover);
}

.reception-widget-row.is-system .reception-widget-bubble {
  background: var(--brand-gray-tint);
  color: var(--brand-red);
  border-color: rgb(195 3 25 / 15%);
}

/* ---- 文章详情页 ---- */
.article-detail__hero {
  height: 300px;
}

.article-detail__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-detail__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgb(17 25 40 / 15%) 45%, rgb(17 25 40 / 88%) 100%);
}

.article-detail__hero-meta,
.article-detail__hero-author {
  text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
}

.article-detail__tag {
  background: var(--brand-red-soft);
}

.article-detail__tag:hover {
  background: var(--brand-red);
  color: #fff !important;
}

.article-detail__share-link {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-detail__share-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.article-detail__cta-box {
  box-shadow: 0 16px 40px rgb(195 3 25 / 28%);
}

/* 侧栏热门文章：白底圆角卡片 + 阴影（参考图二） */
.article-detail__popular-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-detail__popular-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 5%);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.article-detail__popular-card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}

.article-detail__popular-media {
  aspect-ratio: 4 / 1;
  overflow: hidden;
}

.article-detail__popular-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-detail__popular-card:hover .article-detail__popular-media img {
  transform: scale(1.05);
}

.article-detail__popular-body {
  padding: 20px;
}

.article-detail__popular-title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-detail__popular-card:hover .article-detail__popular-title {
  color: var(--brand-red);
}

.article-detail__popular-summary {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-detail__popular-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #999;
}

.article-detail__popular-date svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

html.dark .article-detail__popular-card {
  background-color: rgb(255 255 255 / 5%);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

html.dark .article-detail__popular-title {
  color: #fff;
}

html.dark .article-detail__popular-summary {
  color: rgb(255 255 255 / 65%);
}

html.dark .article-detail__popular-date {
  color: rgb(255 255 255 / 45%);
}

/* 相关文章：2:1 封面、标题/摘要固定行高，卡片等高 */
.article-detail__related-wrap {
  height: 100%;
  margin-bottom: 2.5rem;
}

/* 同行列等高，子卡片才能撑满（限定 #news / 文章详情，避免影响其他 flex 布局） */
#news .flex.flex-wrap > div,
.article-detail .flex.flex-wrap > div[class*="w-"] {
  display: flex;
  flex-direction: column;
}

.article-detail__related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 5%);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.article-detail__related-card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}

.article-detail__related-media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.article-detail__related-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-detail__related-card:hover .article-detail__related-media img {
  transform: scale(1.05);
}

.article-detail__related-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.article-detail__related-title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  transition: color 0.2s ease;
  /* 标题固定 2 行高度，超出省略 */
  height: calc(1.0625rem * 1.5 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-detail__related-card:hover .article-detail__related-title {
  color: var(--brand-red);
}

.article-detail__related-summary {
  flex-shrink: 0;
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
  /* 摘要固定 3 行高度，超出省略 */
  height: calc(0.875rem * 1.5 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-detail__related-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.8125rem;
  color: #999;
}

.article-detail__related-date svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

html.dark .article-detail__related-card {
  background-color: rgb(255 255 255 / 5%);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

html.dark .article-detail__related-title {
  color: #fff;
}

html.dark .article-detail__related-summary {
  color: rgb(255 255 255 / 65%);
}

html.dark .article-detail__related-date {
  color: rgb(255 255 255 / 45%);
}

/* ---- 首页新闻双栏：Tab + 横向滚动 ---- */
.home-news-section__blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.home-news-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.home-news-block__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-black);
}

html.dark .home-news-block__title {
  color: #fff;
}

.home-news-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: var(--brand-gray-bg);
}

html.dark .home-news-tabs {
  background: rgb(255 255 255 / 6%);
}

.home-news-tabs__btn {
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--brand-black);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-news-tabs__btn.is-active {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 12px rgb(195 3 25 / 24%);
}

html.dark .home-news-tabs__btn {
  color: rgb(255 255 255 / 88%);
}

.home-news-block__more {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration: none;
}

.home-news-block__more:hover {
  text-decoration: underline;
}

.home-news-marquee {
  overflow: hidden;
  /* 横向裁切跑马灯，纵向留出阴影空间，避免卡片下缘被吞 */
  padding-block: 1.25rem;
  margin-bottom: 0.25rem;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

/* 整屏宽度跑马灯带（标题仍在 container 内） */
.home-news-marquee--full {
  width: 100%;
  max-width: 100vw;
}

.home-news-marquee__track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  will-change: transform;
  backface-visibility: hidden;
}

/* 多篇自动滚动：卡片从视口左右边缘开始 */
.home-news-marquee--animated .home-news-marquee__track {
  padding-inline: 0;
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}

/* 单篇静态展示：与上方标题 container 左缘对齐 */
.home-news-marquee:not(.home-news-marquee--animated) .home-news-marquee__track {
  padding-inline: max(1rem, calc((100vw - min(1170px, 100vw - 2rem)) / 2));
}

.home-news-marquee--animated:hover .home-news-marquee__track {
  animation-play-state: paused;
}

.home-news-scroll__item {
  flex-shrink: 0;
  width: min(300px, 78vw);
}

.home-news-scroll__item .article-detail__related-wrap {
  height: 100%;
  margin-bottom: 0;
}

.home-news-scroll__item .article-detail__related-card {
  height: 100%;
}

.home-news-empty {
  margin: 0;
  padding: 2.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgb(17 25 40 / 12%);
  background: var(--brand-gray-bg);
  text-align: center;
  color: var(--color-body-color, #637381);
  font-size: 0.9375rem;
}

html.dark .home-news-empty {
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 4%);
  color: rgb(255 255 255 / 65%);
}

@media (width >= 1024px) {
  .home-news-section__blocks {
    gap: 3.5rem;
  }
}

.article-detail__content {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.85;
}

/* PFT 结构化正文：章节锚点留白，供本章目录滚动定位 */
.article-detail__content .pft-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--ud-header-height, 5rem) + 1.5rem);
}

.article-detail__content .pft-section:last-child {
  margin-bottom: 0;
}

/* 侧栏：与默认站一致，整栏 sticky（非仅 TOC） */
.article-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  /* 避免 article-detail 同行 flex 拉伸导致 sticky 失效 */
  align-self: flex-start;
}

@media (width >= 1024px) {
  .article-detail__sidebar {
    position: sticky;
    top: calc(var(--ud-header-height, 5rem) + 1.5rem);
  }
}

/* 本章目录卡片 */
.article-detail__toc {
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 4px 18px rgb(15 23 42 / 5%);
}

html.dark .article-detail__toc {
  background: #111928;
  border-color: rgb(255 255 255 / 8%);
}

.pft-toc__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-black, #111928);
}

html.dark .pft-toc__title {
  color: #fff;
}

.pft-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pft-toc__link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4b5563;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pft-toc__link:hover {
  color: var(--brand-red, #c30319);
  background: rgb(195 3 25 / 6%);
}

.pft-toc__link.is-active {
  color: var(--brand-red, #c30319);
  font-weight: 600;
  border-left-color: var(--brand-red, #c30319);
  background: rgb(195 3 25 / 10%);
}

html.dark .pft-toc__link {
  color: rgb(255 255 255 / 72%);
}

html.dark .pft-toc__link:hover,
html.dark .pft-toc__link.is-active {
  color: #fff;
  background: rgb(195 3 25 / 18%);
}

@media (width <= 1023px) {
  .article-detail__sidebar {
    margin-top: 2rem;
  }
}

html.dark .article-detail__content {
  color: rgb(255 255 255 / 78%);
}

.article-detail__content > :first-child {
  margin-top: 0;
}

.article-detail__content > :last-child {
  margin-bottom: 0;
}

.article-detail__content p,
.article-detail__content ul,
.article-detail__content ol,
.article-detail__content blockquote,
.article-detail__content pre,
.article-detail__content table,
.article-detail__content figure,
.article-detail__content .image,
.article-detail__content img {
  margin: 0 0 1.25rem;
}

.article-detail__content h1,
.article-detail__content h2,
.article-detail__content h3,
.article-detail__content h4 {
  margin: 2rem 0 1rem;
  color: var(--brand-black);
  font-weight: 700;
  line-height: 1.35;
}

html.dark .article-detail__content h1,
html.dark .article-detail__content h2,
html.dark .article-detail__content h3,
html.dark .article-detail__content h4 {
  color: #fff;
}

.article-detail__content h2 {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-red-soft);
}

.article-detail__content h3 {
  font-size: 1.25rem;
}

.article-detail__content a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-detail__content a:hover {
  color: var(--brand-red-hover);
}

.article-detail__content ul,
.article-detail__content ol {
  padding-left: 1.5rem;
}

.article-detail__content li + li {
  margin-top: 0.35rem;
}

.article-detail__content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 5px;
  background: var(--brand-red-soft);
  color: var(--brand-black);
  font-style: italic;
  line-height: 1.75;
}

html.dark .article-detail__content blockquote {
  background: rgb(195 3 25 / 10%);
  color: rgb(255 255 255 / 88%);
}

.article-detail__content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid rgb(17 25 40 / 8%);
}

.article-detail__content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0.5rem;
  border: 1px solid rgb(17 25 40 / 10%);
  overflow: hidden;
}

.article-detail__content th,
.article-detail__content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(17 25 40 / 8%);
  text-align: left;
}

.article-detail__content th {
  background: var(--brand-gray-bg);
  color: var(--brand-black);
  font-weight: 600;
}

@media (width >= 768px) {
  .article-detail__hero {
    height: 400px;
  }
}

@media (width >= 1024px) {
  .article-detail__hero {
    height: 500px;
  }
}

/* ---- 列表分页（新闻 / 产品共用按钮样式） ---- */
.news-pagination {
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: 1rem;
  padding-bottom: 4rem;
}

@media (width >= 1024px) {
  .news-pagination {
    padding-bottom: 6rem;
  }
}

/* 产品列表分页：主内容区内与网格拉开间距 */
.product-catalog-pagination {
  max-width: none;
  margin-top: 2.5rem;
  padding-inline: 0;
  padding-bottom: 0;
}

.news-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  border-radius: 12px;
  background: var(--brand-gray-bg);
  box-shadow: 0 4px 12px rgb(0 0 0 / 4%);
}

.news-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(17 25 40 / 10%);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-black);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.news-pagination__btn--page {
  min-width: 40px;
  padding: 0;
}

.news-pagination__btn--nav:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  box-shadow: 0 4px 12px rgb(195 3 25 / 12%);
}

.news-pagination__btn--page:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.news-pagination__btn.is-active {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 14px rgb(195 3 25 / 28%);
  cursor: default;
}

.news-pagination__btn.is-disabled {
  border-color: rgb(17 25 40 / 6%);
  background: rgb(255 255 255 / 60%);
  color: rgb(17 25 40 / 35%);
  cursor: not-allowed;
}

.news-pagination__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.news-pagination__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-black);
  font-size: 0.875rem;
  font-weight: 600;
}

html.dark .news-pagination__list {
  background: rgb(255 255 255 / 5%);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

html.dark .news-pagination__btn {
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 88%);
}

html.dark .news-pagination__btn--nav:hover,
html.dark .news-pagination__btn--page:hover {
  border-color: var(--brand-red);
  color: #fff;
}

html.dark .news-pagination__btn.is-disabled {
  background: rgb(255 255 255 / 3%);
  color: rgb(255 255 255 / 30%);
}

html.dark .news-pagination__status {
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 88%);
}

@media (width <= 639px) {
  .news-pagination__btn--nav span {
    display: none;
  }

  .news-pagination__btn--nav {
    min-width: 40px;
    padding: 0;
  }
}

/* ---- 模板遗留色兜底 ---- */
svg [fill="#3758F9"],
svg [fill="#3056D3"],
svg [fill="#3056d3"],
svg [fill="#13C296"] {
  fill: var(--brand-red);
}

@media (prefers-reduced-motion: reduce) {
  .product-tab-grid__item .magic-card:hover,
  .bg-primary:hover,
  .home-banner__btn--primary:hover,
  .cta-banner__btn:hover {
    transform: none;
  }
}
