/* ============================================================
   OUBEI FOODS 前台主题样式（由旧 DB 模板/组件 CSS 固化为代码文件）
   ============================================================ */

:root {
  --primary: #0d6efd;
  --text: #212529;
  --bg: #ffffff;
  --container-max: 1680px;
  --radius: 6px;
}

/* ---- 页头 (header) ---- */
.rb-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(9, 26, 61, .08);
  box-shadow: 0 8px 24px rgba(9, 26, 61, .05);
  position: sticky;
  top: 0;
  z-index: 30;
}
.rb-header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  min-height: 74px;
}
.rb-brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}
.rb-brand img {
  display: block;
  height: 48px;
  object-fit: contain;
  width: auto;
}
.rb-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: clamp(14px, 2vw, 30px);
  justify-content: flex-end;
}
.rb-nav a {
  color: #15264b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.rb-nav a:hover {
  color: var(--primary);
}
.rb-nav-cta {
  background: var(--primary);
  border-radius: 8px;
  color: #fff !important;
  padding: 12px 18px;
}
.rb-nav-cta:hover {
  background: #c80510;
}
.rb-menu-toggle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  width: 46px;
}
.rb-menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
}
@media (max-width: 991px) {
  .rb-menu-toggle {
    display: block;
  }
  .rb-nav {
    background: #fff;
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 8px 20px 18px;
    position: absolute;
    right: 0;
    top: 74px;
  }
  .rb-nav.is-open {
    display: flex;
  }
  .rb-nav a {
    border-bottom: 1px solid #eef2f7;
    padding: 14px 0;
    width: 100%;
  }
  .rb-nav-cta {
    margin-top: 10px;
    text-align: center;
  }
}

/* ---- 页脚 (footer) ---- */
.rb-footer {
  background: #071a40;
  color: rgba(255, 255, 255, .78);
  margin-top: 0;
  padding: 56px 0 26px;
}
.rb-footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.25fr .75fr .85fr 1.35fr;
}
.rb-footer-logo {
  background: #fff;
  border-radius: 10px;
  height: 54px;
  object-fit: contain;
  padding: 6px 10px;
  width: auto;
}
.rb-footer h3 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 16px;
}
.rb-footer p {
  line-height: 1.7;
  margin: 16px 0 0;
}
.rb-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.rb-footer .rb-footer-social a {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  overflow: visible;
  text-decoration: none;
  width: 36px;
}
.rb-footer .rb-footer-social a:hover {
  transform: translateY(-1px);
}
.rb-footer-social i {
  display: block;
  font-family: "bootstrap-icons" !important;
  font-size: 18px;
  line-height: 1;
}
.rb-social-facebook {
  color: #315aa8 !important;
}
.rb-social-linkedin {
  color: #1776a8 !important;
}
.rb-social-x {
  background: #101721;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff !important;
}
.rb-social-tiktok {
  background: #192438;
  color: #fff !important;
}
.rb-social-pinterest {
  color: #d21f2f !important;
}
.rb-social-facebook i,
.rb-social-linkedin i,
.rb-social-pinterest i {
  font-size: 36px;
}
.rb-footer a {
  color: rgba(255, 255, 255, .78);
  display: block;
  margin: 10px 0;
  text-decoration: none;
}
.rb-footer a:hover {
  color: #fff;
}
.rb-footer-cta {
  color: #fff !important;
  font-weight: 800;
}
.rb-footer-qr-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  max-width: 312px;
}
.rb-footer-qr {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.rb-footer-qr img {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 6px;
  display: block;
  margin: 0 auto 8px;
  padding: 4px;
  width: 78px;
}
.rb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 22px;
}
@media (max-width: 900px) {
  .rb-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rb-footer-contact {
    grid-column: span 2;
  }
  .rb-footer-bottom {
    display: grid;
  }
}
@media (max-width: 560px) {
  .rb-footer-grid {
    grid-template-columns: 1fr;
  }
  .rb-footer-contact {
    grid-column: auto;
  }
  .rb-footer-qr-grid {
    max-width: none;
  }
}

/* ---- 产品详情 (product_detail) ---- */
.rb-product-detail {
  background: linear-gradient(180deg, #f7fbff, #fff 38%);
  padding: clamp(48px, 7vw, 92px) 0;
}
.rb-product-detail-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.rb-product-detail-media img {
  aspect-ratio: 4 / 3;
}
.rb-product-detail h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
}
.rb-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.rb-product-meta span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-blue);
  font-weight: 900;
  padding: 8px 12px;
}
.rb-product-tags {
  color: var(--muted);
  margin-bottom: 24px;
}
.rb-product-detail-grid {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: clamp(42px, 6vw, 72px);
}
.rb-product-detail-grid h2 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 18px;
}
.rb-product-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.rb-product-body ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.rb-product-inquiry {
  padding: 24px;
}
.rb-preview {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 10px;
  margin-bottom: 24px;
  padding: 12px 14px;
}
@media (max-width: 900px) {
  .rb-product-detail-hero,
  .rb-product-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 产品集合 (product_archive) ---- */
.rb-product-archive {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 42%);
  padding: clamp(52px, 7vw, 96px) 0;
}
.rb-product-archive-head {
  margin-bottom: 32px;
  max-width: 760px;
}
.rb-product-archive-head h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
}
.rb-product-archive-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 16px 0 0;
}
.rb-product-archive-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.rb-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  padding: 42px;
  text-align: center;
}

/* ---- CTA 条 (yd-candy-cta) ---- */
.rb-cta-band {
  background: linear-gradient(105deg, #e30613 0%, #e30613 42%, #0646a5 42.4%, #0646a5 100%);
  color: #fff;
  padding: 34px 0;
}
.rb-cta-band-inner {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: space-between;
}
.rb-cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  margin: 0;
}
.rb-cta-band p {
  color: rgba(255, 255, 255, .86);
  margin: 8px 0 0;
}
.rb-cta-band .rb-btn {
  background: #fff;
  color: #c80510;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .rb-cta-band {
    background: #0646a5;
  }
  .rb-cta-band-inner {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ---- 数据统计条 (yd-candy-stats) ---- */
.rb-stat-strip {
  background: #fff;
  border: 1px solid rgba(9, 26, 61, .08);
  border-radius: 12px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.rb-stat-strip div {
  padding: 24px 22px;
}
.rb-stat-strip div + div {
  border-left: 1px solid var(--line);
}
.rb-stat-strip strong {
  color: var(--primary);
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
}
.rb-stat-strip span {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 7px;
}
@media (max-width: 900px) {
  .rb-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  .rb-stat-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 520px) {
  .rb-stat-strip {
    grid-template-columns: 1fr;
  }
}

/* ---- 全局（原 settings.frontend_global_css，长度 3780）---- */
:root {
  --primary: #e30613;
  --primary-rgb: 227, 6, 19;
  --brand-blue: #0646a5;
  --brand-blue-rgb: 6, 70, 165;
  --ink: #091a3d;
  --muted: #526176;
  --line: #dfe7f2;
  --soft: #f6f9fd;
  --bg: #ffffff;
  --container-max: 1680px;
  --radius: 12px;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
}
.yundic-container {
  width: min(var(--container-max), calc(100% - 40px));
  margin-inline: auto;
}
.rb-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.rb-btn:focus-visible,
.rb-link:focus-visible,
.rb-nav a:focus-visible {
  outline: 3px solid rgba(6, 70, 165, .32);
  outline-offset: 3px;
}
.rb-btn:active {
  transform: translateY(1px);
}
.rb-btn-primary {
  background: var(--primary);
  color: #fff;
}
.rb-btn-primary:hover {
  background: #c80510;
  color: #fff;
}
.rb-btn-outline {
  background: #fff;
  border-color: rgba(6, 70, 165, .35);
  color: var(--brand-blue);
}
.rb-btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.rb-section {
  padding-block: clamp(56px, 7vw, 104px);
}
.rb-section-tight {
  padding-block: clamp(36px, 5vw, 72px);
}
.rb-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.rb-heading {
  color: var(--ink);
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.rb-subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 62ch;
}
.rb-split {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.rb-media {
  background: #fff;
  border: 1px solid rgba(9, 26, 61, .08);
  border-radius: 14px;
  overflow: hidden;
}
.rb-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.rb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rb-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.rb-product-card-media {
  background: #f8fbff;
  display: block;
}
.rb-product-card-media img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}
.rb-product-card-body {
  padding: 18px;
}
.rb-product-card h3 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}
.rb-product-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.rb-product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 9px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 控制显示行数，这里是 4 行 */
  overflow: hidden;
  text-overflow: ellipsis;
}
.rb-product-card-link {
  color: var(--brand-blue);
  display: inline-flex;
  font-weight: 900;
  margin-top: 14px;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.rb-motion-ready .rb-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
  }
  html.rb-motion-ready .rb-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 991px) {
  .rb-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .yundic-container {
    width: min(100% - 28px, var(--container-max));
  }
  .rb-section {
    padding-block: 52px;
  }
  .rb-heading {
    font-size: clamp(34px, 11vw, 46px);
  }
  .rb-btn {
    width: 100%;
  }
}

/* ---- 布局骨架（原布局内联 frontend-brand-css 固化）---- */
.odi-main {
            --bs-gutter-x: 1.5rem;
            width: 100%;
            max-width: none;
            padding: 0;
            overflow-x: clip;
        }
        .odi-full-bleed {
            display: flow-root;
            position: relative;
            isolation: isolate;
            clear: both;
            box-sizing: border-box;
            overflow: hidden;
            max-width: none;
            min-height: var(--odi-full-bleed-min-height, auto);
            margin-top: var(--odi-full-bleed-margin-top, 0);
            margin-bottom: var(--odi-full-bleed-margin-bottom, 0);
            margin-left: 0;
            margin-right: 0;
            width: 100%;
        }
        .odi-full-bleed > .odi-container,
        .odi-container {
            margin-left: auto;
            margin-right: auto;
            max-width: var(--container-max, 1200px);
            padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
            padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
            width: 100%;
        }
        .article-archive-template:not(.odi-full-bleed),
        .article-category-template:not(.odi-full-bleed),
        .article-tag-template:not(.odi-full-bleed),
        .article-detail-template:not(.odi-full-bleed),
        .product-archive-template:not(.odi-full-bleed),
        .product-category-template:not(.odi-full-bleed),
        .product-tag-template:not(.odi-full-bleed),
        .product-detail-template:not(.odi-full-bleed),
        .content-archive-template:not(.odi-full-bleed),
        .content-detail-template:not(.odi-full-bleed),
        .content-taxonomy-template:not(.odi-full-bleed),
        .page-taxonomy-template:not(.odi-full-bleed),
        .error-404-template:not(.odi-full-bleed) {
            margin-left: auto;
            margin-right: auto;
            max-width: var(--container-max, 1200px);
            padding: 3rem calc(var(--bs-gutter-x, 1.5rem) * .5);
            width: 100%;
        }
        .odi-full-bleed img,
        .odi-full-bleed video {
            max-width: 100%;
        }
        .odi-form-wrap {
            max-width: 720px;
        }
        .odi-form-message:empty {
            display: none;
        }
/* ---- 循环容器 yd-candy-product-grid ---- */
.rb-product-loop {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .rb-product-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .rb-product-loop {
    grid-template-columns: 1fr;
  }
}

/* ---- 循环项 Candy Product Card ---- */
.rb-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.rb-product-card-media {
  background: #f8fbff;
  display: block;
}
.rb-product-card-media img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}
.rb-product-card-body {
  padding: 18px;
}
.rb-product-card h3 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}
.rb-product-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.rb-product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 9px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 控制显示行数，这里是 4 行 */
  overflow: hidden;
  text-overflow: ellipsis;
}
.rb-product-card-link {
  color: var(--brand-blue);
  display: inline-flex;
  font-weight: 900;
  margin-top: 14px;
  text-decoration: none;
}

