/* ============================================================
   扩展组件样式：轮播、下载、分页、搜索、反馈、后台
   ============================================================ */

/* ---------- Logo 图片 ---------- */
.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.site-footer .logo__img {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
}

/* ---------- 语言切换按钮 ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  transition: all var(--transition);
}

.lang-switch:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-switch .sep {
  opacity: 0.3;
}

.lang-switch .active {
  color: var(--color-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 头部搜索框 ---------- */
.header-search {
  position: relative;
  margin-left: 4px;
}

.header-search input {
  width: 180px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  transition: all var(--transition);
  background: #fff;
}

.header-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  width: 240px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.header-search button:hover {
  background: rgba(37, 99, 235, 0.08);
}

/* ---------- 轮播 Banner ---------- */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel__slide {
  min-width: 100%;
  position: relative;
}

.carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel__slide .slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.carousel__slide .slide-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  color: #fff;
}

.carousel__slide .slide-content h2 {
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  max-width: 640px;
}

.carousel__slide .slide-content p {
  font-size: clamp(15px, 2vw, 19px);
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
  padding: 0;
}

.carousel__dots button.is-active {
  background: #fff;
  width: 26px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}

.carousel:hover .carousel__arrow {
  opacity: 1;
}

.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }

/* ---------- 产品卡片（列表页） ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card__thumb {
  height: 200px;
  overflow: hidden;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

.product-card__tag.tag-hardware {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
}

.product-card__tag-icon {
  display: inline-block;
  vertical-align: -2px;
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 3px;
  line-height: 1;
}

.product-card h3 {
  font-size: 19px;
}

.product-card h3 a { color: var(--color-text); }
.product-card h3 a:hover { color: var(--color-primary); }

.product-card p {
  color: var(--color-text-light);
  font-size: 14.5px;
  flex: 1;
}

/* 分类切换标签 */
.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tabs a {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  background: #fff;
}

.filter-tabs a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-tabs a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14px;
  padding: 0 10px;
  background: #fff;
}

.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- 下载页 ---------- */
.download-section { margin-bottom: 64px; }

.download-section:last-child { margin-bottom: 0; }

.download-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: all var(--transition);
}

.download-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.download-item__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12) inset;
}

.download-item__icon.icon-doc { background: rgba(6,182,212,0.12); color: #0891b2; box-shadow: 0 2px 8px rgba(6,182,212,0.12) inset; }
.download-item__icon.icon-solution { background: rgba(124,58,237,0.12); color: #7c3aed; box-shadow: 0 2px 8px rgba(124,58,237,0.12) inset; }

/* 服务页区块标题图标：与 download-item__icon 尺寸/配色统一 */
.section-header .eyebrow.eyebrow--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  padding: 0;
  margin-bottom: 18px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12) inset;
}
.section-header .eyebrow.eyebrow--icon.eyebrow--docs {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.12) inset;
}
.section-header .eyebrow.eyebrow--icon.eyebrow--solution {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12) inset;
}

.download-item__info { flex: 1; min-width: 220px; }

.download-item__info h4 { font-size: 16.5px; margin-bottom: 4px; }
.download-item__info p { color: var(--color-text-light); font-size: 14px; }

.download-item__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-light);
}

.download-item__meta span { display: inline-flex; align-items: center; gap: 5px; }

.download-item .btn { flex-shrink: 0; }

/* ---------- 反馈页 ---------- */
.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.scope-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input[type="file"] {
  padding: 8px;
  border: 1px dashed var(--color-border);
  background: var(--color-bg-soft);
  cursor: pointer;
}

/* ---------- 搜索页 ---------- */
.search-summary {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-light);
}

.search-summary strong { color: var(--color-primary); }

.search-section {
  margin-bottom: 48px;
}

.search-section > h3 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-section > h3 .count {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 400;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-light);
}

.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* ---------- 后台管理 ---------- */
.admin-body {
  background: #f1f5f9;
  font-family: var(--font-family);
  color: var(--color-text);
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #1e40af);
  padding: 24px;
}

.admin-login__card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.admin-login__card h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 6px;
}

.admin-login__card .sub {
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--color-bg-page);
  color: #94a3b8;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14.5px;
  margin-bottom: 4px;
  cursor: pointer;
}

.admin-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.admin-sidebar nav a.is-active { color: #fff; background: var(--color-primary); }

.admin-main {
  padding: 28px 32px;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-topbar h2 { font-size: 24px; }

.admin-topbar .actions { display: flex; gap: 10px; align-items: center; }

.admin-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-card h3 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  padding: 22px;
}

.stat-card .num { font-size: 30px; font-weight: 800; color: var(--color-primary); }
.stat-card .label { color: var(--color-text-light); font-size: 13.5px; margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-table th {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 600;
  background: var(--color-bg-soft);
}

.admin-table tr:hover td { background: #f8fafc; }

.admin-table .row-actions { display: flex; gap: 8px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-published { background: rgba(22,163,74,0.1); color: var(--color-success); }
.badge-draft { background: rgba(100,116,139,0.12); color: var(--color-text-light); }
.badge-new { background: rgba(217,119,6,0.12); color: var(--color-warning); }
.badge-replied { background: rgba(22,163,74,0.1); color: var(--color-success); }

.admin-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin: 14px 0 6px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.admin-form .row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }

.btn--sm { padding: 7px 14px; font-size: 13.5px; }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; color: #fff; }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 200;
}

.modal-backdrop.is-open { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 { margin-bottom: 8px; }

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.is-visible { transform: translateX(0); }
.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-danger); }

.hidden { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
  }
  .admin-sidebar .brand { padding: 0 12px 0 0; border: none; margin: 0; font-size: 15px; white-space: nowrap; }
  .admin-sidebar nav { display: flex; gap: 4px; }
  .admin-sidebar nav a { white-space: nowrap; margin: 0; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .header-search input { width: 130px; }
  .header-search input:focus { width: 170px; }
  .lang-switch { margin-left: 0; }
  .carousel__slide .slide-content h2 { font-size: 22px; }
  .admin-form .grid-2 { grid-template-columns: 1fr; }
  .admin-main { padding: 16px; }
  .download-item { flex-direction: column; align-items: flex-start; }
  .download-item .btn { width: 100%; }
}

/* ---------- 产品多图相册（详情页轮播） ---------- */
.product-gallery {
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.product-gallery .carousel__slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.product-gallery .carousel__arrow {
  opacity: 1;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
}

.product-gallery .carousel__dots button {
  background: rgba(255, 255, 255, 0.5);
}

.product-gallery .carousel__dots button.is-active {
  background: #fff;
}

.product-gallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- 后台：产品多图预览 ---------- */
.img-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 4px;
}

.img-preview-item {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 封面标识 / 排序按钮 / 拖拽状态 */
.img-preview-item.is-cover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.img-preview-cover {
  position: absolute;
  left: 4px;
  bottom: 4px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 5px;
  pointer-events: none;
}

.img-preview-ctrl {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  gap: 4px;
}

.img-preview-ctrl button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.img-preview-ctrl button:hover {
  background: var(--color-primary);
}

.img-preview-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.img-preview-item.dragging {
  opacity: 0.45;
}

.img-preview-item.drag-over {
  outline: 2px dashed var(--color-primary);
  outline-offset: -2px;
}

/* ---------- 关联下载：横排紧凑芯片多选（1/4 复选 · 3/4 名称） ---------- */
.rel-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
}

.rel-chip {
  display: grid;
  grid-template-columns: 1fr 3fr; /* 复选框区占 1/4，名称区占 3/4 */
  align-items: center;
  column-gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-soft);
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: all var(--transition);
}

.rel-chip:hover {
  border-color: var(--color-primary);
}

.rel-chip input {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.rel-text {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.rel-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rel-chip small {
  flex-shrink: 0;
  color: var(--color-text-light);
  font-size: 11px;
}

.rel-chip.is-checked {
  background: rgba(37, 99, 235, 0.09);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.rel-chip.is-checked small {
  color: var(--color-primary);
}

/* ---------- 新闻：多图轮播 / 单图 / 视频 ---------- */
.news-gallery {
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.news-gallery .carousel__slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.news-gallery .carousel__arrow {
  opacity: 1;
}

.news-single-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  display: block;
}

.news-video {
  width: 100%;
  max-height: 480px;
  border-radius: 12px;
  background: #000;
  margin-bottom: 24px;
  display: block;
  border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .news-gallery { height: 240px; }
  .news-gallery .carousel__slide img { height: 240px; }
}

/* ---------- 产品详情：小程序二维码图标 + 弹窗（同首页公众号效果） ---------- */
.demo-qr-wrap {
  position: relative;
}

.demo-qr-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.demo-qr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.45);
}

.demo-qr-btn svg {
  width: 22px;
  height: 22px;
}

.demo-qr-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  width: 176px;
  text-align: center;
  display: none;
  z-index: 30;
}

.demo-qr-popup.is-open {
  display: block;
  animation: floatIn 0.2s ease;
}

.demo-qr-popup img {
  width: 144px;
  height: 144px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

/* ---------- 产品详情：演示地址 + 小程序二维码 ---------- */
.demo-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-soft);
}

.demo-box .btn {
  font-size: 15px;
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-box img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  object-fit: contain;
  padding: 4px;
}

.qr-box p {
  color: var(--color-text-light);
  font-size: 13px;
  max-width: 90px;
  line-height: 1.5;
}

/* ---------- 新闻标题图片横幅页头 ---------- */
.page-hero--img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-page);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.page-hero--img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.68));
}

.page-hero--img .container {
  position: relative;
  z-index: 1;
}

.page-hero--img h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page-hero--img p {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero--img .breadcrumb {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero--img .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .page-hero--img {
    min-height: 220px;
  }
}

/* ---------- 新闻分类角标（叠加在标题图片上） ---------- */
.news-card__thumb {
  position: relative;
}

.news-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.news-card__cat--news { background: rgba(37, 99, 235, 0.88); }
.news-card__cat--award { background: rgba(217, 119, 6, 0.9); }
.news-card__cat--case { background: rgba(22, 163, 74, 0.9); }
.news-card__cat--insight { background: rgba(124, 58, 237, 0.9); }
.news-card__cat--other { background: rgba(100, 116, 139, 0.9); }

.news-hero__cat {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- 表格行拖拽排序（核心能力等） ---------- */
.drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 15px;
  text-align: center;
  user-select: none;
}

.admin-table tr[draggable="true"] {
  cursor: grab;
}

.admin-table tr.dragging {
  opacity: 0.45;
}

.admin-table tr.drag-over td {
  background: rgba(37, 99, 235, 0.08);
}

/* ---------- 核心能力图标选择器 ---------- */
.icon-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.icon-pick {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.icon-pick:hover {
  border-color: var(--color-primary);
}

.icon-pick.is-active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* SVG 能力图标按钮：内联 SVG 缩略渲染 */
.icon-pick--svg svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary, #2563eb);
}

/* ---------- 软件开发能力页：技术栈标签 ---------- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tech-tags span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 500;
}

[data-theme="dark"] .tech-tags span {
  background: var(--color-bg-card);
  border-color: #334155;
  color: #e2e8f0;
}

/* ---------- 团队成员：头像图片 + 简历 ---------- */
.avatar--img {
  border-radius: 50%;
  width: 88px;
  height: 88px;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.team-bio {
  color: var(--color-text-light);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 10px;
  text-align: center;
}

[data-theme="dark"] .team-bio {
  color: #94a3b8;
}

/* ---------- 右下角社交图标 ---------- */
.social-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-float__item {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  color: #64748b;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  padding: 0;
}

.social-float__item:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-float__item[aria-label="Facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-float__item[aria-label="Twitter"]:hover {
  background: #000;
  border-color: #000;
}

.social-float__item[aria-label="微信公众号"]:hover {
  background: #07c160;
  border-color: #07c160;
}

.social-float__popup {
  position: fixed;
  right: 72px;
  bottom: 60px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  width: 176px;
  text-align: center;
  display: none;
  z-index: 151;
}

.social-float__popup.is-open {
  display: block;
  animation: floatIn 0.2s ease;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-float__popup img {
  width: 144px;
  height: 144px;
  object-fit: contain;
  border-radius: 8px;
}

.social-float__popup-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.social-float__popup-close {
  position: absolute;
  top: 2px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 17px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.social-float__popup-close:hover {
  color: var(--color-danger);
}

@media (max-width: 640px) {
  .social-float {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .social-float__item {
    width: 38px;
    height: 38px;
  }

  .social-float__popup {
    right: 58px;
    bottom: 50px;
    width: 156px;
    padding: 12px;
  }

  .social-float__popup img {
    width: 128px;
    height: 128px;
  }
}

/* ============================================================
   轮播横幅：文字可读性渐变遮罩（桌面 + 移动通用）
   ============================================================ */
.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.5) 0%,
    rgba(2, 6, 23, 0.26) 40%,
    rgba(2, 6, 23, 0) 72%
  );
  pointer-events: none;
  z-index: 1;
}

.carousel__slide .slide-inner {
  z-index: 2;
}

.carousel__dots {
  z-index: 3;
}

.carousel__arrow {
  z-index: 3;
}

/* 产品相册轮播不需要文字遮罩 */
.product-gallery .carousel__slide::after {
  display: none;
}

/* ============================================================
   移动端首页优化：公司名 Logo 字体与轮播图协调   ============================================================ */
@media (max-width: 640px) {
  /* ---------- 公司名 Logo ---------- */
  .logo {
    font-size: 17px;
    letter-spacing: 0.02em;
  }

  .logo span:last-child {
    white-space: nowrap;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 8px;
  }

  .logo__img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  /* 头部右侧控件瘦身，给 Logo 留空间 */
  .header-right {
    gap: 4px;
  }

  .header-search input {
    width: 96px;
    padding: 7px 30px 7px 12px;
    font-size: 13px;
  }

  .header-search input:focus {
    width: 132px;
  }

  .header-search button {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .lang-switch {
    padding: 5px 8px;
    font-size: 12px;
    gap: 2px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle span {
    top: 19px;
  }

  /* ---------- 首页轮播：定高横幅，文案与图片协调 ---------- */
  .carousel__slide {
    height: 250px;
  }

  .carousel__slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel__slide .slide-content {
    padding: 0 20px;
  }

  .carousel__slide .slide-content h2 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 6px;
    max-width: 88%;
  }

  .carousel__slide .slide-content p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    max-width: 82%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel__slide .slide-content .btn {
    padding: 9px 18px;
    font-size: 13.5px;
  }

  .carousel__dots {
    bottom: 12px;
    gap: 8px;
  }

  .carousel__dots button {
    width: 8px;
    height: 8px;
  }

  .carousel__dots button.is-active {
    width: 20px;
  }

  .carousel__arrow {
    display: none;
  }
}

/* ============================================================
   暗夜配色方案（data-theme="dark"）
   深色背景 + 浅色文字，保证文字/图标与背景的高对比
   ============================================================ */
[data-theme="dark"] {
  --color-text: #e6ebf5;
  --color-text-light: #9aa9c3;
  --color-bg: #0d1526;
  --color-bg-card: #141e36;
  --color-bg-page: #0a1120;
  --color-bg-soft: #111a2f;
  --color-border: #25314d;
  --color-border-strong: #33415f;
  --color-primary: #6ea8fe;
  --color-primary-dark: #4f8ef7;
  --color-primary-light: #93c0ff;
  --color-primary-soft: rgba(110, 168, 254, 0.14);
  --color-accent: #2dd4ee;
  --color-accent-soft: rgba(45, 212, 238, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 56px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: var(--color-bg-page);
  background-image: radial-gradient(1200px 480px at 50% -80px, rgba(110, 168, 254, 0.05), transparent 70%);
  background-attachment: fixed;
}

/* 顶部导航 */
[data-theme="dark"] .site-header {
  background: rgba(13, 21, 38, 0.9);
}

[data-theme="dark"] .main-nav {
  background: var(--color-bg-page);
  border-color: var(--color-border);
}

[data-theme="dark"] .nav-toggle span,
[data-theme="dark"] .nav-toggle span::before,
[data-theme="dark"] .nav-toggle span::after {
  background: #e2e8f0;
}

[data-theme="dark"] .header-search input,
[data-theme="dark"] .lang-switch {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: #e2e8f0;
}

[data-theme="dark"] .header-search button {
  color: #94a3b8;
}

/* 卡片类组件：白 → 深色面板 */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .hero__card,
[data-theme="dark"] .hero__float,
[data-theme="dark"] .step-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .download-item,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .cert-card,
[data-theme="dark"] .mission-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .img-preview-item,
[data-theme="dark"] .rel-chip,
[data-theme="dark"] .social-float__item,
[data-theme="dark"] .social-float__popup {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

/* 暗色模式：社交图标高亮（深色底 + 浅色图标，避免看不清） */
/* 暗色模式：社交图标高亮（深色底 + 亮色图标，突出可见） */
[data-theme="dark"] .social-float__item {
  background: #27406f;
  border-color: #4a6db5;
  color: #d6e4ff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(110, 168, 254, 0.25) inset;
}

[data-theme="dark"] .social-float__item:hover {
  color: #fff;
  background: #33508a;
  border-color: #8ab8ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(110, 168, 254, 0.4);
}

[data-theme="dark"] .social-float__item[aria-label="Facebook"]:hover {
  background: #1877f2;
  border-color: #6fa8ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(24, 119, 242, 0.55);
}

[data-theme="dark"] .social-float__item[aria-label="Twitter"]:hover {
  background: #1da1f2;
  border-color: #6fc6ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(29, 161, 242, 0.55);
}

[data-theme="dark"] .social-float__item[aria-label="微信公众号"]:hover {
  background: #07c160;
  border-color: #5ce09c;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(7, 193, 96, 0.55);
}

/* 暗色模式：微信二维码弹窗文字适配 */
[data-theme="dark"] .social-float__popup-title {
  color: #e6ebf5;
}

[data-theme="dark"] .hero__card-head .tag {
  background: rgba(34, 197, 94, 0.15);
}

/* 页面横幅 / 浅色渐变区域 */
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, var(--color-bg-page) 0%, var(--color-bg-card) 100%);
  border-color: var(--color-border);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--color-bg-page) 0%, #1a2a4f 55%, var(--color-bg-card) 100%);
}

[data-theme="dark"] .map-placeholder {
  background: linear-gradient(135deg, var(--color-bg-card), #1a2a4f);
  border-color: var(--color-border);
}

/* 高对比：主按钮深蓝底 + 白字；链接用亮蓝 */
[data-theme="dark"] .btn--primary {
  background: var(--color-primary-dark);
  color: #fff;
}

[data-theme="dark"] .btn--primary:hover {
  background: var(--color-primary);
}

/* 统计横幅 / CTA 横幅：暗色下保持深色沉稳（避免亮蓝横幅白字对比不足） */
[data-theme="dark"] .stats-band {
  background: linear-gradient(135deg, #1a2a4f 0%, var(--color-bg-card) 100%);
  color: #e6ebf5;
}

[data-theme="dark"] .cta-band {
  background: linear-gradient(120deg, #1a2a4f 0%, #16213e 100%);
  color: #e6ebf5;
}

[data-theme="dark"] .btn--outline {
  border-color: #475569;
  color: #e2e8f0;
}

[data-theme="dark"] .btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

[data-theme="dark"] .filter-tabs a {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: #e2e8f0;
}

[data-theme="dark"] .filter-tabs a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #0f172a;
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: #e2e8f0;
}

[data-theme="dark"] .pagination .is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #0f172a;
}

/* 表单输入 */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--color-bg-page);
  border-color: var(--color-border);
  color: #e2e8f0;
}

/* 轮播箭头（浅色背景在白图上，暗夜保持可见） */
[data-theme="dark"] .carousel__arrow {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

/* 产品相册角标 */
[data-theme="dark"] .product-gallery__count {
  background: rgba(0, 0, 0, 0.6);
}

/* 下载项元信息、卡片说明在深底上保持可读 */
[data-theme="dark"] .download-item__info p,
[data-theme="dark"] .product-card p,
[data-theme="dark"] .news-card__body p,
[data-theme="dark"] .feature-card p {
  color: #94a3b8;
}

/* 二维码框/图片背景 */
[data-theme="dark"] .qr-box img {
  background: #fff;
}

/* 核心能力介绍页暗夜适配 */
[data-theme="dark"] .cap-section {
  background: var(--color-bg-card);
  border-color: #334155;
}

[data-theme="dark"] .cap-section h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .cap-section p {
  color: #94a3b8;
}

[data-theme="dark"] .cap-intro p {
  color: #cbd5e1;
}

[data-theme="dark"] .cap-highlight {
  color: #7fb0ff;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .cap-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(8, 145, 178, 0.12));
  border-color: rgba(59, 130, 246, 0.28);
}

[data-theme="dark"] .feature-card .icon svg {
  color: #7fb0ff;
}
