:root,
[data-bs-theme="light"] {
  --bbk-primary: #7150e6;
  --bbk-primary-hover: #5c3bd4;
  --bbk-primary-rgb: 113, 80, 230;
  --bbk-secondary: #9a7cf4;
  --bbk-deep: #261b4f;
  --bbk-text: #211b32;
  --bbk-muted: #746f80;
  --bbk-surface: #ffffff;
  --bbk-soft: #f7f5fc;
  --bbk-soft-purple: #f1edff;
  --bbk-border: rgba(64, 46, 118, 0.11);
  --bbk-shadow-sm: 0 8px 24px rgba(53, 37, 101, 0.07);
  --bbk-shadow: 0 20px 55px rgba(53, 37, 101, 0.11);
  --ri-primary: var(--bbk-primary);
  --ri-primary-rgb: var(--bbk-primary-rgb);
  --ri-link-color: var(--bbk-primary);
  --ri-link-color-rgb: var(--bbk-primary-rgb);
  --bs-primary: var(--bbk-primary);
  --bs-primary-rgb: var(--bbk-primary-rgb);
}

[data-bs-theme="dark"] {
  --bbk-primary: #9d82ff;
  --bbk-primary-hover: #b39fff;
  --bbk-primary-rgb: 157, 130, 255;
  --bbk-secondary: #7659db;
  --bbk-deep: #f0ebff;
  --bbk-text: #f4f1fb;
  --bbk-muted: #aaa3b9;
  --bbk-surface: #191522;
  --bbk-soft: #110e18;
  --bbk-soft-purple: #251d39;
  --bbk-border: rgba(255, 255, 255, 0.09);
  --bbk-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
  --bbk-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --ri-primary: var(--bbk-primary);
  --ri-primary-rgb: var(--bbk-primary-rgb);
}

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  color: var(--bbk-text);
  background: var(--bbk-soft);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, transform .2s ease, opacity .2s ease; }
a:hover { color: var(--bbk-primary); }

.site-header {
  height: 84px;
  min-height: 84px;
  border-bottom: 1px solid var(--bbk-border);
  background: color-mix(in srgb, var(--bbk-surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 6px 24px rgba(38, 27, 79, .04);
}
.site-header > .container { height: 100%; }
.site-header .navbar { width: 100%; height: 84px; min-height: 84px; padding: 0 !important; }
.site-header .logo-wrapper { display: flex; align-items: center; align-self: stretch; flex: 0 0 auto; height: 84px; }
.site-header .logo-wrapper > a,
.site-header .navbar-brand { display: inline-flex !important; align-items: center !important; height: 100%; margin: 0; line-height: 0; }
.navbar-brand img,
.logo-wrapper img.logo {
  display: block;
  width: auto;
  height: 50px;
  max-width: 240px;
  object-fit: contain;
}
.main-menu .nav-list > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  height: 84px;
  padding: 0 14px !important;
  color: var(--bbk-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2 !important;
  letter-spacing: .02em;
}
.main-menu .nav-list > li.current-menu-item > a,
.main-menu .nav-list > li > a:hover { color: var(--bbk-primary); }
.site-header .navbar { display: flex; align-items: center !important; flex-wrap: nowrap !important; }
.site-header .main-menu { align-self: stretch; flex: 1 1 0; min-width: 0; height: 84px; }
.main-menu .nav-list { display: flex !important; align-items: center !important; justify-content: center; flex-wrap: nowrap; gap: 2px; height: 100%; padding: 0; margin: 0; list-style: none; }
.main-menu .nav-list > li { position: relative; flex: 0 0 auto; height: 84px; }
.main-menu .nav-list > li.menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.main-menu .nav-list > li.menu-item-has-children > a::after { display: block !important; flex: 0 0 6px; width: 6px !important; height: 6px !important; margin: -3px 0 0 !important; border: 0 !important; border-right: 1.5px solid currentColor !important; border-bottom: 1.5px solid currentColor !important; content: "" !important; font-family: inherit !important; transform: rotate(45deg); transition: transform .2s ease; }
.main-menu .nav-list > li.menu-item-has-children:hover > a::after,
.main-menu .nav-list > li.menu-item-has-children:focus-within > a::after { transform: translateY(3px) rotate(225deg); }
.main-menu .nav-list > li > .sub-menu { position: absolute !important; z-index: 1100; top: calc(100% - 13px) !important; left: 50% !important; display: grid !important; visibility: hidden; min-width: 190px; padding: 9px !important; margin: 0 !important; border: 1px solid var(--bbk-border); border-radius: 15px; background: var(--bbk-surface); box-shadow: 0 20px 50px rgba(38, 27, 79, .16); opacity: 0; transform: translate(-50%, 10px) !important; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.main-menu .nav-list > li:hover > .sub-menu,
.main-menu .nav-list > li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0) !important; }
.main-menu .sub-menu > li { min-width: 0; list-style: none; }
.main-menu .sub-menu > li > a { display: flex; align-items: center; min-height: 42px; padding: 10px 12px !important; margin: 0 !important; color: var(--bbk-text); border-radius: 9px; font-size: 14px !important; font-weight: 700; white-space: nowrap; }
.main-menu .sub-menu > li > a:hover { color: var(--bbk-primary); background: var(--bbk-soft-purple); }
.site-header .actions > div,
.site-header .actions > a { color: var(--bbk-text); }
.site-header .actions { display: flex !important; align-items: center !important; justify-content: flex-end; align-self: stretch; flex: 0 0 auto !important; flex-wrap: nowrap !important; gap: 8px; width: auto !important; min-width: 0; height: 84px; margin-left: 18px !important; }
.site-header .login-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px; min-width: 86px; height: 42px; min-height: 42px; padding: 0 17px !important; margin: 0 !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 13px !important; background: linear-gradient(135deg, var(--bbk-primary), #8b6cf0) !important; box-shadow: 0 10px 24px rgba(var(--bbk-primary-rgb), .25) !important; font-size: 15px !important; font-weight: 800; line-height: 1 !important; white-space: nowrap; }
.site-header .login-btn i { display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; font-size: 13px; line-height: 1; }
.site-header .login-btn:hover { color: #fff !important; background: linear-gradient(135deg, var(--bbk-primary-hover), #7957e4) !important; box-shadow: 0 13px 28px rgba(var(--bbk-primary-rgb), .32) !important; transform: translateY(-1px); }
.site-header .burger { align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; margin: 0 0 0 2px; color: var(--bbk-primary) !important; border: 1px solid rgba(var(--bbk-primary-rgb), .2); border-radius: 12px; background: var(--bbk-soft-purple); box-shadow: 0 7px 18px rgba(var(--bbk-primary-rgb), .12); font-size: 18px; line-height: 1; cursor: pointer; }
.site-header .burger i { display: block; line-height: 1; }
.site-header .burger:hover { color: #fff; border-color: var(--bbk-primary); background: var(--bbk-primary); }
body:not(.canvas-visible) .off-canvas { display: none; }
.off-canvas { width: min(340px, 88vw) !important; padding: 22px 18px 28px !important; border-right: 1px solid var(--bbk-border); background: var(--bbk-surface) !important; box-shadow: 18px 0 60px rgba(38, 27, 79, .2) !important; }
.off-canvas .canvas-close { display: grid; place-items: center; width: 38px; height: 38px; color: var(--bbk-primary); border: 1px solid rgba(var(--bbk-primary-rgb), .18); border-radius: 11px; background: var(--bbk-soft-purple); font-size: 16px; }
.off-canvas .logo-wrapper { height: auto; min-height: 58px; padding: 0 48px 15px 0; border-bottom: 1px solid var(--bbk-border); }
.off-canvas .logo-wrapper img.logo { height: 44px; max-width: 205px; }
.off-canvas .mobile-menu { margin-top: 15px; }
.off-canvas .slicknav_menu { padding: 0 !important; background: transparent !important; }
.off-canvas .slicknav_btn { display: none !important; }
.off-canvas .slicknav_nav { display: grid !important; gap: 5px; height: auto !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.off-canvas .slicknav_nav > li { overflow: hidden; border: 1px solid var(--bbk-border); border-radius: 12px; background: var(--bbk-soft); }
.off-canvas .slicknav_nav,
.off-canvas .slicknav_nav li,
.off-canvas .slicknav_nav a { text-align: left !important; }
.off-canvas .slicknav_nav > li > a,
.off-canvas .slicknav_nav > li > .slicknav_item { display: flex !important; align-items: center !important; justify-content: flex-start !important; width: 100%; min-height: 48px; padding: 11px 13px !important; margin: 0 !important; color: var(--bbk-text) !important; border-radius: 0 !important; font-size: 15px; font-weight: 800; line-height: 1.35; }
.off-canvas .slicknav_nav > li > a:hover,
.off-canvas .slicknav_nav > li > .slicknav_item:hover { color: var(--bbk-primary) !important; background: var(--bbk-soft-purple) !important; }
.off-canvas .slicknav_nav .slicknav_item > a { display: flex !important; align-items: center !important; flex: 1; min-height: 26px; color: inherit; text-align: left !important; }
.off-canvas .slicknav_arrow { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; margin-left: auto; color: var(--bbk-primary); border-radius: 8px; background: var(--bbk-soft-purple); text-align: center !important; }
.off-canvas .slicknav_nav .sub-menu { display: none; padding: 5px 9px 9px 18px !important; margin: 0 !important; border-top: 1px solid var(--bbk-border); background: var(--bbk-surface); }
.off-canvas .slicknav_nav .sub-menu > li { list-style: none; }
.off-canvas .slicknav_nav .sub-menu > li > a { display: flex !important; align-items: center !important; justify-content: flex-start !important; min-height: 44px; padding: 10px 11px !important; margin: 3px 0 !important; color: var(--bbk-muted) !important; border-radius: 9px; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left !important; }
.off-canvas .slicknav_nav .sub-menu > li > a:hover { color: var(--bbk-primary) !important; background: var(--bbk-soft-purple); }
.header-gap { height: 84px; }

.btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary,
.bg-primary {
  color: #fff !important;
  border-color: var(--bbk-primary) !important;
  background: linear-gradient(135deg, var(--bbk-primary), #8567ef) !important;
  box-shadow: 0 10px 24px rgba(var(--bbk-primary-rgb), .24);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(var(--bbk-primary-rgb), .33); }
.btn-danger,
.btn-info { color: #fff !important; border-color: var(--bbk-primary) !important; background: var(--bbk-primary) !important; }
.btn-light { color: var(--bbk-primary); border: 1px solid rgba(var(--bbk-primary-rgb), .16); background: var(--bbk-soft-purple); }
.btn-success { border-color: #0f9f7a; background: #0f9f7a; }
.text-primary { color: var(--bbk-primary) !important; }

.card,
.widget,
.filter-warp,
.archive-filter {
  border: 1px solid var(--bbk-border) !important;
  border-radius: 20px !important;
  background: var(--bbk-surface);
  box-shadow: var(--bbk-shadow-sm);
}
.form-control,
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], textarea, select {
  min-height: 48px;
  color: var(--bbk-text);
  border: 1px solid var(--bbk-border);
  border-radius: 12px;
  background: var(--bbk-surface);
}
textarea { padding: 15px; line-height: 1.75; }
input:focus, textarea:focus, select:focus, .form-control:focus {
  border-color: rgba(var(--bbk-primary-rgb), .7) !important;
  box-shadow: 0 0 0 4px rgba(var(--bbk-primary-rgb), .11) !important;
  outline: 0;
}

.bbk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bbk-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bbk-home-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  color: #fff;
  background: linear-gradient(130deg, #25184e 0%, #4e31a8 53%, #7150e6 100%);
}
.bbk-home-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: 30px 30px; }
.bbk-hero-orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .32; }
.bbk-orb-one { width: 380px; height: 380px; right: -100px; top: -180px; background: #c1b4ff; }
.bbk-orb-two { width: 240px; height: 240px; left: -100px; bottom: -130px; background: #a787ff; }
.bbk-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .8fr); align-items: center; gap: 64px; }
.bbk-home-hero .bbk-eyebrow { color: #ded5ff; }
.bbk-hero-copy h1 { margin: 17px 0 19px; color: #fff; font-size: clamp(42px, 5.6vw, 70px); font-weight: 850; line-height: 1.12; letter-spacing: -.045em; }
.bbk-hero-copy h1 span { color: #d9ceff; }
.bbk-hero-copy > p { max-width: 690px; margin: 0 0 30px; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.8; }
.bbk-hero-search { display: flex; align-items: center; max-width: 720px; padding: 8px 8px 8px 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(12, 6, 35, .28); }
.bbk-hero-search i { color: var(--bbk-primary); font-size: 18px; }
.bbk-hero-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 15px; color: #2d2540; border: 0; background: transparent; box-shadow: none !important; }
.bbk-hero-search button { min-width: 92px; height: 48px; color: #fff; border: 0; border-radius: 12px; background: var(--bbk-primary); font-weight: 800; }
.bbk-hot-search { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 17px; color: rgba(255,255,255,.65); font-size: 13px; }
.bbk-hot-search a { color: #fff; opacity: .9; }
.bbk-hero-panel { padding: 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 26px; background: rgba(255,255,255,.11); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 26px 65px rgba(18, 7, 53, .24); }
.bbk-panel-head { display: flex; justify-content: space-between; margin-bottom: 18px; color: rgba(255,255,255,.82); font-weight: 750; }
.bbk-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bbk-quick-grid a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 17px; color: #2e2543; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(20, 10, 55, .12); }
.bbk-quick-grid a:hover { color: var(--bbk-primary); transform: translateY(-2px); }
.bbk-quick-grid i { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; color: var(--bbk-primary); border-radius: 13px; background: var(--bbk-soft-purple); font-size: 19px; }
.bbk-quick-grid strong { font-size: 15px; }
.bbk-quick-grid small { margin-top: 3px; color: #8a8497; }

.bbk-trust-strip { color: var(--bbk-text); border-bottom: 1px solid var(--bbk-border); background: var(--bbk-surface); }
.bbk-trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.bbk-trust-strip span { display: flex; align-items: center; gap: 8px; color: var(--bbk-muted); font-size: 13px; }
.bbk-trust-strip i { color: var(--bbk-primary); }
.bbk-trust-strip strong { color: var(--bbk-text); }

.bbk-home-main { background: var(--bbk-surface); }
.bbk-home-section { padding: 78px 0; }
.bbk-section-soft { background: var(--bbk-soft); }
.bbk-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.bbk-section-heading h2 { margin: 8px 0 7px; color: var(--bbk-deep); font-size: clamp(28px, 3vw, 38px); font-weight: 830; letter-spacing: -.03em; }
.bbk-section-heading p { margin: 0; color: var(--bbk-muted); }
.bbk-section-heading > a { color: var(--bbk-primary); font-weight: 750; }
.bbk-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bbk-content-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 17px; min-height: 215px; padding: 24px; border: 1px solid var(--bbk-border); border-radius: 20px; background: var(--bbk-surface); box-shadow: var(--bbk-shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.bbk-content-card:hover { transform: translateY(-4px); border-color: rgba(var(--bbk-primary-rgb), .28); box-shadow: var(--bbk-shadow); }
.bbk-card-icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--bbk-primary); border-radius: 18px; background: var(--bbk-soft-purple); font-size: 24px; }
.bbk-card-body { display: flex; min-width: 0; flex-direction: column; }
.bbk-card-kicker { margin-bottom: 7px; color: var(--bbk-primary); font-size: 12px; font-weight: 800; }
.bbk-content-card h2, .bbk-content-card h3 { margin: 0 0 9px; color: var(--bbk-deep); font-size: 18px; font-weight: 780; line-height: 1.45; }
.bbk-content-card p { display: -webkit-box; overflow: hidden; margin: 0 0 16px; color: var(--bbk-muted); font-size: 14px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bbk-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--bbk-border); font-size: 13px; }
.bbk-card-footer span { color: var(--bbk-primary); font-weight: 850; }
.bbk-card-footer a { color: var(--bbk-muted); font-weight: 700; }

/* 首页生活办公模板：单行 3D 环形轮播 */
.bbk-template-home-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 24%, rgba(var(--bbk-primary-rgb), .09), transparent 26%),
    radial-gradient(circle at 92% 74%, rgba(var(--bbk-primary-rgb), .08), transparent 24%),
    var(--bbk-soft);
}
.bbk-template-home-section .container { position: relative; z-index: 1; }
.bbk-template-carousel {
  --bbk-template-drag: 0px;
  position: relative;
  margin: 4px auto 0;
  user-select: none;
  -webkit-user-select: none;
}
.bbk-template-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 500px;
  outline: 0;
  perspective: 1450px;
  perspective-origin: 50% 44%;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  transition: height .35s ease;
}
.bbk-template-stage:focus-visible {
  border-radius: 28px;
  box-shadow: 0 0 0 4px rgba(var(--bbk-primary-rgb), .14);
}
.bbk-template-carousel.is-dragging .bbk-template-stage { cursor: grabbing; }
.bbk-template-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.bbk-template-slide {
  --bbk-template-x: 0px;
  --bbk-template-scale: .68;
  --bbk-template-rotate: 0deg;
  --bbk-template-opacity: 0;
  --bbk-template-z: 1;
  position: absolute;
  z-index: var(--bbk-template-z);
  top: 4px;
  left: 50%;
  width: min(410px, 36vw);
  margin: 0;
  opacity: var(--bbk-template-opacity);
  pointer-events: none;
  transform: translate3d(calc(-50% + var(--bbk-template-x) + var(--bbk-template-drag)), 0, 0) scale(var(--bbk-template-scale)) rotateY(var(--bbk-template-rotate));
  transform-origin: center center;
  transform-style: preserve-3d;
  filter: saturate(.72) brightness(.92);
  transition: transform .58s cubic-bezier(.2,.75,.25,1), opacity .42s ease, filter .42s ease;
  will-change: transform, opacity;
}
.bbk-template-slide.is-active,
.bbk-template-slide.is-neighbour { pointer-events: auto; }
.bbk-template-slide.is-active { filter: none; }
.bbk-template-card {
  overflow: hidden;
  border: 1px solid rgba(var(--bbk-primary-rgb), .13);
  border-radius: 24px;
  background: var(--bbk-surface);
  box-shadow: 0 22px 54px rgba(41, 26, 88, .15);
  transform: translateZ(0);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.bbk-template-slide.is-active .bbk-template-card {
  border-color: rgba(var(--bbk-primary-rgb), .32);
  box-shadow: 0 30px 78px rgba(64, 39, 137, .23), 0 8px 22px rgba(46, 31, 91, .1);
}
.bbk-template-cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  color: #fff;
  background: linear-gradient(145deg, var(--bbk-soft-purple), rgba(var(--bbk-primary-rgb), .16));
}
.bbk-template-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(27, 17, 58, .62), transparent);
}
.bbk-template-cover img,
.bbk-template-cover .bbk-cover-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.75,.25,1);
}
.bbk-template-slide.is-active:hover .bbk-template-cover img { transform: scale(1.035); }
.bbk-template-category,
.bbk-template-position {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 19, 65, .64);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}
.bbk-template-category { top: 16px; left: 16px; padding: 0 12px; }
.bbk-template-position { right: 15px; bottom: 14px; gap: 4px; padding: 0 11px; }
.bbk-template-position b { font-size: 16px; }
.bbk-template-card-body { padding: 21px 23px 23px; }
.bbk-template-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.bbk-template-meta strong { color: var(--bbk-primary); font-size: 16px; font-weight: 900; }
.bbk-template-meta span { overflow: hidden; color: var(--bbk-muted); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.bbk-template-card h3 { margin: 0 0 9px; color: var(--bbk-deep); font-size: 21px; font-weight: 850; line-height: 1.4; letter-spacing: -.02em; }
.bbk-template-card h3 a:hover { color: var(--bbk-primary); }
.bbk-template-card p { display: -webkit-box; overflow: hidden; min-height: 50px; margin: 0 0 16px; color: var(--bbk-muted); font-size: 14px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bbk-template-open { display: inline-flex; align-items: center; gap: 8px; color: var(--bbk-primary); font-size: 14px; font-weight: 850; }
.bbk-template-open i { font-size: 12px; transition: transform .2s ease; }
.bbk-template-open:hover i { transform: translateX(3px); }
.bbk-template-arrow {
  position: absolute;
  z-index: 30;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  color: var(--bbk-primary);
  border: 1px solid rgba(var(--bbk-primary-rgb), .2);
  border-radius: 50%;
  outline: 0;
  background: color-mix(in srgb, var(--bbk-surface) 91%, transparent);
  box-shadow: 0 14px 34px rgba(47, 30, 99, .15);
  transform: translateY(-50%);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.bbk-template-arrow.is-prev { left: 18px; }
.bbk-template-arrow.is-next { right: 18px; }
.bbk-template-arrow:hover,
.bbk-template-arrow:focus-visible { color: #fff; border-color: var(--bbk-primary); background: var(--bbk-primary); transform: translateY(-50%) scale(1.06); }
.bbk-template-carousel-footer { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 24px; margin-top: 2px; }
.bbk-template-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.bbk-template-dots button {
  width: 8px;
  height: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: rgba(var(--bbk-primary-rgb), .23);
  transition: width .25s ease, background .25s ease, transform .25s ease;
}
.bbk-template-dots button.is-active { width: 28px; background: var(--bbk-primary); }
.bbk-template-dots button:focus-visible { box-shadow: 0 0 0 4px rgba(var(--bbk-primary-rgb), .16); }
.bbk-template-help { display: inline-flex; align-items: center; gap: 8px; color: var(--bbk-muted); font-size: 13px; font-weight: 650; }
.bbk-template-help i { color: var(--bbk-primary); }
[data-bs-theme="dark"] .bbk-template-card { box-shadow: 0 22px 54px rgba(0,0,0,.28); }
[data-bs-theme="dark"] .bbk-template-slide.is-active .bbk-template-card { box-shadow: 0 30px 78px rgba(0,0,0,.42), 0 0 0 1px rgba(var(--bbk-primary-rgb), .14); }

/* 好书库复用环形交互，封面与信息密度按纸质书单独设计。 */
.bbk-book-home-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--bbk-primary-rgb), .075), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(var(--bbk-primary-rgb), .06), transparent 23%),
    var(--bbk-surface);
}
.bbk-book-home-section .container { position: relative; z-index: 1; }
.bbk-book-carousel .bbk-template-stage { min-height: 720px; perspective-origin: 50% 39%; }
.bbk-book-carousel .bbk-template-slide { width: min(300px, 27vw); }
.bbk-book-carousel .bbk-template-card { border-radius: 22px; }
.bbk-book-carousel .bbk-template-cover { aspect-ratio: 3 / 5; }
.bbk-book-carousel .bbk-template-cover img { object-fit: cover; }
.bbk-book-carousel .bbk-template-card-body { padding: 18px 20px 21px; }
.bbk-book-carousel .bbk-template-card h3 { font-size: 20px; }
.bbk-book-carousel .bbk-template-card p { min-height: 48px; margin-bottom: 13px; line-height: 1.7; }
.bbk-book-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
.bbk-book-meta strong { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.bbk-book-meta strong i { color: #f2a51a; font-size: 13px; }
.bbk-book-meta span { width: 100%; max-width: 100%; font-size: 13px; }

@media (max-width: 991.98px) {
  .bbk-template-stage { min-height: 480px; }
  .bbk-template-slide { width: min(390px, 52vw); }
  .bbk-template-arrow.is-prev { left: 8px; }
  .bbk-template-arrow.is-next { right: 8px; }
  .bbk-book-carousel .bbk-template-stage { min-height: 690px; }
  .bbk-book-carousel .bbk-template-slide { width: min(290px, 39vw); }
}

@media (max-width: 639.98px) {
  .bbk-template-home-section { padding-bottom: 48px; }
  .bbk-template-home-section .bbk-section-heading { margin-bottom: 17px; }
  .bbk-template-carousel { width: calc(100% + 30px); margin-left: -15px; }
  .bbk-template-stage { min-height: 430px; perspective: 950px; }
  .bbk-template-slide { top: 2px; width: min(82vw, 350px); }
  .bbk-template-card { border-radius: 20px; }
  .bbk-template-card-body { padding: 16px 17px 18px; }
  .bbk-template-category { top: 12px; left: 12px; min-height: 29px; padding: 0 10px; font-size: 12px; }
  .bbk-template-position { right: 11px; bottom: 10px; min-height: 29px; font-size: 12px; }
  .bbk-template-position b { font-size: 14px; }
  .bbk-template-card h3 { margin-bottom: 7px; font-size: 18px; }
  .bbk-template-card p { min-height: 47px; margin-bottom: 13px; font-size: 14px; line-height: 1.65; }
  .bbk-template-arrow { top: 39%; width: 43px; height: 43px; font-size: 13px; }
  .bbk-template-arrow.is-prev { left: 11px; }
  .bbk-template-arrow.is-next { right: 11px; }
  .bbk-template-carousel-footer { flex-direction: column; gap: 10px; margin-top: 0; }
  .bbk-template-help { font-size: 12px; }
  .bbk-book-home-section { padding-bottom: 48px; }
  .bbk-book-carousel .bbk-template-stage { min-height: 625px; perspective: 1000px; }
  .bbk-book-carousel .bbk-template-slide { width: min(72vw, 280px); }
  .bbk-book-carousel .bbk-template-card-body { padding: 15px 16px 17px; }
  .bbk-book-carousel .bbk-template-card h3 { font-size: 18px; }
  .bbk-book-carousel .bbk-template-card p { min-height: 46px; font-size: 14px; }
  .bbk-book-carousel .bbk-template-arrow { top: 43%; }
}

@media (prefers-reduced-motion: reduce) {
  .bbk-template-stage,
  .bbk-template-slide,
  .bbk-template-cover img,
  .bbk-template-dots button { transition-duration: .01ms !important; }
}

.bbk-archive-pagination { display: flex; justify-content: center; margin-top: 42px; }
.bbk-archive-pagination .navigation { width: 100%; margin: 0; }
.bbk-archive-pagination .screen-reader-text { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bbk-archive-pagination .nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.bbk-archive-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; color: var(--bbk-text); border: 1px solid var(--bbk-border); border-radius: 13px; background: var(--bbk-surface); box-shadow: 0 6px 18px rgba(37, 27, 70, .06); font-size: 14px; font-weight: 800; line-height: 1; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.bbk-archive-pagination a.page-numbers:hover { color: var(--bbk-primary); border-color: rgba(var(--bbk-primary-rgb), .38); background: var(--bbk-soft-purple); box-shadow: 0 10px 24px rgba(var(--bbk-primary-rgb), .13); transform: translateY(-2px); }
.bbk-archive-pagination a.page-numbers:focus-visible { outline: 3px solid rgba(var(--bbk-primary-rgb), .22); outline-offset: 3px; }
.bbk-archive-pagination .page-numbers.current { color: #fff; border-color: transparent; background: linear-gradient(135deg, #8062ed, var(--bbk-primary)); box-shadow: 0 10px 24px rgba(var(--bbk-primary-rgb), .3); }
.bbk-archive-pagination .page-numbers.prev,
.bbk-archive-pagination .page-numbers.next { min-width: 108px; }
.bbk-archive-pagination .page-numbers.prev i,
.bbk-archive-pagination .page-numbers.next i { font-size: 12px; }
.bbk-archive-pagination .page-numbers.dots { color: var(--bbk-muted); border-color: transparent; background: transparent; box-shadow: none; }

/* Unified cover system: the class names mirror the recommendation shown in wp-admin. */
.bbk-ratio-1-1 { aspect-ratio: 1 / 1; }
.bbk-ratio-4-3 { aspect-ratio: 4 / 3; }
.bbk-ratio-3-2 { aspect-ratio: 3 / 2; }
.bbk-ratio-2-1 { aspect-ratio: 2 / 1; }
.bbk-ratio-3-5 { aspect-ratio: 3 / 5; }
.bbk-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.bbk-cover-fallback { display: flex; width: 100%; height: 100%; min-height: 80px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--bbk-primary); background: linear-gradient(145deg, var(--bbk-soft-purple), var(--bbk-soft)); }
.bbk-cover-fallback i { font-size: clamp(24px, 4vw, 42px); }
.bbk-cover-fallback small { color: var(--bbk-muted); font-size: 12px; font-weight: 750; }
.bbk-card-icon { overflow: hidden; }
.bbk-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.bbk-card-with-media { display: flex; overflow: hidden; min-height: 0; padding: 0; flex-direction: column; gap: 0; }
.bbk-card-media { display: block; overflow: hidden; width: 100%; background: var(--bbk-soft-purple); }
.bbk-card-media > img, .bbk-card-media > .bbk-cover-fallback { transition: transform .35s ease; }
.bbk-card-with-media:hover .bbk-card-media > img { transform: scale(1.035); }
.bbk-card-with-media .bbk-card-body { flex: 1; padding: 20px; }
.bbk-grid-bbk_book { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bbk-grid-bbk_book .bbk-content-card p { -webkit-line-clamp: 3; }
.bbk-grid-bbk_book .bbk-card-body { padding: 16px; }
.bbk-single-content-cover { overflow: hidden; margin: -1px -1px 28px; border-radius: 22px 22px 0 0; }
.bbk-auto-article-cover { overflow: hidden; margin: 0 30px 28px; border-radius: 16px; background: var(--bbk-soft-purple); }
.bbk-auto-article-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
    .bbk-auto-article-cover { margin: 0 16px 22px; border-radius: 13px; }
}

@media (max-width: 991.98px) {
  .bbk-grid-bbk_book { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .bbk-content-grid { grid-template-columns: 1fr; }
  .bbk-grid-bbk_book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bbk-grid-bbk_book .bbk-card-body { padding: 13px; }
  .bbk-grid-bbk_book .bbk-content-card h3 { font-size: 16px; }
  .bbk-grid-bbk_book .bbk-content-card p { display: none; }
  .bbk-card-with-media .bbk-card-body { padding: 17px; }
  .bbk-archive-pagination { margin-top: 28px; }
  .bbk-archive-pagination .nav-links { gap: 6px; }
  .bbk-archive-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 11px; font-size: 13px; }
  .bbk-archive-pagination .page-numbers.prev,
  .bbk-archive-pagination .page-numbers.next { min-width: 40px; }
  .bbk-archive-pagination .page-numbers.prev span,
  .bbk-archive-pagination .page-numbers.next span { display: none; }
}

.bbk-home-cta { padding: 70px 0; color: #fff; background: linear-gradient(125deg, #241a49, #7150e6); }
.bbk-home-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.bbk-home-cta .bbk-eyebrow { color: #d9ceff; }
.bbk-home-cta h2 { margin: 10px 0; color: #fff; font-size: 36px; }
.bbk-home-cta p { max-width: 720px; margin: 0; color: rgba(255,255,255,.74); }
.bbk-cta-actions { display: flex; flex: 0 0 auto; gap: 10px; }

.bbk-archive-hero,
.bbk-single-hero { padding: 62px 0 56px; text-align: center; background: linear-gradient(180deg, var(--bbk-soft-purple), var(--bbk-surface)); border-bottom: 1px solid var(--bbk-border); }
.bbk-archive-hero h1,
.bbk-single-hero h1 { max-width: 930px; margin: 13px auto 12px; color: var(--bbk-deep); font-size: clamp(34px, 4.5vw, 54px); font-weight: 850; letter-spacing: -.04em; }
.bbk-archive-hero p,
.bbk-single-hero > .container > p { max-width: 760px; margin: 0 auto; color: var(--bbk-muted); font-size: 17px; line-height: 1.8; }
.bbk-archive-content { padding-top: 50px; padding-bottom: 70px; }
.bbk-knowledge-topics { border-bottom: 1px solid var(--bbk-border); background: var(--bbk-surface); }
.bbk-knowledge-topics nav { display: flex; gap: 10px; overflow-x: auto; padding-top: 16px; padding-bottom: 16px; scrollbar-width: thin; }
.bbk-knowledge-topics a { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; min-height: 42px; padding: 8px 15px; border: 1px solid var(--bbk-border); border-radius: 999px; background: var(--bbk-surface); color: var(--bbk-text); font-size: 15px; font-weight: 700; white-space: nowrap; }
.bbk-knowledge-topics a:hover, .bbk-knowledge-topics a.is-active { border-color: #7150e6; background: #7150e6; color: #fff; box-shadow: 0 8px 20px rgba(113, 80, 230, .18); }
.bbk-knowledge-topics a small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(113, 80, 230, .1); color: #7150e6; font-size: 12px; }
.bbk-knowledge-topics a.is-active small, .bbk-knowledge-topics a:hover small { background: rgba(255, 255, 255, .18); color: #fff; }
.bbk-empty { grid-column: 1 / -1; padding: 50px; color: var(--bbk-muted); text-align: center; border: 1px dashed rgba(var(--bbk-primary-rgb), .28); border-radius: 18px; background: var(--bbk-soft-purple); }

.bbk-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding-top: 38px; padding-bottom: 70px; }
.bbk-main-card, .bbk-side-card, .bbk-reading-card, .bbk-product-card { border: 1px solid var(--bbk-border); border-radius: 22px; background: var(--bbk-surface); box-shadow: var(--bbk-shadow-sm); }
.bbk-main-card { overflow: hidden; }
.bbk-side-card { align-self: start; padding: 24px; position: static; }
.bbk-side-card h3 { color: var(--bbk-deep); font-size: 20px; }
.bbk-side-card ul { margin: 20px 0; padding: 0; list-style: none; }
.bbk-side-card li { display: flex; gap: 10px; padding: 8px 0; color: var(--bbk-muted); }
.bbk-side-card li i { color: var(--bbk-primary); margin-top: 4px; }
.bbk-tool-side, .bbk-reading-side, .bbk-smart-sidebar { display: grid; align-self: start; gap: 16px; }
.bbk-sidebar-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--bbk-border); }
.bbk-sidebar-card-head > span { display: flex; align-items: center; gap: 8px; color: var(--bbk-deep); font-size: 16px; font-weight: 850; }
.bbk-sidebar-card-head > span i { color: var(--bbk-primary); }
.bbk-sidebar-card-head > a, .bbk-sidebar-card-head > small { color: var(--bbk-primary); font-size: 13px; font-weight: 750; }
.bbk-sidebar-related > ul { display: grid; gap: 0; margin: 8px 0 0 !important; }
.bbk-sidebar-related > ul > li { display: block; padding: 0 !important; border-bottom: 1px solid var(--bbk-border); }
.bbk-sidebar-related > ul > li:last-child { border-bottom: 0; }
.bbk-sidebar-related > ul > li > a { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.bbk-sidebar-related-thumb { display: grid; place-items: center; overflow: hidden; flex: 0 0 48px; width: 48px; height: 48px; color: var(--bbk-primary); border-radius: 12px; background: var(--bbk-soft-purple); }
.bbk-sidebar-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bbk-sidebar-related-thumb i { margin: 0 !important; font-size: 17px; }
.bbk-sidebar-related > ul > li > a > span:last-child { min-width: 0; }
.bbk-sidebar-related strong { display: -webkit-box; overflow: hidden; color: var(--bbk-text); font-size: 14px; font-weight: 800; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bbk-sidebar-related small { display: block; overflow: hidden; margin-top: 4px; color: var(--bbk-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.bbk-sidebar-topics > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.bbk-sidebar-topics > div:last-child a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px; color: var(--bbk-text); border: 1px solid var(--bbk-border); border-radius: 999px; background: var(--bbk-soft); font-size: 13px; font-weight: 700; }
.bbk-sidebar-topics > div:last-child a:hover { color: #fff; border-color: var(--bbk-primary); background: var(--bbk-primary); }
.bbk-sidebar-topics > div:last-child small { color: var(--bbk-primary); font-size: 12px; }
.bbk-sidebar-topics > div:last-child a:hover small { color: #fff; }
.bbk-sidebar-quick > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.bbk-sidebar-quick > div:last-child a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 10px; color: var(--bbk-text); border: 1px solid var(--bbk-border); border-radius: 11px; background: var(--bbk-soft); font-size: 13px; font-weight: 750; }
.bbk-sidebar-quick > div:last-child a:hover { color: var(--bbk-primary); border-color: rgba(var(--bbk-primary-rgb), .35); background: var(--bbk-soft-purple); }
.bbk-sidebar-quick > div:last-child i { flex: 0 0 18px; color: var(--bbk-primary); text-align: center; }
.bbk-sidebar-toc > ol { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: bbk-toc; }
.bbk-sidebar-toc li { display: block; padding: 0; counter-increment: bbk-toc; }
.bbk-sidebar-toc li a { display: block; padding: 8px 9px; color: var(--bbk-muted); border-radius: 8px; font-size: 14px; font-weight: 650; line-height: 1.45; }
.bbk-sidebar-toc li.is-level-2 a::before { content: counter(bbk-toc, decimal-leading-zero); margin-right: 8px; color: var(--bbk-primary); font-size: 11px; font-weight: 850; }
.bbk-sidebar-toc li.is-level-3 a { padding-left: 26px; font-size: 13px; }
.bbk-sidebar-toc li a:hover { color: var(--bbk-primary); background: var(--bbk-soft-purple); }
.post-content h2[id], .post-content h3[id] { scroll-margin-top: 105px; }
.sidebar > .bbk-smart-sidebar { margin-top: 16px; }
.bbk-tool-shell { padding: 30px; }
.bbk-tool-workspace label { display: block; margin-bottom: 10px; color: var(--bbk-text); font-weight: 700; }
.bbk-tool-workspace label input, .bbk-tool-workspace label textarea { display: block; width: 100%; margin-top: 9px; }
.bbk-tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 16px; }
.bbk-tool-button { min-height: 48px; margin-top: 8px; padding: 10px 24px; color: #fff; border: 0; border-radius: 12px; background: var(--bbk-primary); font-weight: 800; }
.bbk-tool-result { margin-top: 18px; padding: 22px; color: var(--bbk-deep); border: 1px solid rgba(var(--bbk-primary-rgb), .15); border-radius: 14px; background: var(--bbk-soft-purple); font-size: 16px; line-height: 1.8; word-break: break-all; }
.bbk-tool-result strong { color: var(--bbk-primary); font-size: 22px; }
.bbk-tool-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.bbk-tool-stats strong { padding: 18px 10px; color: var(--bbk-primary); text-align: center; border-radius: 14px; background: var(--bbk-soft-purple); font-size: 24px; }
.bbk-tool-stats small { display: block; margin-top: 6px; color: var(--bbk-muted); font-size: 12px; font-weight: 600; }
.bbk-checkbox { display: flex !important; align-items: center; gap: 8px; min-height: 48px; }
.bbk-checkbox input { display: inline-block !important; width: auto !important; min-height: auto; margin: 0 !important; }
.bbk-tool-privacy { margin: 20px 0 0; color: var(--bbk-muted); font-size: 13px; }
.bbk-tool-privacy i { color: var(--bbk-primary); }
.bbk-tool-guide { padding: 30px; border-top: 1px solid var(--bbk-border); }
.bbk-tool-upload { position: relative; display: grid; min-height: 168px; padding: 28px; place-items: center; overflow: hidden; color: var(--bbk-muted); border: 2px dashed rgba(var(--bbk-primary-rgb), .28); border-radius: 18px; background: var(--bbk-soft-purple); text-align: center; cursor: pointer; transition: .2s ease; }
.bbk-tool-upload:hover, .bbk-tool-upload.is-dragover { color: var(--bbk-primary); border-color: var(--bbk-primary); background: rgba(var(--bbk-primary-rgb), .1); }
.bbk-tool-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bbk-tool-upload i { display: grid; width: 54px; height: 54px; margin: 0 auto 12px; place-items: center; color: var(--bbk-primary); border-radius: 17px; background: var(--bbk-surface); box-shadow: 0 8px 24px rgba(var(--bbk-primary-rgb), .12); font-size: 23px; }
.bbk-tool-upload strong { display: block; color: var(--bbk-deep); font-size: 17px; }
.bbk-tool-upload span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.6; }
.bbk-tool-file-meta { display: none; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 15px; color: var(--bbk-muted); border: 1px solid var(--bbk-border); border-radius: 13px; background: var(--bbk-soft); font-size: 14px; }
.bbk-tool-file-meta.is-visible { display: flex; }
.bbk-tool-file-meta i { color: var(--bbk-primary); font-size: 18px; }
.bbk-tool-file-meta strong { display: block; overflow: hidden; color: var(--bbk-text); text-overflow: ellipsis; white-space: nowrap; }
.bbk-tool-file-meta span { margin-left: auto; white-space: nowrap; }
.bbk-tool-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin-top: 20px; }
.bbk-tool-options.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bbk-tool-options label { margin: 0; }
.bbk-tool-workspace select { display: block; width: 100%; min-height: 48px; margin-top: 9px; padding: 0 40px 0 13px; color: var(--bbk-text); border: 1px solid var(--bbk-border); border-radius: 11px; background: var(--bbk-surface); }
.bbk-tool-range-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; margin-top: 9px; }
.bbk-tool-range-row input[type="range"] { width: 100%; accent-color: var(--bbk-primary); }
.bbk-tool-range-row output { min-width: 48px; color: var(--bbk-primary); font-weight: 800; text-align: right; }
.bbk-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bbk-tool-actions .bbk-tool-button { margin: 0; }
.bbk-tool-button.is-secondary { color: var(--bbk-primary); border: 1px solid rgba(var(--bbk-primary-rgb), .25); background: var(--bbk-surface); }
.bbk-tool-button:disabled { cursor: not-allowed; opacity: .5; }
.bbk-tool-preview { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.bbk-tool-preview.is-visible { display: grid; }
.bbk-tool-preview figure { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--bbk-border); border-radius: 16px; background: var(--bbk-soft); }
.bbk-tool-preview figcaption { margin-bottom: 10px; color: var(--bbk-muted); font-size: 13px; font-weight: 750; }
.bbk-tool-preview img { display: block; width: 100%; height: 220px; object-fit: contain; border-radius: 10px; background-image: linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; }
.bbk-tool-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.bbk-tool-result-grid > div { padding: 16px; border: 1px solid rgba(var(--bbk-primary-rgb), .13); border-radius: 14px; background: var(--bbk-soft-purple); }
.bbk-tool-result-grid span { display: block; color: var(--bbk-muted); font-size: 13px; }
.bbk-tool-result-grid strong { display: block; margin-top: 5px; color: var(--bbk-primary); font-size: 20px; line-height: 1.35; }
.bbk-tool-textarea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bbk-tool-textarea-grid textarea { min-height: 300px; resize: vertical; }
.bbk-tool-inline-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.bbk-tool-inline-checks .bbk-checkbox { min-height: 34px; margin: 0; font-size: 14px; }
.bbk-tool-mode-tabs { display: flex; overflow-x: auto; gap: 8px; margin-bottom: 18px; padding-bottom: 3px; scrollbar-width: thin; }
.bbk-tool-mode-tabs button { flex: 0 0 auto; min-height: 42px; padding: 8px 14px; color: var(--bbk-muted); border: 1px solid var(--bbk-border); border-radius: 11px; background: var(--bbk-surface); font-weight: 750; }
.bbk-tool-mode-tabs button.is-active { color: #fff; border-color: var(--bbk-primary); background: var(--bbk-primary); }
.bbk-tool-equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.bbk-tool-equation > span { padding-bottom: 14px; color: var(--bbk-muted); font-weight: 800; }
.bbk-tool-help { margin: 14px 0 0; color: var(--bbk-muted); font-size: 14px; line-height: 1.7; }
.bbk-tool-help i { margin-right: 5px; color: var(--bbk-primary); }
.bbk-qr-preview { display: none; margin-top: 20px; padding: 24px; border: 1px solid var(--bbk-border); border-radius: 18px; background: var(--bbk-soft); text-align: center; }
.bbk-qr-preview.is-visible { display: block; }
.bbk-qr-preview img { width: min(280px, 100%); height: auto; padding: 10px; border-radius: 12px; background: #fff; image-rendering: pixelated; }

.bbk-single-product { padding-top: 38px; padding-bottom: 70px; }
.bbk-product-reading-layout .bbk-single-product { min-width: 0; padding: 0; }
.bbk-product-card { overflow: hidden; padding: 34px; }
.bbk-shop-heading { padding: 0 0 24px; border-bottom: 1px solid var(--bbk-border); }
.bbk-shop-heading .post-title { margin: 8px 0 10px; color: var(--bbk-deep); font-size: clamp(30px, 4vw, 48px); font-weight: 850; letter-spacing: -.035em; }
.bbk-shop-summary { max-width: 760px; margin: 0; color: var(--bbk-muted); font-size: 16px; line-height: 1.75; }
.bbk-shop-panel { margin: 30px 0; }
.bbk-product-cover { position: relative; overflow: hidden; height: 100%; min-height: 330px; border-radius: 20px; background: linear-gradient(145deg, var(--bbk-soft-purple), #dcd1ff); }
.single-bbk_template .bbk-product-cover { aspect-ratio: 4 / 3; height: auto; min-height: 0; }

/* Cloud-drive aware resource delivery. */
.bbk-download-list{display:grid;gap:12px;margin-top:18px}.bbk-download-item{display:flex;align-items:stretch;gap:10px}.bbk-download-link{display:flex;align-items:center;flex:1;gap:13px;min-width:0;padding:13px 16px;color:#fff!important;border-radius:13px;background:linear-gradient(135deg,var(--bbk-primary),#8b6ff2);box-shadow:0 10px 22px rgba(var(--bbk-primary-rgb),.2);text-decoration:none!important}.bbk-download-link>i{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:rgba(255,255,255,.16);font-size:17px}.bbk-download-link>span{display:flex;overflow:hidden;flex:1;flex-direction:column;min-width:0}.bbk-download-link small{color:rgba(255,255,255,.75);font-size:12px;line-height:1.35}.bbk-download-link strong{overflow:hidden;color:#fff;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.bbk-download-link em{display:flex;align-items:center;gap:7px;color:#fff;font-size:13px;font-style:normal;font-weight:800}.bbk-download-password{display:flex;align-items:center;justify-content:center;flex:0 0 auto;gap:7px;padding:0 14px;color:var(--bbk-text);border:1px solid var(--bbk-border);border-radius:13px;background:var(--bbk-surface);cursor:pointer}.bbk-download-password span{color:var(--bbk-muted);font-size:12px}.bbk-download-password strong{font-size:15px;letter-spacing:.08em}.bbk-download-password i{color:var(--bbk-primary)}.bbk-cloud-download-note{margin:0;color:var(--bbk-muted);font-size:13px;line-height:1.7}.bbk-cloud-download-note i{margin-right:5px;color:var(--bbk-primary)}
.bbk-resource-maintenance{display:flex;align-items:center;gap:13px;padding:15px 17px;margin-top:18px;color:var(--bbk-text);border:1px solid #eadcae;border-radius:13px;background:#fffaf0}.bbk-resource-maintenance>i{color:#c48b13;font-size:20px}.bbk-resource-maintenance strong{display:block;font-size:15px}.bbk-resource-maintenance p{margin:3px 0 0;color:var(--bbk-muted);font-size:13px;line-height:1.6}

@media (max-width:575.98px){.bbk-download-item{flex-direction:column}.bbk-download-password{min-height:46px}.bbk-download-link em{font-size:0}.bbk-download-link em i{font-size:13px}}
.bbk-product-cover img { width: 100%; height: 100%; object-fit: cover; }
.bbk-product-badge { position: absolute; left: 16px; top: 16px; padding: 7px 12px; color: #fff; border-radius: 999px; background: rgba(37, 24, 78, .82); font-size: 12px; font-weight: 800; }
.bbk-product-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; color: var(--bbk-muted); font-size: 13px; }
.bbk-product-meta i { color: var(--bbk-primary); margin-right: 5px; }
.bbk-price-box { padding: 22px; border: 1px solid rgba(var(--bbk-primary-rgb), .16); border-radius: 18px; background: var(--bbk-soft-purple); }
.bbk-price-box > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 14px; padding-bottom: 17px; border-bottom: 1px solid rgba(var(--bbk-primary-rgb), .12); }
.bbk-price-box small { color: var(--bbk-muted); }
.bbk-price-box strong { grid-row: 1 / 3; grid-column: 2; color: var(--bbk-primary); font-size: 34px; }
.bbk-price-box span { color: var(--bbk-muted); font-size: 13px; }
.bbk-price-box ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.bbk-price-box li { display: flex; flex-direction: column; gap: 5px; color: var(--bbk-muted); font-size: 12px; }
.bbk-price-box li b { color: var(--bbk-text); font-size: 15px; }
.bbk-buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bbk-purchase-note { margin: 15px 0 0; color: var(--bbk-muted); font-size: 12px; }
.bbk-purchase-note i { color: var(--bbk-primary); }
.bbk-access-granted { display: flex; gap: 14px; padding: 22px; color: #0e6f57; border: 1px solid rgba(15,159,122,.18); border-radius: 16px; background: rgba(15,159,122,.08); }
.bbk-access-granted > i { margin-top: 3px; font-size: 24px; }
.bbk-access-granted p { margin: 5px 0 0; color: var(--bbk-muted); }
.bbk-download-list { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bbk-download-password { color: var(--bbk-muted); font-size: 13px; }
.bbk-product-description { padding-top: 25px; border-top: 1px solid var(--bbk-border); }

.bbk-article-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--bbk-muted); font-size: 13px; }
.bbk-article-facts i { color: var(--bbk-primary); margin-right: 5px; }
.bbk-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 38px; padding-bottom: 70px; }
.bbk-reading-card { padding: clamp(28px, 5vw, 58px); font-size: 17px; line-height: 1.95; }
.bbk-reading-side { align-self: stretch; }
.bbk-book-reading-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.bbk-book-reading-overview > div { position: relative; min-width: 0; padding: 18px; border: 1px solid rgba(var(--bbk-primary-rgb), .13); border-radius: 16px; background: var(--bbk-soft-purple); }
.bbk-book-reading-overview i { display: grid; width: 36px; height: 36px; margin-bottom: 12px; place-items: center; color: var(--bbk-primary); border-radius: 11px; background: var(--bbk-surface); }
.bbk-book-reading-overview span { display: block; margin-bottom: 5px; color: var(--bbk-muted); font-size: 14px; font-weight: 700; }
.bbk-book-reading-overview strong { display: block; color: var(--bbk-deep); font-size: 15px; line-height: 1.65; }
.bbk-book-reason { margin: 0 0 32px; padding: 22px 24px; border: 1px solid rgba(var(--bbk-primary-rgb), .18); border-radius: 18px; background: linear-gradient(135deg, var(--bbk-soft-purple), var(--bbk-surface)); }
.bbk-book-reason > span { display: flex; align-items: center; gap: 9px; color: var(--bbk-primary); font-size: 17px; font-weight: 850; }
.bbk-book-reason p { margin: 9px 0 0; color: var(--bbk-text); font-size: 16px; line-height: 1.85; }
.bbk-book-editor-note { margin-top: 38px; padding: 20px 22px; border-left: 4px solid var(--bbk-primary); border-radius: 0 14px 14px 0; background: var(--bbk-soft); }
.bbk-book-editor-note strong { color: var(--bbk-deep); font-size: 17px; }
.bbk-book-editor-note p { margin: 6px 0 0; color: var(--bbk-muted); font-size: 15px; line-height: 1.8; }
.bbk-content-disclaimer { margin-top: 36px; padding: 18px; color: var(--bbk-muted); border-radius: 14px; background: var(--bbk-soft); font-size: 13px; line-height: 1.7; }
.bbk-content-disclaimer p { margin: 5px 0 0; }
.bbk-paid-content { margin: 35px 0; padding: 36px; text-align: center; border: 1px solid rgba(var(--bbk-primary-rgb), .2); border-radius: 22px; background: linear-gradient(145deg, var(--bbk-soft-purple), var(--bbk-surface)); }
.bbk-paywall-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; color: #fff; border-radius: 20px; background: linear-gradient(135deg, var(--bbk-primary), var(--bbk-secondary)); box-shadow: 0 14px 30px rgba(var(--bbk-primary-rgb), .25); }
.bbk-paid-content h3 { margin: 9px 0; color: var(--bbk-deep); font-size: 25px; }
.bbk-paid-content > p { max-width: 580px; margin: 0 auto; color: var(--bbk-muted); }
.bbk-paywall-price { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 22px 0 5px; }
.bbk-paywall-price strong { color: var(--bbk-primary); font-size: 34px; }
.bbk-paywall-price span { color: var(--bbk-muted); font-size: 12px; }
.bbk-paywall-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; color: var(--bbk-muted); font-size: 12px; }
.bbk-paywall-benefits i { color: #0f9f7a; }
.bbk-unlocked-label { margin-bottom: 22px; color: #0f9f7a; font-weight: 800; }
.bbk-unlocked-content { text-align: left; }

.login-and-register { background: radial-gradient(circle at 15% 15%, rgba(var(--bbk-primary-rgb), .24), transparent 36rem), var(--bbk-soft) !important; }
.login-and-register .bg-white { width: min(520px, 94vw); border: 1px solid var(--bbk-border); border-radius: 24px !important; box-shadow: var(--bbk-shadow) !important; }
.login-and-register img.logo { width: auto; height: 66px; max-width: 290px; }
.bbk-account-heading { margin: 16px 0 24px; }
.bbk-account-heading h1 { margin: 8px 0; color: var(--bbk-deep); font-size: 30px; font-weight: 850; }
.bbk-account-heading p { margin: 0; color: var(--bbk-muted); line-height: 1.65; }
.bbk-account-form { text-align: left; }
.bbk-account-form > label { display: block; margin-bottom: 15px; color: var(--bbk-text); font-size: 13px; font-weight: 750; }
.bbk-account-form > label span { color: #e34d6f; margin-left: 3px; }
.bbk-account-form input { width: 100%; margin-top: 7px; padding: 0 14px; }
.bbk-account-verification { margin-bottom: 16px; }
.bbk-account-verification-title { display: block; margin-bottom: 8px; color: var(--bbk-text); font-size: 13px; font-weight: 750; }
.bbk-account-verification-title em { margin-left: 3px; color: #e34d6f; font-style: normal; }
.bbk-slider-captcha { --bbk-slider-handle: 48px; }
.bbk-slider-track { position: relative; height: 50px; overflow: hidden; border: 1px solid #ddd7ef; border-radius: 12px; background: #f5f3fb; box-shadow: inset 0 1px 2px rgba(48,32,91,.04); user-select: none; touch-action: none; }
.bbk-slider-progress { position: absolute; inset: 0 auto 0 0; width: var(--bbk-slider-handle); border-radius: 11px; background: linear-gradient(90deg, rgba(113,80,230,.18), rgba(113,80,230,.08)); transition: width .08s linear; }
.bbk-slider-copy { position: absolute; inset: 0 58px; display: flex; align-items: center; justify-content: center; color: #6f687e; font-size: 14px; font-weight: 700; pointer-events: none; }
.bbk-slider-handle { position: absolute; top: 3px; left: 3px; z-index: 2; display: inline-flex; width: var(--bbk-slider-handle); height: 42px; align-items: center; justify-content: center; padding: 0; color: #fff; border: 0; border-radius: 10px; background: linear-gradient(135deg, #7150e6, #8b69f2); box-shadow: 0 5px 15px rgba(113,80,230,.28); cursor: grab; touch-action: none; transition: box-shadow .18s ease, background .18s ease; }
.bbk-slider-handle:active { cursor: grabbing; }
.bbk-slider-handle:focus-visible { outline: 3px solid rgba(113,80,230,.25); outline-offset: 2px; }
.bbk-slider-status { margin: 7px 2px 0; color: var(--bbk-muted); font-size: 13px; line-height: 1.45; }
.bbk-slider-captcha.is-dragging .bbk-slider-track, .bbk-slider-captcha.is-checking .bbk-slider-track { border-color: rgba(113,80,230,.55); }
.bbk-slider-captcha.is-success .bbk-slider-track { border-color: rgba(12,188,135,.55); background: rgba(12,188,135,.07); }
.bbk-slider-captcha.is-success .bbk-slider-progress, .bbk-slider-captcha.is-success .bbk-slider-handle { background: #0cbc87; }
.bbk-slider-captcha.is-success .bbk-slider-copy, .bbk-slider-captcha.is-success .bbk-slider-status { color: #087c5b; }
.bbk-slider-captcha.is-error .bbk-slider-track { border-color: rgba(214,41,62,.45); }
.bbk-slider-captcha.is-error .bbk-slider-status { color: #b52336; }
.bbk-slider-noscript { margin: 8px 0 0; color: #b52336; font-size: 13px; }
[data-bs-theme="dark"] .bbk-slider-track { border-color: rgba(255,255,255,.16); background: #292532; }
[data-bs-theme="dark"] .bbk-slider-copy { color: #d5cee3; }
[data-bs-theme="dark"] .bbk-slider-captcha.is-success .bbk-slider-track { background: rgba(12,188,135,.12); }
@media (max-width: 575.98px) {
  .bbk-slider-copy { right: 50px; left: 50px; font-size: 13px; }
}

/* Baibaoku 404 */
.bbk-404-page { min-height: 70vh; color: var(--bbk-text); background: #f8f7fc; }
.bbk-404-hero { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0 72px; color: #fff; background: linear-gradient(135deg, #22164e 0%, #43278e 52%, #7150e6 100%); }
.bbk-404-hero::before { position: absolute; inset: 0; content: ""; opacity: .2; background-image: radial-gradient(circle at 1px 1px, #fff 1.3px, transparent 1.3px); background-size: 28px 28px; }
.bbk-404-container { position: relative; z-index: 2; display: flex; max-width: 900px; align-items: center; flex-direction: column; text-align: center; }
.bbk-404-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.bbk-404-orb-one { top: -150px; right: -100px; width: 480px; height: 480px; background: rgba(255,255,255,.1); }
.bbk-404-orb-two { bottom: -210px; left: -120px; width: 400px; height: 400px; background: rgba(139,105,242,.28); }
.bbk-404-code { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; font-size: clamp(84px, 14vw, 150px); font-weight: 900; line-height: .9; letter-spacing: -8px; text-shadow: 0 12px 42px rgba(16,8,44,.3); }
.bbk-404-code i { display: inline-flex; width: .65em; height: .65em; align-items: center; justify-content: center; font-size: .42em; letter-spacing: 0; border: 4px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.12); transform: rotate(-12deg); }
.bbk-404-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; background: rgba(255,255,255,.1); font-size: 15px; font-weight: 750; }
.bbk-404-hero h1 { max-width: 780px; margin: 0; color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 900; line-height: 1.15; letter-spacing: -.04em; }
.bbk-404-lead { max-width: 720px; margin: 20px auto 28px; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.8; }
.bbk-404-search { display: flex; width: min(100%, 720px); min-height: 60px; align-items: center; gap: 12px; padding: 7px 8px 7px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(18,8,50,.3); }
.bbk-404-search > i { color: #7150e6; font-size: 18px; }
.bbk-404-search input { flex: 1; min-width: 0; height: 46px; padding: 0; color: #211a31; border: 0; outline: 0; background: transparent; font-size: 16px; }
.bbk-404-search input::placeholder { color: #898294; }
.bbk-404-search button { min-width: 118px; height: 46px; padding: 0 22px; color: #fff; border: 0; border-radius: 11px; background: linear-gradient(135deg, #7150e6, #8b69f2); font-size: 16px; font-weight: 800; box-shadow: 0 7px 18px rgba(113,80,230,.28); }
.bbk-404-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.bbk-404-actions .btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border-radius: 11px; font-size: 16px; font-weight: 750; }
.bbk-404-back { color: #fff; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.1); }
.bbk-404-back:hover { color: #fff; background: rgba(255,255,255,.18); }
.bbk-404-section { padding: 68px 0; }
.bbk-404-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.bbk-404-heading span { color: #7150e6; font-size: 15px; font-weight: 850; }
.bbk-404-heading h2 { margin: 6px 0 0; color: #211a31; font-size: clamp(28px, 3vw, 38px); font-weight: 900; letter-spacing: -.03em; }
.bbk-404-heading p, .bbk-404-heading > a { margin: 0; color: #746d81; font-size: 16px; }
.bbk-404-heading > a { color: #7150e6; font-weight: 750; }
.bbk-404-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bbk-404-link-card { display: grid; min-height: 112px; align-items: center; grid-template-columns: 48px 1fr auto; gap: 14px; padding: 20px; color: #211a31; border: 1px solid #e6e1f1; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(44,27,86,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bbk-404-link-card:hover { color: #211a31; border-color: rgba(113,80,230,.42); box-shadow: 0 16px 38px rgba(74,49,140,.12); transform: translateY(-4px); }
.bbk-404-link-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: #7150e6; border-radius: 14px; background: rgba(113,80,230,.1); font-size: 20px; }
.bbk-404-link-card strong, .bbk-404-link-card small { display: block; }
.bbk-404-link-card strong { margin-bottom: 5px; font-size: 17px; font-weight: 850; }
.bbk-404-link-card small { color: #7b7487; font-size: 15px; line-height: 1.5; }
.bbk-404-link-card > i { color: #9b91af; }
.bbk-404-recent-section { padding-top: 0; }
.bbk-404-recent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bbk-404-recent-card { display: flex; min-height: 238px; flex-direction: column; padding: 23px; border: 1px solid #e6e1f1; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(44,27,86,.05); }
.bbk-404-recent-type { align-self: flex-start; padding: 5px 9px; color: #7150e6; border-radius: 7px; background: rgba(113,80,230,.09); font-size: 14px; font-weight: 800; }
.bbk-404-recent-card h3 { margin: 15px 0 9px; font-size: 19px; font-weight: 850; line-height: 1.45; }
.bbk-404-recent-card h3 a { color: #211a31; }
.bbk-404-recent-card p { margin: 0 0 18px; color: #746d81; font-size: 15px; line-height: 1.7; }
.bbk-404-read-more { margin-top: auto; color: #7150e6; font-size: 15px; font-weight: 800; }
[data-bs-theme="dark"] .bbk-404-page { background: #1e1c24; }
[data-bs-theme="dark"] .bbk-404-heading h2, [data-bs-theme="dark"] .bbk-404-link-card, [data-bs-theme="dark"] .bbk-404-recent-card h3 a { color: #f4f0ff; }
[data-bs-theme="dark"] .bbk-404-link-card, [data-bs-theme="dark"] .bbk-404-recent-card { border-color: rgba(255,255,255,.1); background: #292630; }
[data-bs-theme="dark"] .bbk-404-heading p, [data-bs-theme="dark"] .bbk-404-link-card small, [data-bs-theme="dark"] .bbk-404-recent-card p { color: #bdb5ca; }
@media (max-width: 991.98px) {
  .bbk-404-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbk-404-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .bbk-404-hero { padding: 52px 0 54px; }
  .bbk-404-code { gap: 10px; letter-spacing: -5px; }
  .bbk-404-lead { font-size: 16px; }
  .bbk-404-search { display: grid; grid-template-columns: 22px 1fr; padding: 9px 10px 10px 16px; }
  .bbk-404-search button { width: 100%; grid-column: 1 / -1; }
  .bbk-404-actions { flex-direction: column; width: 100%; }
  .bbk-404-heading { align-items: flex-start; flex-direction: column; }
  .bbk-404-link-grid, .bbk-404-recent-grid { grid-template-columns: 1fr; }
  .bbk-404-section { padding: 48px 0; }
}
.bbk-account-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.bbk-account-type > label { position: relative; margin: 0; cursor: pointer; }
.bbk-account-type input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.bbk-account-type label > span { display: flex; min-height: 112px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 13px 10px; color: var(--bbk-muted); border: 1px solid var(--bbk-border); border-radius: 14px; background: var(--bbk-surface); text-align: center; transition: .2s ease; }
.bbk-account-type label > span i { color: var(--bbk-primary); font-size: 20px; }
.bbk-account-type label > span b { color: var(--bbk-deep); font-size: 15px; }
.bbk-account-type label > span small { color: var(--bbk-muted); font-size: 12px; line-height: 1.5; }
.bbk-account-type label.is-active > span { color: var(--bbk-primary); border-color: var(--bbk-primary); background: var(--bbk-soft-purple); box-shadow: 0 0 0 3px rgba(var(--bbk-primary-rgb), .09); }
.bbk-creator-fields { padding: 16px; margin: 4px 0 18px; border: 1px solid rgba(var(--bbk-primary-rgb), .18); border-radius: 16px; background: var(--bbk-soft-purple); }
.bbk-creator-fields[hidden] { display: none; }
.bbk-creator-fields > label { display: block; margin-top: 15px; color: var(--bbk-text); font-size: 13px; font-weight: 750; }
.bbk-creator-fields > label > span { margin-left: 3px; color: #e34d6f; }
.bbk-creator-fields textarea,
.bbk-creator-fields select { display: block; width: 100%; margin-top: 7px; padding: 11px 13px; color: var(--bbk-text); border: 1px solid var(--bbk-border); border-radius: 10px; outline: 0; background: var(--bbk-surface); font-size: 14px; line-height: 1.65; }
.bbk-creator-fields select { min-height: 46px; }
.bbk-creator-fields textarea:focus,
.bbk-creator-fields select:focus { border-color: var(--bbk-primary); box-shadow: 0 0 0 3px rgba(var(--bbk-primary-rgb), .09); }
.bbk-creator-fields label > small { display: block; margin-top: 6px; color: var(--bbk-muted); font-size: 12px; font-weight: 500; line-height: 1.55; }
.bbk-creator-review-note { display: flex; align-items: flex-start; gap: 11px; }
.bbk-creator-review-note > i { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: var(--bbk-primary); border-radius: 11px; background: var(--bbk-surface); }
.bbk-creator-review-note strong { display: block; color: var(--bbk-deep); font-size: 15px; }
.bbk-creator-review-note p { margin: 4px 0 0; color: var(--bbk-muted); font-size: 12px; line-height: 1.6; }
.bbk-identity-card .card-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bbk-identity-card h5 { margin: 7px 0; color: var(--bbk-deep); font-size: 20px; font-weight: 850; }
.bbk-identity-card p { margin: 0; color: var(--bbk-muted); font-size: 14px; line-height: 1.7; }
.bbk-identity-card small { display: block; margin-top: 7px; color: var(--bbk-primary); font-size: 13px; font-weight: 700; }
.bbk-identity-card .card-body > i { display: grid; flex: 0 0 54px; height: 54px; place-items: center; color: var(--bbk-primary); border-radius: 16px; background: var(--bbk-soft-purple); font-size: 21px; }

@media (max-width: 575.98px) {
  .bbk-account-type { grid-template-columns: 1fr; }
  .bbk-account-type label > span { min-height: 92px; }
  .bbk-creator-fields { padding: 13px; }
  .bbk-identity-card .card-body { align-items: flex-start; }
  .bbk-identity-card .card-body > i { flex-basis: 46px; height: 46px; border-radius: 13px; }
}
.bbk-account-row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 17px; font-size: 13px; }
.bbk-check { display: flex; align-items: center; gap: 7px; color: var(--bbk-muted); }
.bbk-check input { width: auto; min-height: auto; margin: 0; }
.bbk-account-switch, .bbk-account-policy { margin: 17px 0 0; color: var(--bbk-muted); text-align: center; font-size: 13px; }
.bbk-account-switch a, .bbk-account-policy a, .bbk-account-row a { color: var(--bbk-primary); font-weight: 750; }
.bbk-account-alert { border: 0; border-radius: 12px; font-size: 13px; }

.post-title { color: var(--bbk-deep); font-size: clamp(30px, 3.7vw, 46px); font-weight: 850; line-height: 1.25; letter-spacing: -.035em; }
.article-header { padding: clamp(24px, 4vw, 42px); }
.post-content { color: var(--bbk-text); }
.post-content h2, .post-content h3 { color: var(--bbk-deep); font-weight: 800; }
.post-content blockquote { border-left-color: var(--bbk-primary); background: var(--bbk-soft-purple); }
.entry-meta .meta-price { color: var(--bbk-primary); font-weight: 850; }
.entry-tags > a { color: var(--bbk-primary) !important; border: 1px solid rgba(var(--bbk-primary-rgb), .16); border-radius: 999px; background: var(--bbk-soft-purple); }

.site-footer { color: var(--bbk-muted); border-top: 1px solid var(--bbk-border); background: #1d1730; }
.site-footer h4, .site-footer a:hover { color: #fff; }
.site-footer .footer-widget { box-shadow: none; }
.m-navbar a.active, .m-navbar a:hover { color: var(--bbk-primary); }

@media (min-width: 768px) and (max-width: 1399.98px) {
  .site-header .main-menu .nav-list > li > a { margin: 0 !important; padding-right: 9px !important; padding-left: 9px !important; font-size: 15px !important; letter-spacing: 0; }
  .site-header .actions .toggle-color,
  .site-header .actions .toggle-search,
  .site-header .actions .toggle-notify { display: none !important; }
  .site-header .actions { position: relative; z-index: 3; margin-left: 10px !important; background: var(--bbk-surface); }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand img, .logo-wrapper img.logo { height: 46px; max-width: 195px; }
  .site-header .main-menu .nav-list > li > a { padding-right: 6px !important; padding-left: 6px !important; font-size: 14px !important; }
  .site-header .actions { flex: 0 0 auto; margin-left: 10px !important; }
}

@media (max-width: 991.98px) {
  .site-header, .site-header .navbar { height: 72px; min-height: 72px; }
  .header-gap { height: 72px; }
  .site-header .logo-wrapper { height: 72px; }
  .site-header .actions { align-self: center; height: 72px; margin-left: auto !important; background: transparent; }
  .navbar-brand img, .logo-wrapper img.logo { height: 46px; max-width: 225px; }
  .bbk-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .bbk-hero-panel { max-width: 680px; }
  .bbk-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbk-trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .bbk-home-cta .container { align-items: flex-start; flex-direction: column; }
  .bbk-single-layout, .bbk-reading-layout { grid-template-columns: 1fr; }
  .bbk-book-reading-overview { grid-template-columns: 1fr; }
  .bbk-side-card { position: static; }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 62px; }
  .site-header, .site-header .navbar { height: 64px; min-height: 64px; }
  .header-gap { height: 64px; }
  .site-header .logo-wrapper { height: 64px; }
  .navbar-brand img, .logo-wrapper img.logo { height: 42px; max-width: 190px; }
  .site-header .actions { flex: 0 0 auto; width: auto; min-width: 0; height: 64px; gap: 7px; margin-left: auto !important; }
  .site-header .actions .toggle-color,
  .site-header .actions .toggle-search,
  .site-header .actions .toggle-notify { display: none !important; }
  .site-header .login-btn { min-width: 72px; height: 40px; min-height: 40px; padding: 0 12px !important; border-radius: 11px !important; font-size: 14px !important; }
  .site-header .burger { display: flex; width: 40px; height: 40px; margin: 0; border-radius: 11px; }
  .bbk-home-hero { padding: 48px 0 42px; }
  .bbk-hero-copy h1 { margin-top: 13px; font-size: 39px; }
  .bbk-hero-copy > p { font-size: 15px; line-height: 1.7; }
  .bbk-hero-search { padding-left: 14px; border-radius: 15px; }
  .bbk-hero-search input { min-height: 42px; padding: 0 10px; font-size: 13px; }
  .bbk-hero-search button { min-width: 70px; height: 42px; }
  .bbk-hot-search { gap: 8px; }
  .bbk-hero-panel { padding: 16px; border-radius: 20px; }
  .bbk-quick-grid { gap: 9px; }
  .bbk-quick-grid a { grid-template-columns: 38px 1fr; padding: 13px; }
  .bbk-quick-grid i { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
  .bbk-quick-grid strong { font-size: 13px; }
  .bbk-quick-grid small { font-size: 10px; }
  .bbk-trust-strip .container { display: flex; overflow-x: auto; gap: 24px; }
  .bbk-trust-strip span { flex: 0 0 auto; }
  .bbk-home-section { padding: 52px 0; }
  .bbk-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .bbk-section-heading h2 { font-size: 28px; }
  .bbk-content-grid { grid-template-columns: 1fr; gap: 13px; }
  .bbk-content-card { grid-template-columns: 52px minmax(0, 1fr); min-height: 0; padding: 18px; border-radius: 17px; }
  .bbk-card-icon { width: 52px; height: 52px; border-radius: 15px; font-size: 20px; }
  .bbk-content-card h2, .bbk-content-card h3 { font-size: 16px; }
  .bbk-home-cta { padding: 50px 0; }
  .bbk-home-cta h2 { font-size: 28px; }
  .bbk-cta-actions { width: 100%; flex-direction: column; }
  .bbk-archive-hero, .bbk-single-hero { padding: 45px 0 40px; }
  .bbk-archive-hero h1, .bbk-single-hero h1 { font-size: 34px; }
  .bbk-archive-content { padding-top: 30px; padding-bottom: 50px; }
  .bbk-single-layout, .bbk-reading-layout, .bbk-single-product { padding-top: 22px; padding-bottom: 50px; }
  .bbk-tool-shell, .bbk-tool-guide, .bbk-product-card, .bbk-reading-card { padding: 20px; }
  .bbk-tool-options, .bbk-tool-options.is-two, .bbk-tool-preview, .bbk-tool-textarea-grid, .bbk-tool-equation { grid-template-columns: 1fr; }
  .bbk-tool-equation > span { display: none; }
  .bbk-tool-result-grid { grid-template-columns: 1fr; }
  .bbk-tool-preview img { height: 190px; }
  .bbk-tool-upload { min-height: 148px; padding: 22px 16px; }
  .bbk-tool-fields { grid-template-columns: 1fr; gap: 8px; }
  .bbk-tool-stats { grid-template-columns: repeat(2, 1fr); }
  .bbk-product-cover { min-height: 230px; }
  .bbk-price-box ul { grid-template-columns: 1fr; }
  .bbk-price-box li { align-items: center; justify-content: space-between; flex-direction: row; }
  .bbk-buy-actions .btn { width: 100%; }
  .bbk-paid-content { padding: 26px 18px; }
  .bbk-article-facts { gap: 9px 14px; }
  .login-and-register .bg-white { border-radius: 20px !important; }
  .login-and-register img.logo { height: 52px; max-width: 230px; }
  .m-navbar { border-top: 1px solid var(--bbk-border); background: color-mix(in srgb, var(--bbk-surface) 94%, transparent); box-shadow: 0 -8px 24px rgba(43, 31, 82, .08); }
}
.single-bbk_template .bbk-product-cover { aspect-ratio: 4 / 3; height: auto; min-height: 0; }

@media (max-width: 374.98px) {
  .navbar-brand img, .logo-wrapper img.logo { height: 36px; max-width: 165px; }
  .site-header .login-btn { min-width: 64px; padding: 0 10px !important; }
  .site-header .actions { gap: 6px; }
  .site-header .burger { width: 38px; height: 38px; }
}

/*
 * Header width contract: the navigation may only use the space between the
 * logo and the action controls. Never allow it to paint over language/login.
 */
.site-header .navbar,
.site-header .main-menu,
.site-header .main-menu > div,
.site-header #header-navbar {
  min-width: 0;
  max-width: 100%;
}
.site-header .main-menu {
  position: relative;
  z-index: 1;
  overflow: visible;
}
.site-header .main-menu > div,
.site-header #header-navbar {
  width: 100%;
  height: 100%;
}
.site-header #header-navbar > li {
  min-width: 0;
  flex: 0 1 auto;
}
.site-header #header-navbar > li > a {
  max-width: 100%;
  white-space: nowrap;
}
.site-header .actions {
  position: relative;
  z-index: 20;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  isolation: isolate;
}

@media (min-width: 992px) {
  .site-header .actions { min-width: max-content; }
}

/* Full action controls fit again once the desktop container is wide enough. */
@media (min-width: 1280px) and (max-width: 1399.98px) {
  .site-header .main-menu .nav-list > li > a { padding-right: 6px !important; padding-left: 6px !important; font-size: 15px !important; }
  .site-header .actions { gap: 6px; margin-left: 8px !important; }
  .site-header .actions .toggle-color,
  .site-header .actions .toggle-search,
  .site-header .actions .toggle-notify { display: inline-flex !important; }
  .site-header .login-btn { min-width: 80px; padding-right: 14px !important; padding-left: 14px !important; }
}

/* A compact desktop header is safer than overlapping controls at this width. */
@media (min-width: 992px) and (max-width: 1099.98px) {
  .site-header .main-menu { display: none !important; }
  .site-header .actions { margin-left: auto !important; }
  .site-header .burger.d-lg-none { display: flex !important; }
}

/* Keep media cards intact after the legacy responsive card rules above. */
@media (max-width: 767.98px) {
  .bbk-content-card.bbk-card-with-media { display: flex; padding: 0; flex-direction: column; gap: 0; }
  .bbk-content-card.bbk-card-with-media .bbk-card-body { padding: 17px; }
  .bbk-content-grid.bbk-grid-bbk_book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bbk-grid-bbk_book .bbk-content-card.bbk-card-with-media .bbk-card-body { padding: 13px; }
}

/* User center: readable download quota and sensitive-account guidance. */
.bbk-download-quota {
  overflow: hidden;
  margin: 0;
  padding: 18px;
  color: #fff;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(145deg, #302064 0%, #7150e6 100%);
  box-shadow: 0 14px 30px rgba(70, 45, 156, .18);
}
.bbk-download-quota-total { display: flex; align-items: baseline; justify-content: center; gap: 6px; color: #fff; }
.bbk-download-quota-total span { color: #fff; font-size: 15px; font-weight: 700; }
.bbk-download-quota-total strong { color: #fff; font-size: 30px; line-height: 1; font-weight: 850; }
.bbk-download-quota-total small { color: #fff; font-size: 14px; font-weight: 700; }
.bbk-download-quota-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.bbk-download-quota-stats > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 9px 11px; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 11px; background: rgba(24,14,62,.18); }
.bbk-download-quota-stats small { color: #fff; font-size: 14px; line-height: 1.35; font-weight: 700; }
.bbk-download-quota-stats b { color: #fff; font-size: 20px; line-height: 1; font-weight: 850; }
.bbk-account-security-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; color: #5337b6; border: 1px solid rgba(113,80,230,.2); border-radius: 12px; background: rgba(113,80,230,.08); font-size: 14px; line-height: 1.65; font-weight: 600; }
.bbk-account-security-note i { flex: 0 0 auto; margin-top: .32em; color: var(--bbk-primary); }
[data-bs-theme="dark"] .bbk-account-security-note { color: #ded5ff; border-color: rgba(157,130,255,.26); background: rgba(157,130,255,.12); }

@media (max-width: 575.98px) {
  .bbk-download-quota { padding: 16px; }
  .bbk-download-quota-total span { font-size: 14px; }
  .bbk-download-quota-stats small { font-size: 14px; }
}

/* 首页免费在线工具：手机端保持两列，卡片内容重新排布而不是缩小字体。 */
@media (max-width: 767.98px) {
  .bbk-home-main .bbk-content-grid.bbk-grid-bbk_tool {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-content-card {
    display: flex;
    min-width: 0;
    min-height: 248px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 20px;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-body { flex: 1 1 auto; }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-kicker {
    margin-bottom: 5px;
    font-size: 12px;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-content-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.45;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-content-card p {
    min-height: 46px;
    margin-bottom: 13px;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-footer {
    gap: 7px;
    padding-top: 11px;
    font-size: 13px;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-footer span,
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-footer a { white-space: nowrap; }
}

@media (max-width: 374.98px) {
  .bbk-home-main .bbk-content-grid.bbk-grid-bbk_tool { gap: 9px; }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-content-card {
    min-height: 240px;
    padding: 13px;
    border-radius: 15px;
  }
  .bbk-home-main .bbk-grid-bbk_tool .bbk-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 成长智库：作者信息流卡片，移动端保持参考图的文字左、图片右结构。 */
.bbk-knowledge-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.bbk-knowledge-feed-card {
  display: grid;
  min-width: 0;
  min-height: 220px;
  grid-template-columns: minmax(0, 1fr) 172px;
  align-items: center;
  gap: 18px;
  padding: 19px;
  border: 1px solid rgba(65, 51, 98, .06);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bbk-soft) 86%, #ececef);
  box-shadow: 0 5px 16px rgba(42, 31, 72, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bbk-knowledge-feed-card:hover {
  border-color: rgba(var(--bbk-primary-rgb), .24);
  box-shadow: 0 14px 34px rgba(54, 37, 105, .1);
  transform: translateY(-2px);
}
.bbk-knowledge-feed-copy {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}
.bbk-knowledge-author { display: flex; min-width: 0; align-items: center; gap: 9px; }
.bbk-knowledge-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--bbk-surface);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(36, 25, 69, .12);
}
.bbk-knowledge-author > div { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.bbk-knowledge-author strong {
  overflow: hidden;
  max-width: 135px;
  color: var(--bbk-primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bbk-knowledge-author time { color: var(--bbk-muted); font-size: 13px; line-height: 1.35; }
.bbk-knowledge-feed-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 7px;
  color: var(--bbk-deep);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bbk-knowledge-feed-card h3 a:hover { color: var(--bbk-primary); }
.bbk-knowledge-feed-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--bbk-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bbk-knowledge-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: auto;
  color: var(--bbk-muted);
  font-size: 13px;
  line-height: 1.4;
}
.bbk-knowledge-feed-meta span { display: inline-flex; min-width: 0; align-items: center; gap: 5px; }
.bbk-knowledge-feed-meta span i { color: var(--bbk-primary); }
.bbk-knowledge-feed-meta b { color: var(--bbk-primary); font-size: 13px; font-weight: 850; }
.bbk-knowledge-feed-cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 11px;
  background: var(--bbk-soft-purple);
}
.bbk-knowledge-feed-cover img,
.bbk-knowledge-feed-cover .bbk-cover-placeholder,
.bbk-knowledge-feed-cover .bbk-cover-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.bbk-knowledge-feed-card:hover .bbk-knowledge-feed-cover img { transform: scale(1.04); }
.bbk-home-knowledge-feed .bbk-knowledge-feed-card:nth-child(3n + 2),
.bbk-knowledge-feed-grid .bbk-knowledge-feed-card:nth-child(3n + 2) {
  background: color-mix(in srgb, var(--bbk-soft-purple) 58%, var(--bbk-soft));
}
[data-bs-theme="dark"] .bbk-knowledge-feed-card {
  border-color: rgba(255,255,255,.07);
  background: #25212e;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
[data-bs-theme="dark"] .bbk-home-knowledge-feed .bbk-knowledge-feed-card:nth-child(3n + 2),
[data-bs-theme="dark"] .bbk-knowledge-feed-grid .bbk-knowledge-feed-card:nth-child(3n + 2) { background: #2b2439; }

@media (max-width: 991.98px) {
  .bbk-knowledge-feed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .bbk-knowledge-feed-grid { gap: 11px; }
  .bbk-knowledge-feed-card {
    min-height: 174px;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }
  .bbk-knowledge-avatar {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .bbk-knowledge-author > div { display: grid; gap: 1px; }
  .bbk-knowledge-author strong { max-width: 120px; font-size: 14px; }
  .bbk-knowledge-author time { font-size: 12px; }
  .bbk-knowledge-feed-card h3 {
    margin: 9px 0 5px;
    font-size: 16px;
    line-height: 1.45;
  }
  .bbk-knowledge-feed-card p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }
  .bbk-knowledge-feed-meta { font-size: 12px; }
  .bbk-knowledge-feed-meta b { font-size: 12px; }
}

@media (max-width: 374.98px) {
  .bbk-knowledge-feed-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
    padding: 12px;
  }
  .bbk-knowledge-feed-card p { -webkit-line-clamp: 1; }
  .bbk-knowledge-feed-meta span { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
