/* ============================================================
   乂迅企业官网 - 主样式文件
   设计还原：Figma 设计稿 1:1 像素级还原
   ============================================================ */

/* ── CSS 变量 ── */
:root {
  --color-primary: #155dfc;
  --color-primary-dark: #1447e6;
  --color-primary-gradient: linear-gradient(90deg, #155dfc 0%, #4f39f6 100%);
  --color-text-dark: #101828;
  --color-text-medium: #364153;
  --color-text-body: #4a5565;
  --color-text-muted: #6a7282;
  --color-text-footer-link: #99a1af;
  --color-text-footer-list: #d1d5dc;
  --color-border: #d1d5dc;
  --color-border-light: #e5e7eb;
  --color-bg-product: #f9fafb;
  --color-bg-footer: #101828;
  --color-footer-border: #1e2939;

  --header-height: 64px;
  --container-width: 1216px;
  --container-padding: 173px;

  --font-main: 'Inter', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-dark);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Container ── */
.container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo：始终为图片（后台 site_logo 或内置 SVG 占位） */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo-img {
  display: block;
  height: 25px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-medium);
  line-height: 20px;
  padding: 8px 12px;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-text-dark);
  font-weight: 500;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text-medium);
  transition: background 0.15s, color 0.15s;
  overflow: hidden; /* 隐藏溢出的内容 */
  text-overflow: ellipsis; /* 显示省略号 */
  white-space: nowrap; /* 防止文本换行 */
}

.dropdown-menu li a:hover {
  background: var(--color-bg-product);
  color: var(--color-primary);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 产品中心导航：一级 + 二级（桌面侧滑出，手机折叠） */
.dropdown-menu > .dropdown-menu-item {
  list-style: none;
}

.dropdown-menu-item-inner {
  display: flex;
  align-items: stretch;
}

.dropdown-menu-link-only {
  display: block;
  flex: 1;
}

.dropdown-menu-link-primary {
  display: block;
  flex: 1;
  min-width: 0;
}

.dropdown-menu-item-inner .dropdown-menu-link-primary {
  padding-right: 8px;
}

.dropdown-children-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid var(--color-border-light);
  background: transparent;
  cursor: pointer;
  color: var(--color-text-medium);
  transition: color 0.15s, background 0.15s;
}

.dropdown-children-toggle:hover {
  color: var(--color-primary);
  background: var(--color-bg-product);
}

.dropdown-children-chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -4px;
}

.dropdown-menu-item.has-children.open .dropdown-children-chevron {
  transform: rotate(45deg);
  margin-top: 0;
}

.dropdown-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  .dropdown-menu {
    min-width: 200px;
  }

  .dropdown-menu-item.has-children {
    position: relative;
  }

  .dropdown-children {
    display: none;
    position: absolute;
    left: calc(100% - 4px);
    top: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 102;
  }

  .dropdown-menu-item.has-children:hover > .dropdown-children {
    display: block;
  }

  .dropdown-children li a {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text-medium);
    transition: background 0.15s, color 0.15s;
  }

  .dropdown-children li a:hover {
    background: var(--color-bg-product);
    color: var(--color-primary);
  }

  .dropdown-menu-item.has-children:hover > .dropdown-menu-item-inner {
    background: var(--color-bg-product);
  }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-medium);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   BANNER CAROUSEL
   ============================================================ */
.banner {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.banner-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
}

.banner-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 626px;
  margin-bottom: 16px;
}

.banner-subtitle {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
}

/* Banner Prev/Next Buttons */
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  flex-shrink: 0;
}

.banner-btn:hover {
  background: rgba(255,255,255,0.35);
}

.banner-btn img {
  width: 14px;
  height: 14px;
}

.banner-prev {
  left: 16px;
}

.banner-next {
  right: 16px;
}

/* Banner Dots */
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10;
}

.dot {
  height: 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  transition: width 0.3s, background 0.3s;
  cursor: pointer;
  width: 12px;
}

.dot.active {
  background: #fff;
  width: 48px;
}

/* ============================================================
   PRODUCT SHOWCASE SECTION
   ============================================================ */
.products-section {
  background: var(--color-bg-product);
  padding: 80px 0 60px;
}

/* Section Heading (shared) */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ── Category Tabs ── */
.category-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.cat-nav-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.cat-nav-btn:hover {
  background: var(--color-bg-product);
}

.cat-nav-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

.category-scroll {
  flex: 1;
  overflow: hidden;
}

.category-list {
  display: flex;
  gap: 0;
  transition: transform 0.4s ease;
}

.category-item {
  flex: 0 0 calc(100% / 6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

a.category-item {
  text-decoration: none;
  color: inherit;
}

.cat-img-wrap--all {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
}

.cat-all-icon {
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-medium);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cat-img-wrap {
  width: 132px;
  height: 132px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
  background: white;
}

.cat-img-wrap.active-border {
  border: 2px solid var(--color-primary);
}

.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-medium);
  white-space: nowrap;
  line-height: 20px;
  text-align: center;
}

.category-item.active span {
  color: var(--color-primary);
}

/* 产品中心：分类选中高亮（蓝框 + 浅蓝底 + 文案主色，与设计稿一致） */
body[data-page="products"] .category-item.active .cat-img-wrap {
  border: 2px solid var(--color-primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

body[data-page="products"] .category-item.active .cat-all-icon {
  color: var(--color-primary);
}

body[data-page="products"] .category-item:not(.active) .cat-img-wrap {
  background: #fff;
}

body[data-page="products"] .category-item:not(.active) .cat-img-wrap--all {
  background: rgba(0, 0, 0, 0.04);
}

/* 二级分类（产品中心链接行 / 首页按钮行） */
.category-sub-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: -32px 0 40px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.category-sub-wrap--home {
  margin-top: 8px;
  margin-bottom: 40px;
}

.category-sub-wrap--home[hidden],
.category-sub-wrap--home:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.category-sub-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-medium);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

a.category-sub-item:hover,
button.category-sub-item:hover {
  color: var(--color-primary);
  border-color: rgba(37, 99, 235, 0.35);
  background: #fff;
}

.category-sub-item.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.category-sub-item--parent {
  font-weight: 600;
  border-style: dashed;
}

/* ── 分类切换时产品卡的隐藏/显示 ── */
.product-card,
.product-list-card {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card.cat-hidden,
.product-list-card.cat-hidden {
  display: none !important;
}

/* 左右滑入动画 */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card.cat-enter,
.product-list-card.cat-enter {
  animation: fadeSlideIn 0.3s ease forwards;
}

/* 导航按钮禁用态 */
.cat-nav-btn:disabled,
.cat-nav-btn[data-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-img-wrap {
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 286/215;
  background: white;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 24px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.product-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 1.625;
}

/* ── More Products Button ── */
.products-cta {
  display: flex;
  justify-content: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 52px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: #fff;
}

.news-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.news-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.news-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 1;
}

.news-inner {
  position: relative;
  z-index: 2;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Featured News */
.news-featured {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

a.news-item {
  text-decoration: none;
  color: inherit;
}

.news-featured-img {
  width: 100%;
  aspect-ratio: 584/438;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 28px;
  margin-bottom: 8px;
}

.news-featured-date {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 20px;
  font-style: normal;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.news-item.last {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date-box {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0;
}

.news-day {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 24px;
  display: block;
}

.news-month {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
  display: block;
  white-space: nowrap;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 24px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-footer);
}

/* Friend Links */
.footer-friend-links {
  border-bottom: 1px solid var(--color-footer-border);
  padding: 32px 0;
}

.footer-friend-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  line-height: 27px;
}

.footer-friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-friend-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-footer-link);
  line-height: 20px;
  margin-right: 32px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-friend-link:hover {
  color: #fff;
}

/* Footer Columns */
.footer-columns {
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 28px;
  margin-bottom: 16px;
}

.footer-col-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 24px;
  margin-bottom: 16px;
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-list li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-footer-list);
  line-height: 20px;
  transition: color 0.2s;
}

.footer-col-list li a:hover {
  color: #fff;
}

/* QR Code */
.footer-qr {
  width: 128px;
  height: 128px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: 0;
  box-sizing: border-box;
}

.footer-qr img {
  width: 100%;
  height: 100%;
  max-width: 88px;
  max-height: 88px;
  object-fit: contain;
}

/* Copyright */
.footer-copyright {
  border-top: 1px solid var(--color-footer-border);
  padding: 25px 0;
}

.footer-copyright p,
.footer-copyright-line {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 20px;
  text-align: center;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
}

.footer-beian {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-beian:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 40px;
  }

  .banner-title {
    font-size: 36px;
  }

  .banner-subtitle {
    font-size: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .category-item {
    flex: 0 0 calc(100% / 4);
  }

  .cat-img-wrap {
    width: 100px;
    height: 100px;
  }

  .news-layout {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-col-contact {
    grid-column: span 1;
  }

  .footer-qr {
    width: 112px;
    height: 112px;
    padding: 16px;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --header-height: 56px;
  }

  /* Header mobile */
  .nav-container {
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 999;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-height));
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-link {
    padding: 16px 20px;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--color-border-light);
    border-radius: 0;
    display: none;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding-left: 36px;
    border-bottom: none;
  }

  .dropdown-children-toggle {
    display: flex;
  }

  .dropdown-menu-item-inner .dropdown-menu-link-primary {
    padding-left: 36px;
  }

  .dropdown-children {
    display: none;
    border-top: 1px solid var(--color-border-light);
    background: rgba(0, 0, 0, 0.02);
  }

  .dropdown-menu-item.has-children.open > .dropdown-children {
    display: block;
  }

  .dropdown-children li a {
    padding-left: 52px;
    font-size: 14px;
  }

  /* Banner mobile */
  .banner {
    height: 360px;
  }

  .banner-title {
    font-size: 24px;
    max-width: 90%;
    margin-bottom: 12px;
  }

  .banner-subtitle {
    font-size: 15px;
    white-space: normal;
    max-width: 80%;
  }

  .banner-btn {
    width: 36px;
    height: 36px;
  }

  .banner-btn img {
    width: 10px;
    height: 10px;
  }

  .banner-prev {
    left: 10px;
  }

  .banner-next {
    right: 10px;
  }

  /* Products mobile */
  .products-section {
    padding: 48px 0 40px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .category-wrapper {
    margin-bottom: 32px;
  }

  .category-item {
    flex: 0 0 calc(100% / 3);
  }

  .cat-img-wrap {
    width: 80px;
    height: 80px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-name {
    font-size: 14px;
    white-space: normal;
  }

  /* News mobile */
  .news-section {
    padding: 48px 0;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-featured-img {
    aspect-ratio: 16/9;
  }

  /* Footer mobile */
  .footer-friend-links {
    padding: 24px 0;
  }

  .footer-friend-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .footer-friend-list {
    gap: 8px 0;
  }

  .footer-friend-link {
    margin-right: 16px;
    margin-bottom: 6px;
    font-size: 13px;
  }

  .footer-columns {
    padding: 28px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-col-subtitle {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-col-list {
    gap: 8px;
  }

  .footer-col-list li a {
    font-size: 13px;
    line-height: 20px;
    display: inline-block;
    padding: 2px 0;
  }

  .footer-col-contact {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--color-footer-border);
  }

  .footer-qr {
    width: 120px;
    height: 120px;
    padding: 16px;
    margin: 0 auto;
  }

  .footer-copyright {
    padding: 20px 0;
  }

  .footer-copyright-line {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 18px;
    padding: 0 4px;
  }

  .footer-beian {
    word-break: break-all;
  }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .banner {
    height: 280px;
  }

  .banner-title {
    font-size: 20px;
  }

  .banner-subtitle {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-item {
    flex: 0 0 calc(100% / 2);
  }

  .cat-img-wrap {
    width: 64px;
    height: 64px;
  }

  .footer-columns {
    padding: 24px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .footer-col-subtitle {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-col-list li a {
    font-size: 12px;
    line-height: 18px;
  }

  .footer-col-contact {
    padding-top: 12px;
  }

  .footer-qr {
    width: 104px;
    height: 104px;
    padding: 14px;
  }

  .footer-copyright-line {
    font-size: 11px;
    line-height: 16px;
  }

  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .news-date-box {
    width: 56px;
    height: 56px;
  }

  .news-title {
    white-space: normal;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   PAGE HERO BANNER（内页通用小 Banner）
   ============================================================ */
.page-hero {
  position: relative;
  height: 212px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 0;
}

.page-hero-text {
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 40px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.page-hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  line-height: 28px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}

/* ============================================================
   BREADCRUMB（面包屑）
   ============================================================ */
.breadcrumb {
  background: var(--color-bg-product);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb .container {
  padding-top: 16px;
  padding-bottom: 16px;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 20px;
}

.breadcrumb-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 20px;
  transition: color 0.2s;
  white-space: nowrap;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.breadcrumb-sep img {
  width: 16px;
  height: 16px;
}

.breadcrumb-current {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 20px;
  white-space: nowrap;
}

/* ============================================================
   CATEGORY SECTION（内页版：白底，无顶部节标题）
   ============================================================ */
.cat-section-inner {
  background: #fff;
  padding: 48px 0;
}

/* 选中分类项增加浅蓝背景（与产品中心设计一致） */
/*.cat-img-wrap.active-border {*/
/*  background: #eff6ff;*/
/*}*/

/* ============================================================
   PRODUCT LIST SECTION（产品中心列表）
   ============================================================ */
.product-list-section {
  /* background: var(--color-bg-product); */
  padding: 0 0 80px;
}

.product-list-section .container {
  padding-top: 0;
}

.product-list-search {
  margin: 0 0 28px;
}

.product-list-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 560px;
}

.product-list-search-input {
  flex: 1;
  min-width: 200px;
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-list-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.product-list-search-input::placeholder {
  color: var(--color-text-medium);
  opacity: 0.85;
}

.product-list-search-submit {
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.product-list-search-submit:hover {
  filter: brightness(1.05);
}

.product-list-search-clear {
  font-size: 14px;
  color: var(--color-text-medium);
  text-decoration: none;
  white-space: nowrap;
}

.product-list-search-clear:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.product-list-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--color-text-body);
  background: var(--color-bg-product);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-list-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-list-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-list-img {
  width: 100%;
  aspect-ratio: 286 / 213;
  overflow: hidden;
}

.product-list-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-list-card:hover .product-list-img img {
  transform: scale(1.04);
}

.product-list-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-list-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 24px;
  white-space: nowrap;
}

.product-list-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 22.75px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 产品中心 / 新闻列表 共用分页 */
.site-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.site-pagination-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s;
}

.site-pagination-arrow:hover:not(.is-disabled) {
  color: var(--color-primary);
}

.site-pagination-arrow.is-disabled {
  color: #d1d5dc;
  cursor: default;
  pointer-events: none;
}

.site-pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-medium);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.site-pagination-num:hover:not(.is-active) {
  color: var(--color-primary);
}

.site-pagination-num.is-active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: default;
}

.site-pagination-ellipsis {
  color: var(--color-text-muted);
  font-size: 15px;
  user-select: none;
  padding: 0 4px;
}

/* ============================================================
   RESPONSIVE — 产品中心页 Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .page-hero {
    height: 160px;
  }

  .page-hero-title {
    font-size: 28px;
  }

  .page-hero-subtitle {
    font-size: 16px;
    white-space: normal;
  }

  .product-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ============================================================
   RESPONSIVE — 产品中心页 Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .page-hero {
    height: 130px;
  }

  .page-hero-content {
    padding-top: 24px;
    align-items: flex-start;
  }

  .page-hero-title {
    font-size: 22px;
    line-height: 32px;
    white-space: normal;
  }

  .page-hero-subtitle {
    font-size: 14px;
    white-space: normal;
  }

  .cat-section-inner {
    padding: 32px 0;
  }

  .product-list-section {
    padding: 0 0 48px;
  }

  .product-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-list-name {
    font-size: 14px;
    white-space: normal;
  }
}

/* ============================================================
   RESPONSIVE — 产品中心页 Small Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .page-hero {
    height: 110px;
  }

  .page-hero-title {
    font-size: 18px;
  }

  .page-hero-subtitle {
    font-size: 12px;
  }

  .product-list-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ============================================================
   PRODUCT DETAIL PAGE（产品详情页）
   ============================================================ */

/* 详情页主体偏移（header 高度） */
.pd-main {
  padding-top: var(--header-height);
}

.pd-section {
  padding: 48px 0 80px;
}

/* 产品布局：左图右信 */
.pd-layout {
  display: grid;
  grid-template-columns: 448px 1fr;
  gap: 37px;
  margin-bottom: 48px;
}

.pd-not-found {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-muted, #666);
}

.pd-not-found p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* 左侧图片区 */
.pd-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-main-img {
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 446 / 334;
}

.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pd-thumb {
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  padding: 1px;
  transition: border-color 0.2s;
  background: none;
}

.pd-thumb:hover {
  border-color: var(--color-primary);
}

.pd-thumb.active {
  border: 2px solid var(--color-primary);
  padding: 2px;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 右侧信息区 */
.pd-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pd-category {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 20px;
  margin-bottom: 8px;
}

.pd-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 36px;
  margin-bottom: 16px;
  white-space: nowrap;
}

.pd-desc {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-medium);
  line-height: 29.25px;
  margin-bottom: 24px;
  max-width: 724px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-download:hover,
.btn-download:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.btn-download-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  transition: -webkit-filter 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  -webkit-filter: none;
  filter: none;
}

/* 悬浮/键盘聚焦：将 img 内 SVG/PNG 图标刷成纯白（含 WebKit 前缀） */
.btn-download:hover .btn-download-icon,
.btn-download:focus-visible .btn-download-icon,
.btn-download:hover > img {
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.btn-download:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-download:focus:not(:focus-visible) {
  outline: none;
}

/* 技术规格 */
.specs-section {
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
  margin-bottom: 48px;
}

.specs-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 32px;
  margin-bottom: 24px;
}

.specs-table {
  /* border: 1px solid var(--color-border); */
}

.specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}

.specs-row-last,
.specs-table .specs-row:last-child {
  border-bottom: none;
}

.spec-cell {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 0;
  min-height: 57px;
}

.spec-cell-left {
  background: var(--color-bg-product);
  border-right: 1px solid var(--color-border);
}

.spec-cell-right {
  background: #fff;
}

.spec-label {
  width: 96px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 24px;
}

.spec-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-medium);
  line-height: 24px;
}

/* 技术规格（富文本编辑器输出） */
.specs-table.specs-table--html.pd-specs-rich {
  display: block;
  padding: 16px 20px;
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-medium);
}
.specs-table.specs-table--html.pd-specs-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.specs-table.specs-table--html.pd-specs-rich th,
.specs-table.specs-table--html.pd-specs-rich td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.specs-table.specs-table--html.pd-specs-rich p {
  margin: 0 0 0.75em;
}
.specs-table.specs-table--html.pd-specs-rich p:last-child {
  margin-bottom: 0;
}

/* 相关产品 */
.related-section {
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.related-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 32px;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: block;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.related-img {
  width: 100%;
  aspect-ratio: 389 / 290;
  overflow: hidden;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.related-card:hover .related-img img {
  transform: scale(1.04);
}

.related-name {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 24px;
}

/* ── 产品详情响应式 ── */
@media (max-width: 1024px) {
  .pd-layout {
    grid-template-columns: 320px 1fr;
    gap: 24px;
  }

  .pd-title {
    font-size: 24px;
    white-space: normal;
  }

  .pd-desc {
    font-size: 16px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pd-title {
    font-size: 22px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .specs-row {
    grid-template-columns: 1fr;
  }

  .spec-cell-left {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .specs-row-last .spec-cell-left,
  .specs-table .specs-row:last-child .spec-cell-left {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 480px) {
  .pd-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SOLUTIONS PAGE（解决方案页）
   ============================================================ */
.solutions-section {
  padding: 64px 0 80px;
}

.solutions-section .container {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.solution-card {
  border: 1px solid var(--color-border);
  padding: 33px;
}

.solution-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.solution-icon-box {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-icon-box img {
  width: 24px;
  height: 24px;
  display: block;
}

.solution-header-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solution-card-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 36px;
  white-space: nowrap;
}

.solution-card-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 28px;
  white-space: nowrap;
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.solution-content-img {
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 570 / 418;
}

.solution-content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solution-content-text {
  font-size: 16px;
  color: var(--color-text-medium);
  line-height: 26px;
}

.solution-content-text h4 {
  font-weight: 700;
  color: var(--color-text-medium);
  margin-bottom: 8px;
}

.solution-content-text p {
  font-weight: 400;
  margin-bottom: 16px;
}

.solution-content-text p:last-child {
  margin-bottom: 0;
}

/* ── 解决方案响应式 ── */
@media (max-width: 1024px) {
  .solution-card-title {
    font-size: 24px;
    white-space: normal;
  }

  .solution-card-subtitle {
    font-size: 16px;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 40px 0 60px;
  }

  .solutions-section .container {
    gap: 48px;
  }

  .solution-card {
    padding: 20px;
  }

  .solution-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution-card-title {
    font-size: 20px;
  }
}

/* ============================================================
   NEWS LIST PAGE（新闻动态列表）
   ============================================================ */
.news-list-section {
  padding: 40px 0 80px;
}

.news-list-wrap {
  display: flex;
  flex-direction: column;
}

.news-list-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 40px 24px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.news-list-item:hover {
  background: var(--color-bg-product);
}

.news-list-item-last {
  border-bottom: 1px solid var(--color-border);
}

.news-list-wrap > .news-list-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.news-list-date-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.news-list-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 16px;
  font-style: normal;
}

.news-list-item-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 28px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-item:hover .news-list-item-title {
  color: var(--color-primary);
}

.news-list-item-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 22.75px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── 新闻列表响应式 ── */
@media (max-width: 768px) {
  .news-list-section {
    padding: 32px 0 60px;
  }

  .news-list-item {
    padding-right: 32px;
  }

  .news-list-item-title {
    font-size: 16px;
    white-space: normal;
  }

  .news-list-item-desc {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .news-list-item-title {
    font-size: 15px;
  }
}

/* ============================================================
   新闻详情页 (news-detail.html)
   ============================================================ */
.nd-layout {
  padding: 48px 0 80px;
}

.nd-content {
  max-width: 896px;
  margin: 0 auto;
}

.nd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a5565;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.nd-back-link:hover {
  color: var(--color-primary);
}

.nd-back-link img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nd-meta {
  margin-bottom: 8px;
}

.nd-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6a7282;
}

.nd-date img {
  width: 16px;
  height: 16px;
}

.nd-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 32px;
}

.nd-main-img {
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 40px;
}

.nd-main-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.nd-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

/* 正文内首图（编辑器插入的段落内图片）与旧版 nd-main-img 块 */
.nd-body > p:first-child:has(img:only-child) {
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin: 0 0 40px 0;
}

.nd-body > p:first-child:has(img:only-child) img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.nd-para {
  font-size: 16px;
  color: #364153;
  line-height: 1.625;
}

.nd-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 33px;
  margin-top: 8px;
}

/* ============================================================
   联系我们 (contact.html)
   ============================================================ */
.contact-section {
  padding: 64px 0 80px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box img {
  width: 20px;
  height: 20px;
}

.contact-info-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.contact-info-text p {
  font-size: 16px;
  color: #4a5565;
  line-height: 24px;
}

.contact-info-text a {
  font-size: 16px;
  color: #4a5565;
  text-decoration: none;
  line-height: 24px;
  display: block;
}

.contact-info-text a:hover {
  color: var(--color-primary);
}

/* ============================================================
   服务与支持 侧边栏布局（warranty / after-sales / serial-search / tech-docs）
   ============================================================ */
.service-page-section {
  padding: 40px 0 80px;
}

.service-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 32px;
  align-items: start;
}

/* --- 侧边栏 --- */
.support-sidebar {
  border: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 80px;
}

.support-sidebar-header {
  background: #f9fafb;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
}

.support-sidebar-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.support-sidebar-nav {
  list-style: none;
  padding: 8px;
}

.support-sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-left: 4px solid transparent;
  text-decoration: none;
  color: #364153;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.support-sidebar-link:not(.active):hover {
  background: #f9fafb;
}

.support-sidebar-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 与稿一致：仅左侧主色条 + 整行浅蓝底；文字与图标同为主色 */
.support-sidebar-link.active {
  background: #eff6ff;
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

/* 图标仅作对齐，无圆角底、无描边块 */
.support-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* img 引用的 SVG：默认灰、选中主色蓝 */
.support-sidebar-link .support-sidebar-icon img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  transition: filter 0.15s ease;
  filter: brightness(0) saturate(100%) invert(46%) sepia(8%) saturate(380%) hue-rotate(176deg) brightness(96%) contrast(88%);
}

.support-sidebar-link:not(.active):hover .support-sidebar-icon img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(9%) saturate(420%) hue-rotate(176deg) brightness(93%) contrast(90%);
}

.support-sidebar-link.active .support-sidebar-icon img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(94%) saturate(2853%) hue-rotate(216deg) brightness(98%) contrast(97%);
}

.support-sidebar-text {
  flex: 1;
  min-width: 0;
}

/* --- 内容区域 --- */
.service-content {
  border: 1px solid var(--color-border);
  background: #f9fafb;
  padding: 33px;
}

.service-content-white {
  background: #fff;
}

.service-content-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

/* ============================================================
   保修条例内容 (warranty.html)
   ============================================================ */
.warranty-section {
  margin-bottom: 32px;
}

.warranty-section:last-of-type {
  margin-bottom: 24px;
}

.warranty-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.warranty-para {
  font-size: 16px;
  color: #364153;
  line-height: 24px;
  margin-bottom: 8px;
}

.warranty-list {
  list-style: none;
  padding-left: 16px;
}

.warranty-list li {
  font-size: 16px;
  color: #364153;
  line-height: 24px;
  margin-bottom: 4px;
  position: relative;
}

.warranty-list li::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #364153;
}

.warranty-note {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  padding: 16px;
  font-size: 14px;
  color: #364153;
  line-height: 1.6;
}

/* ============================================================
   售后服务表单 (after-sales.html)
   ============================================================ */
.service-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.required {
  color: #fb2c36;
  margin-left: 2px;
}

.form-input {
  border: 1px solid var(--color-border);
  height: 42px;
  padding: 8px 16px;
  font-size: 16px;
  color: var(--color-text-dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.form-textarea {
  border: 1px solid var(--color-border);
  height: 120px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--color-text-dark);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
}

.form-textarea:focus {
  border-color: var(--color-primary);
}

.form-textarea::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

/* 售后服务：省市区选择器（与后台 FastAdmin city-picker 同一套库） */
.service-form .control-relative {
  position: relative;
  width: 100%;
}

.service-form .city-picker-span {
  border: 1px solid var(--color-border);
  min-height: 42px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0;
}

.service-form .city-picker-span > .placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.service-form .city-picker-span.focus,
.service-form .city-picker-span.open {
  border-bottom-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-privacy {
  font-size: 14px;
  color: #364153;
  line-height: 1.6;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  padding: 16px;
}

.form-privacy a {
  color: var(--color-primary);
  text-decoration: none;
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-submit:hover {
  background: #1a4fd0;
}

.btn-submit img {
  width: 20px;
  height: 20px;
}

/* ============================================================
   序列号查询 (serial-search.html)
   ============================================================ */
.serial-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.search-form-box {
  border: 1px solid var(--color-border);
  padding: 25px;
}

.search-form-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  gap: 16px;
}

.search-input {
  flex: 1;
  border: 1px solid var(--color-border);
  height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--color-text-dark);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}

.search-input:focus {
  border-color: var(--color-primary);
}

.search-input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.btn-search {
  width: 124px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-search:hover {
  background: #1a4fd0;
}

.btn-search img {
  width: 20px;
  height: 20px;
}

.search-result {
  display: none;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  padding: 25px;
}

.search-result.visible {
  display: block;
}

.search-result-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-grid.serial-result-body {
  display: block;
  font-size: 16px;
  color: #364153;
  line-height: 1.625;
}

.serial-result-body table {
  width: 100%;
  border-collapse: collapse;
}

.serial-result-body th,
.serial-result-body td {
  padding: 10px 12px;
  border: 1px solid #d1d5dc;
  text-align: left;
  vertical-align: top;
}

.serial-result-body th {
  width: 28%;
  background: #fff;
  color: #4a5565;
  font-weight: 500;
}

.serial-result-body td {
  background: #fff;
  color: var(--color-text-dark);
}

.serial-result-body p {
  margin-bottom: 12px;
}

.serial-result-body p:last-child {
  margin-bottom: 0;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 14px;
  color: #4a5565;
}

.result-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.search-tips {
  border: 1px solid var(--color-border);
  background: #f9fafb;
  padding: 25px;
}

.search-tips h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.search-tips ul {
  list-style: none;
}

.search-tips ul li {
  font-size: 14px;
  color: #364153;
  line-height: 20px;
  margin-bottom: 8px;
}

/* ============================================================
   公司介绍 (about.html)
   ============================================================ */
.about-intro-section {
  padding: 64px 0 80px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

.about-intro-text p {
  font-size: 16px;
  color: #364153;
  line-height: 26px;
  margin-bottom: 16px;
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

/* 后台编辑器生成的介绍正文（与 .about-intro-text p 视觉对齐） */
.about-intro-text .about-intro-body {
  font-size: 16px;
  color: #364153;
  line-height: 26px;
}

.about-intro-text .about-intro-body p {
  font-size: 16px;
  color: #364153;
  line-height: 26px;
  margin-bottom: 16px;
}

.about-intro-text .about-intro-body p:last-child {
  margin-bottom: 0;
}

.about-intro-img {
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.advantages-section {
  background: #f9fafb;
  padding: 64px 0;
}

.advantages-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 48px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 25px;
}

.advantage-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.advantage-card-desc {
  font-size: 16px;
  color: #4a5565;
  line-height: 26px;
}

.history-section {
  padding: 80px 0;
}

.history-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 48px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  width: 72px;
  flex-shrink: 0;
  padding-top: 2px;
}

.timeline-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: #4a5565;
  line-height: 22px;
}

.certs-section {
  background: #f9fafb;
  padding: 64px 0;
}

.certs-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 48px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.cert-card {
  display: flex;
  flex-direction: column;
}

.cert-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #e5e7eb;
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-top: 8px;
  line-height: 20px;
}

.cert-year {
  font-size: 12px;
  color: #6a7282;
  margin-top: 2px;
}

.certs-more {
  text-align: center;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
}

/* ============================================================
   技术文档 (tech-docs.html)
   ============================================================ */
.tech-docs-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-bottom: none;
  padding: 25px;
  gap: 16px;
  background: #fff;
  transition: background 0.2s;
}

.doc-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.doc-item:hover {
  background: #f9fafb;
}

.doc-item-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.doc-icon-box {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon-box img {
  width: 24px;
  height: 24px;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-info h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.doc-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6a7282;
  flex-wrap: wrap;
}

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-doc-download:hover {
  background: #1a4fd0;
  color: #fff;
}

.btn-doc-download img {
  width: 16px;
  height: 16px;
}

.doc-notes {
  border: 1px solid var(--color-border);
  background: #f9fafb;
  padding: 25px;
}

.doc-notes h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.doc-notes ul {
  list-style: none;
}

.doc-notes ul li {
  font-size: 14px;
  color: #364153;
  line-height: 20px;
  margin-bottom: 8px;
}

/* ============================================================
   以上所有新页面的响应式适配
   ============================================================ */
@media (max-width: 1024px) {
  /* 公司介绍 */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* 服务与支持侧边栏布局：变为上下排列 */
  .service-layout {
    grid-template-columns: 1fr;
  }

  .support-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* 新闻详情 */
  .nd-title {
    font-size: 24px;
  }

  /* 联系我们 */
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  /* 售后服务表单 */
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* 序列号查询结果 */
  .result-grid {
    grid-template-columns: 1fr;
  }

  /* 公司介绍 */
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro-img {
    order: -1;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 技术文档 */
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-doc-download {
    align-self: flex-end;
  }

  .doc-meta {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  /* 新闻详情 */
  .nd-title {
    font-size: 20px;
  }

  /* 公司介绍 */
  .certs-grid {
    grid-template-columns: 1fr;
  }

  /* 序列号查询 */
  .search-row {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
  }
}
