/* bet5u blog — OceanWP 三列网格 + 右侧边栏（与旧版 index.html 一致） */
/* Google Brasil mobile SEO: readable body ≥16px, comfortable line-height, no overflow */

body.blog #main {
  padding-top: 0;
}

body.blog.single-post .cms-post-content,
body.blog .cms-post-content {
  font-size: 16px;
  line-height: 1.75;
  color: #1f2937;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
body.blog .cms-post-content h2 {
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  line-height: 1.35;
  margin: 1.4em 0 0.6em;
  color: #111827;
}
body.blog .cms-post-content h3 {
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  line-height: 1.4;
  margin: 1.15em 0 0.45em;
  color: #111827;
}
body.blog .cms-post-content p,
body.blog .cms-post-content li {
  margin: 0 0 0.85em;
}
body.blog .cms-post-content a {
  color: #c2410c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.blog .cms-post-content .seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1em 0;
}
body.blog.single-post .single-post-title {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.3;
  margin: 0 0 10px;
}
body.blog .entry-meta-seo {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
}

/* 面包屑 */
body.blog .page-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  margin-bottom: 24px;
}
body.blog .page-header .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
/* Keep H1 visible for SEO + mobile readability (Google mobile SEO) */
body.blog .page-header-title {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 10px;
  color: #222;
  line-height: 1.3;
}
body.blog.single-post .page-header-title {
  /* On article pages the real H1 is in .entry-title; keep breadcrumb label quieter */
  font-size: 1rem;
  font-weight: 600;
  color: #444;
}
body.blog .site-breadcrumbs {
  font-size: 14px;
  color: #666;
}
body.blog .trail-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
body.blog .trail-item a {
  color: #333;
  text-decoration: none;
}
body.blog .trail-item a:hover {
  color: #f58428;
}
body.blog .breadcrumb-sep {
  margin: 0 6px;
  color: #999;
}

/* 主栏 + 侧边栏 */
body.blog #content-wrap.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
}
body.blog #primary.content-area {
  flex: 1 1 0;
  min-width: 0;
  width: 72%;
  max-width: 72%;
  padding-right: 30px;
  box-sizing: border-box;
}
body.blog #right-sidebar.sidebar-primary {
  flex: 0 0 28%;
  width: 28%;
  max-width: 28%;
  box-sizing: border-box;
}

/* 三列网格 */
body.blog #blog-entries.oceanwp-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
body.blog .blog-entry.col.span_1_of_3 {
  width: 33.333%;
  padding: 0 12px 32px;
  box-sizing: border-box;
  margin: 0;
  float: none;
  display: flex;
}
body.blog .blog-entry-inner {
  background: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* 缩略图 — 按内容栏宽度等比缩放，完整显示原图（不裁切） */
body.blog .blog-entry .thumbnail {
  margin-bottom: 12px;
  overflow: visible;
  background: transparent;
}
body.blog .blog-entry .thumbnail-link {
  display: block;
  position: relative;
  overflow: visible;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  background: #f3f4f6;
  border-radius: 4px;
}
body.blog .blog-entry .thumbnail-link img,
body.blog .blog-entry .thumbnail img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  display: block !important;
  transition: opacity 0.25s ease;
}
body.blog .blog-entry .thumbnail-link:hover img {
  transform: none;
  opacity: 0.96;
}
body.blog .blog-entry .thumbnail .overlay {
  display: none;
}
body.blog .blog-entry .thumbnail-caption {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

/* 标题 + 摘要 — 过长隐藏，卡片高度统一 */
body.blog .blog-entry-header {
  margin-bottom: 10px;
}
body.blog .blog-entry-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #222;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}
body.blog .blog-entry-title a {
  color: inherit;
  text-decoration: none;
}
body.blog .blog-entry-title a:hover {
  color: #f58428;
}
body.blog .blog-entry-summary {
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  flex: 1 1 auto;
  overflow: hidden;
}
body.blog .blog-entry-summary p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* 分页 */
body.blog .infinite-scroll-nav {
  clear: both;
  width: 100%;
  padding: 16px 12px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  margin-top: 8px;
}
body.blog .infinite-scroll-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
body.blog .infinite-scroll-nav a:hover {
  color: #f58428;
}

/* 侧边栏 */
body.blog #right-sidebar-inner {
  padding-top: 4px;
}
body.blog .sidebar-box {
  margin-bottom: 28px;
}
body.blog .wp-block-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #222;
}
body.blog .wp-block-search__label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}
body.blog .wp-block-search__inside-wrapper {
  display: flex;
  gap: 0;
}
body.blog .wp-block-search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-right: none;
  font-size: 14px;
}
body.blog .wp-block-search__button {
  padding: 10px 16px;
  background: #13aff0;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}
body.blog .wp-block-search__button:hover {
  background: #0b8ec4;
}

/* 最近文章 */
body.blog .oceanwp-recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.blog .oceanwp-recent-posts > li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
body.blog .oceanwp-recent-posts > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
body.blog .recent-posts-thumbnail {
  flex: 0 0 120px;
  width: 120px;
  height: auto;
  min-height: 60px;
  display: block;
  position: relative;
  overflow: visible;
  background: #f3f4f6;
  border-radius: 3px;
  align-self: flex-start;
}
body.blog .recent-posts-thumbnail img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}
body.blog .recent-posts-details {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}
body.blog .recent-posts-details a.recent-posts-title {
  color: #222;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
body.blog .recent-posts-details a.recent-posts-title:hover {
  color: #f58428;
}
body.blog .recent-posts-date {
  font-size: 12px;
  color: #999;
}

/* 单篇文章 */
body.blog .single-post-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #222;
}
body.blog article .thumbnail {
  margin-bottom: 12px;
  background: transparent;
  border-radius: 4px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

/* Android / iOS download CTAs under featured image */
body.blog .cms-download-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 4px 0 2px;
}
body.blog .cms-download-note {
  flex: 1 0 100%;
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}
body.blog .cms-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(100%, 220px);
  flex: 1 1 200px;
  max-width: 280px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #d32f2f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
body.blog .cms-download-btn:hover {
  background: #b71c1c;
  color: #fff !important;
  transform: translateY(-1px);
}
body.blog .cms-download-btn-mod {
  background: #ea580c;
}
body.blog .cms-download-btn-mod:hover {
  background: #c2410c;
}
body.blog .cms-download-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  body.blog .cms-download-btns {
    gap: 10px;
  }
  body.blog .cms-download-btn {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 14px;
  }
}
body.blog article .thumbnail img,
body.blog.single-post article .thumbnail img,
body.blog .cms-post-content img,
body.blog #content .thumbnail img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  display: block !important;
  margin: 0 auto !important;
}
body.blog .meta.ospm-default {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  color: #888;
  font-size: 14px;
}
body.blog .cms-post-content {
  line-height: 1.85;
  font-size: 16px;
  color: #444;
}
body.blog .cms-post-content h2 {
  font-size: 1.35rem;
  margin: 1.5em 0 0.6em;
  color: #222;
}
body.blog .cms-post-content h3 {
  font-size: 1.15rem;
  margin: 1.25em 0 0.5em;
  color: #222;
}
body.blog .cms-post-content p,
body.blog .cms-post-content ul,
body.blog .cms-post-content ol {
  margin-bottom: 1em;
}
body.blog .cms-related {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}
body.blog .cms-related h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
body.blog .cms-related ul {
  margin: 0;
  padding-left: 1.2em;
}
body.blog .cms-related li { margin-bottom: 8px; }
body.blog .entry-meta-seo {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}

@media (max-width: 991px) {
  body.blog #primary.content-area,
  body.blog #right-sidebar.sidebar-primary {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }
  body.blog .blog-entry.col.span_1_of_3 {
    width: 50%;
  }
}

@media (max-width: 640px) {
  body.blog .blog-entry.col.span_1_of_3 {
    width: 100%;
  }
  body.blog .page-header {
    padding: 14px 0;
  }
  body.blog .cms-post-content {
    font-size: 16px;
    line-height: 1.8;
  }
  body.blog .cms-download-btn {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 44px;
  }
  body.blog .single-post-title {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  body.blog #mobile-dropdown {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* sticky header (menu.js) */
#site-header.shrink-header.is-sticky{
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}