﻿/* 单页内容块通用样式：所有模板共享，模板可在自身 style.css 中覆盖 */
.sb {
  margin: 0 auto 28px;
  max-width: 100%;
}

.sb:last-child {
  margin-bottom: 0;
}

.sb-full {
  /* 全屏块宽度扣除垂直滚动条，精确匹配视口内容宽度，避免产生横向滚动条 */
  width: calc(100vw - var(--sm-sbw, 0px));
  max-width: calc(100vw - var(--sm-sbw, 0px));
  margin-left: calc(50% - (100vw - var(--sm-sbw, 0px)) / 2);
  margin-right: calc(50% - (100vw - var(--sm-sbw, 0px)) / 2);
  border-radius: 0;
}

.sb-bordered {
  border: 1px solid #e8ebf0;
  border-radius: 8px;
}

.sb img {
  max-width: 100%;
  display: block;
}

/* 文本块 */
.sb-text {
  font-size: 15px;
  line-height: 1.9;
  color: #2b3442;
}

.sb-text p {
  margin: 0 0 12px;
}

.sb-text img {
  height: auto;
}

/* 图片块 */
.sb-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.sb-full.sb-image img {
  border-radius: 0;
}

/* 图文块 */
.sb-it {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.sb-it-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.sb-it-body h2 {
  font-size: 24px;
  margin: 0 0 14px;
  color: #1a2846;
}

.sb-it-body .sb-text {
  color: #4a5566;
}

/* 幻灯片块 */
.sb-banner {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.sb-banner-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.sb-slide {
  flex: 0 0 100%;
  position: relative;
}

.sb-slide img {
  width: 100%;
  height: auto;
}

/* 设置了模块高度：图片/幻灯片按高度填充，宽度自适应并居中 */
.sb-fixed-height .sb-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-fixed-height .sb-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.sb-fixed-height .sb-banner,
.sb-fixed-height .sb-banner-track,
.sb-fixed-height .sb-slide {
  height: 100%;
}

.sb-fixed-height .sb-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-fixed-height .sb-slide img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.sb-slide-desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 18px 24px 46px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(to top, rgba(10, 18, 32, 0.72), rgba(10, 18, 32, 0));
}

.sb-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.sb-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.sb-dot.active {
  width: 26px;
  border-radius: 6px;
  background: #fff;
}

.sb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 18, 32, 0.42);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.sb-arrow:hover {
  background: rgba(10, 18, 32, 0.72);
}

.sb-arrow.prev {
  left: 16px;
}

.sb-arrow.next {
  right: 16px;
}

/* 多列模块 */
.sb-cols {
  display: grid;
  gap: 24px;
}

.sb-col-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 14px;
}

.sb-col h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1a2846;
}

.sb-col .sb-text {
  color: #4a5566;
  font-size: 14px;
}

/* 地图模块 */
.sb-map {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f6;
}

.sb-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}


/* 栏目文章列表 */
.sb-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
}

.sb-list > * {
  flex: 0 0 calc((100% - (var(--sb-list-cols, 3) - 1) * 24px) / var(--sb-list-cols, 3));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sb-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  color: #2b3442;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sb-list-item:hover {
  border-color: #155bd4;
  color: #155bd4;
}

.sb-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #155bd4;
  flex: none;
}

.sb-list-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sb-list-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标题下的摘要：颜色略浅 */
.sb-list-summary {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #98a1b0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-list-date {
  color: #97a1b0;
  font-size: 13px;
  flex: none;
}

.sb-img-item {
  display: block;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  overflow: hidden;
  color: #2b3442;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sb-img-item:hover {
  border-color: #155bd4;
  box-shadow: 0 10px 26px rgba(21, 91, 212, 0.12);
}

.sb-img-item img,
.sb-img-empty {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f1f4f9;
}

.sb-img-empty {
  display: grid;
  place-items: center;
  color: #97a1b0;
  font-size: 22px;
}

.sb-img-title {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 留言模块 */
.sb-msg {
  padding: 28px;
  background: transparent;
  border-radius: 10px;
}

.sb-msg h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1a2846;
}

.sb-msg-tip {
  margin: 0 0 18px;
  color: #6b7686;
  font-size: 14px;
}

.sb-msg .msg-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.sb-msg .form-row {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #4a5566;
}

.sb-msg .form-row em {
  color: #e5484d;
  font-style: normal;
}

.sb-msg input,
.sb-msg textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9dfe8;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.sb-msg textarea {
  resize: vertical;
}

.sb-msg input:focus,
.sb-msg textarea:focus {
  outline: none;
  border-color: #155bd4;
}

.sb-msg .btn-primary {
  justify-self: start;
  padding: 10px 26px;
  border: 0;
  border-radius: 6px;
  background: #155bd4;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.sb-empty {
  color: #97a1b0;
  font-size: 14px;
}

/* 列表分页：整体居中；首尾页不可点时置灰，页数过多时显示省略号（所有模板共用） */
.pagination {
  justify-content: center;
}

.pagination .page-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .ellipsis {
  align-self: center;
  padding: 0 2px;
  color: #98a1b0;
  font-size: 13px;
}

/* 分类导航：位置由栏目设置（顶部/左侧/右侧）决定，列表页与详情页一致，所有模板共用 */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

.cat-chip {
  padding: 8px 18px;
  border: 1px solid #e5e9f0;
  border-radius: 999px;
  background: #fff;
  color: #5c6b84;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cat-chip:hover {
  border-color: #155bd4;
  color: #155bd4;
}

.cat-chip.active {
  background: #155bd4;
  border-color: #155bd4;
  color: #fff;
}

/* 「全部分类」链接：带背景色的标题式入口，样式区别于分类项，始终显示 */
.cat-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #eef4ff;
  font-size: 15px;
  font-weight: 600;
  color: #155bd4;
}

.cat-all::after {
  content: "›";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
}

.cat-all:hover {
  background: #e2ecff;
  color: #155bd4;
}

.cat-all.active {
  background: #155bd4;
  color: #fff;
}

/* 左侧/右侧栏：全部分类占满一栏宽度 */
.cat-side .cat-all {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
}

/* 顶部位置的分类导航：「全部分类」与子分类胶囊同一行排列 */
.cat-nav-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
}

.cat-nav-top .cat-all {
  margin-bottom: 0;
}

.cat-nav-top .cat-bar {
  margin: 0;
}

.cat-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.cat-layout.cat-right {
  grid-template-columns: minmax(0, 1fr) 200px;
}

.cat-side {
  position: sticky;
  top: 88px;
}

.cat-main {
  min-width: 0;
}

.cat-nav {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-nav a {
  display: block;
  padding: 10px 14px;
  border: 1px solid #e5e9f0;
  border-radius: 6px;
  background: #fff;
  color: #5c6b84;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cat-nav a:hover {
  border-color: #155bd4;
  color: #155bd4;
}

/* 一级分类：当前项蓝底高亮 */
.cat-nav > li.active > a {
  background: #155bd4;
  border-color: #155bd4;
  color: #fff;
  font-weight: 500;
}

/* 二级及以下分类：缩进显示，当前项浅蓝底 */
.cat-nav .cat-sub {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.cat-nav .cat-sub a {
  border: 0;
  background: transparent;
  padding: 8px 12px;
}

.cat-nav .cat-sub a:hover {
  background: #f2f6ff;
}

.cat-nav .cat-sub li.active > a {
  background: #eef4ff;
  color: #155bd4;
  font-weight: 600;
}

@media (max-width: 900px) {
  .cat-layout,
  .cat-layout.cat-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cat-side {
    position: static;
  }
}

/* 列表页底部：条数左对齐，分页导航在其右侧居中 */
.list-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.list-footer .list-meta {
  justify-self: start;
  margin: 0;
}

.list-footer .pagination {
  justify-self: center;
  margin-top: 0;
}

@media (max-width: 640px) {
  .list-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .list-footer .list-meta {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .sb-it {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sb-cols {
    grid-template-columns: 1fr !important;
  }

  .sb-list > * {
    flex-basis: 100% !important;
  }

  .sb-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* ==========================================================================
   内容组件：幻灯片多模板（classic / caption / hero / thumbs）
   classic 保持历史结构；其余模板使用「媒体层 + 蒙层 + 内容层」结构。
   ========================================================================== */
.sb-banner:not(.sb-banner-classic) {
  --sb-banner-h: 460px;
  background: #101a2e;
  border-radius: 10px;
}

.sb-banner:not(.sb-banner-classic) .sb-banner-track,
.sb-banner:not(.sb-banner-classic) .sb-slide {
  min-height: var(--sb-banner-h);
}

.sb-banner:not(.sb-banner-classic) .sb-slide {
  display: flex;
  overflow: hidden;
}

.sb-slide-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d3b74, #0d1730);
}

.sb-slide-media img.sb-slide-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

/* 模块设置了高度时，新模板仍然铺满（覆盖旧的「宽度自适应」规则） */
.sb-fixed-height .sb-banner:not(.sb-banner-classic) .sb-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.sb-slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sb-slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 860px;
  padding: 48px 7%;
  color: #fff;
  box-sizing: border-box;
}

.sb-slide-content.sb-align-center {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.sb-slide-content.sb-align-right {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.sb-slide-kicker {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sb-slide-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sb-banner-hero .sb-slide-title {
  font-size: clamp(30px, 4.2vw, 58px);
}

.sb-slide-subtitle {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 20px);
  opacity: 0.92;
}

.sb-slide-description {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.82;
}

.sb-slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.sb-banner-classic .sb-slide-buttons {
  position: absolute;
  left: 24px;
  bottom: 56px;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sb-btn:hover {
  transform: translateY(-2px);
}

.sb-btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.sb-btn-primary:hover {
  background: #1d4ed8;
}

.sb-btn-outline,
.sb-btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.sb-btn-outline:hover,
.sb-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sb-btn-link,
.sb-btn-text {
  padding: 0 6px;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 淡入淡出效果：幻灯片叠加，不再横向位移 */
.sb-banner.sb-effect-fade .sb-banner-track {
  display: block;
  position: relative;
  transform: none !important;
}

.sb-banner.sb-effect-fade .sb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.sb-banner.sb-effect-fade .sb-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 缩略图导航 */
.sb-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.sb-thumb {
  width: 74px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: rgba(10, 18, 32, 0.55);
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-thumb.active {
  border-color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   内容组件：多宫格（icon / image / number / card / mosaic）
   ========================================================================== */
/* 子块整体居中：按设置列数排布，不足一行时两侧留白均分（块居中，不是文本居中） */
.sb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--sb-grid-gap, 16px);
}

.sb-grid:not(.sb-scroll-grid) > .sb-grid-item {
  flex: 0 0 calc((100% - (var(--sb-grid-cols, 4) - 1) * var(--sb-grid-gap, 16px)) / var(--sb-grid-cols, 4));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sb-grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.sb-grid-item:hover {
  transform: translateY(-3px);
  border-color: #9db9ff;
  box-shadow: 0 12px 28px rgba(26, 54, 104, 0.12);
}

.sb-grid-media {
  display: block;
}

.sb-grid-media img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  border-radius: 8px;
}

.sb-grid-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sb-item-color, #2563eb);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.sb-grid-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sb-grid-title {
  font-size: 17px;
  font-weight: 600;
  color: #1c2838;
}

.sb-grid-subtitle {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8492a6;
  text-transform: uppercase;
}

.sb-grid-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #637083;
}

.sb-grid-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  z-index: 1;
}

.sb-grid-more {
  margin-top: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}

/* 数字宫格：大号数字，无底色 */
.sb-grid-number .sb-grid-icon {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--sb-item-color, #2563eb);
  font-size: 34px;
  letter-spacing: -0.02em;
}

/* 图文宫格 / 拼图宫格：图片贴边 */
.sb-grid-image .sb-grid-item,
.sb-grid-mosaic .sb-grid-item,
.sb-grid-card .sb-grid-item {
  padding: 0;
  overflow: hidden;
}

.sb-grid-image .sb-grid-body,
.sb-grid-mosaic .sb-grid-body,
.sb-grid-card .sb-grid-body {
  padding: 16px 18px 20px;
}

.sb-grid-image .sb-grid-media img,
.sb-grid-mosaic .sb-grid-media img,
.sb-grid-card .sb-grid-media img {
  border-radius: 0;
}

/* ==========================================================================
   内容组件：横向滚动宫格
   ========================================================================== */
.sb-scroll-grid.sb-grid {
  display: block;
  position: relative;
}

.sb-scroll-track {
  display: flex;
  gap: var(--sb-grid-gap, 16px);
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

/* 内容不足一屏时整体居中；溢出时 auto 归零，滚动不受影响 */
.sb-scroll-track > :first-child {
  margin-left: auto;
}

.sb-scroll-track > :last-child {
  margin-right: auto;
}

.sb-scroll-track > .sb-grid-item {
  flex: 0 0 var(--sb-item-width, 260px);
  scroll-snap-align: start;
}

.sb-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 36, 66, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sb-scroll-arrow:hover {
  background: #2563eb;
}

.sb-scroll-arrow.prev {
  left: 2px;
}

.sb-scroll-arrow.next {
  right: 2px;
}

@media (max-width: 900px) {
  .sb-grid:not(.sb-scroll-grid) > .sb-grid-item {
    flex: 0 0 calc((100% - var(--sb-grid-gap, 16px)) / 2);
  }

  .sb-slide-content {
    padding: 32px 6%;
  }
}

@media (max-width: 560px) {
  .sb-grid:not(.sb-scroll-grid) > .sb-grid-item {
    flex: 0 0 100%;
  }

  .sb-slide-buttons {
    gap: 8px;
  }

  .sb-btn {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .sb-thumb {
    width: 54px;
    height: 36px;
  }
}

/* ===== 内容页多图：幻灯片（单图仍用 .article-cover） ===== */
.article-gallery {
  position: relative;
  margin: 18px 0 22px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6fa;
}

.article-gallery-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.article-gallery-item {
  flex: 0 0 100%;
  min-width: 0;
}

.article-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #f4f6fa;
}

.article-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease;
}

.article-gallery-nav:hover {
  opacity: 1;
}

.article-gallery-nav.prev {
  left: 12px;
}

.article-gallery-nav.next {
  right: 12px;
}

.article-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.article-gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: width 0.2s ease;
}

.article-gallery-dots button.active {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 640px) {
  .article-gallery-nav {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .article-gallery-item img {
    max-height: 320px;
  }
}
