/* =================================================================
 * baseline.css  — base=bootstrap-swiper  (v1.0.0)
 * 适用：41 站中 base=bootstrap-swiper 的 1 站（siamsport 风格 / fishhunter2ex-newbie）。
 * 禁止裸元素选择器；允许使用 Bootstrap/Swiper 原生类。
 * 加载顺序：base.css → baseline.css → 主题 style → sf-fallback
 * ================================================================= */

/* -------- 1. Bootstrap 容器 -------- */
.container,
.container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
.container { max-width: 1200px; }
.container-fluid { max-width: 100%; }
.container.mx-auto { margin-inline: auto; }

/* -------- 2. Bootstrap row/col -------- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -8px;
}
.row > [class*="col-"],
.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,
.col-7,.col-8,.col-9,.col-10,.col-11,.col-12 {
  padding-inline: 8px;
  box-sizing: border-box;
}
.col-1  { width: 8.33333333%; }
.col-2  { width: 16.66666667%; }
.col-3  { width: 25%; }
.col-4  { width: 33.33333333%; }
.col-5  { width: 41.66666667%; }
.col-6  { width: 50%; }
.col-7  { width: 58.33333333%; }
.col-8  { width: 66.66666667%; }
.col-9  { width: 75%; }
.col-10 { width: 83.33333333%; }
.col-11 { width: 91.66666667%; }
.col-12 { width: 100%; }

/* -------- 3. Header 高度 -------- */
.navbar,
.site-header,
.header {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .navbar, .site-header, .header { min-height: 56px; }
}

/* -------- 4. Navbar 菜单 -------- */
.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav > .nav-item { position: relative; }
.navbar-nav > .nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  min-height: 44px;
  color: inherit;
}
.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9000;
}
.navbar-nav > .nav-item:hover > .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

/* -------- 5. Swiper -------- */
.swiper-container,
.swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

/* -------- 6. 图片容器：强制 aspect-ratio -------- */
.card-img,
.card-img-top,
.swiper-slide__media,
.post-thumbnail,
.thumbnail,
figure.object-fit {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}
.card-img img,
.card-img-top img,
.swiper-slide__media img,
.post-thumbnail img,
.thumbnail img,
figure.object-fit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-img--square,
.post-thumbnail--square,
.thumbnail--square { aspect-ratio: 1 / 1; }
.card-img--banner,
.post-thumbnail--banner,
.thumbnail--banner { aspect-ratio: 21 / 9; }

/* -------- 7. Bootstrap 按钮 -------- */
.btn,
.button {
  display: inline-block;
  padding: 10px 20px;
  min-height: 40px;
  line-height: 1.4;
  font-weight: 600;
  border-radius: 4px;
  border: 0;
  background: #ffc83d;
  color: #111;
  cursor: pointer;
  transition: background .18s ease, transform .1s ease;
}
.btn:hover, .button:hover {
  background: #ffb300;
  transform: translateY(-1px);
}

/* -------- 8. 响应式 -------- */
@media (max-width: 768px) {
  .row > [class*="col-"],
  .col-1,.col-2,.col-3,.col-4,.col-5,.col-6,
  .col-7,.col-8,.col-9,.col-10,.col-11,.col-12 { width: 100%; }
  .navbar-nav { flex-direction: column; width: 100%; }
}

/* -------- 9. 图片失败协同 -------- */
.sf-broken { visibility: hidden; }
.card-img.sf-img-fail,
.thumbnail.sf-img-fail,
figure.object-fit.sf-img-fail { display: none !important; }
