/*
Theme Name: Baohe
Theme URI: https://www.baohe.io
Author: Baohe
Author URI: https://www.baohe.io
Description: Baohe — 虚拟商品（WordPress 主题 / 插件 / 授权服务）官网主题。深色画布 + 三色品牌渐变 + 等宽大写眉标的 Together-AI 式设计系统，与 Baohe Digital Store 商城插件深度集成（商品卡读取 products 表，内置商店 / 门户 / 兑换码页面模板）。
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baohe
Tags: e-commerce, dark, light, one-column, custom-logo, custom-menu, featured-images
*/

/* =========================================================
 * Baohe Design System
 *canvas-dark #010120 / canvas #fff / hairline #ebebeb
 *gradient: #fc4c02 -> #ef2cc1 -> #bdbbff ; mint #c8f6f9
 * ========================================================= */

:root {
  --bh-canvas: #ffffff;
  --bh-canvas-dark: #010120;
  --bh-hairline: #ebebeb;
  --bh-primary: #000000;
  --bh-on-primary: #ffffff;
  --bh-on-dark: #ffffff;
  --bh-ink: #000000;
  --bh-body: #999999;
  --bh-dark-soft: #26263a;
  --bh-dark-soft-2: #313641;
  --bh-orange: #fc4c02;
  --bh-magenta: #ef2cc1;
  --bh-periwinkle: #bdbbff;
  --bh-mint: #c8f6f9;
  --bh-peach: #ffe4d6;
  --bh-gradient: linear-gradient(90deg, #fc4c02 0%, #ef2cc1 50%, #bdbbff 100%);
  --bh-radius-xs: 3.25px;
  --bh-radius-sm: 4px;
  --bh-radius-md: 8px;
  --bh-radius-full: 9999px;
  --bh-container: 1280px;
  --bh-section: 80px;
  --bh-font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bh-font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
  --bh-shadow-soft: rgba(1, 1, 32, 0.1) 0px 4px 10px 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bh-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  letter-spacing: -0.16px;
  color: var(--bh-ink);
  background: var(--bh-canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }
button, input, textarea, select { font-family: inherit; }
::selection { background: var(--bh-mint); color: var(--bh-ink); }

/* ---------- Typography scale ---------- */
.bh-display-xxl { font-size: 64px; font-weight: 500; line-height: 70.4px; letter-spacing: -1.92px; }
.bh-display-xl  { font-size: 40px; font-weight: 500; line-height: 48px; letter-spacing: -0.8px; }
.bh-display-lg  { font-size: 28px; font-weight: 500; line-height: 32.2px; letter-spacing: -0.42px; }
.bh-display-md  { font-size: 22px; font-weight: 500; line-height: 25.3px; letter-spacing: -0.22px; }
.bh-lead        { font-size: 18px; font-weight: 400; line-height: 23.4px; letter-spacing: -0.18px; color: var(--bh-body); }
.bh-body-md     { font-size: 16px; line-height: 20.8px; letter-spacing: -0.16px; }
.bh-caption     { font-size: 14px; line-height: 19.6px; letter-spacing: 0; }
.bh-mono-caps,
.bh-eyebrow {
  font-family: var(--bh-font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--bh-body);
}
.bh-mono-button {
  font-family: var(--bh-font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.08px;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.bh-container { max-width: var(--bh-container); margin: 0 auto; padding: 0 32px; }
.bh-band { padding: var(--bh-section) 0; }
.bh-band--dark { background: var(--bh-canvas-dark); color: var(--bh-on-dark); }
.bh-band--tight { padding: 48px 0; }
.bh-section-head { max-width: 720px; margin-bottom: 48px; }
.bh-section-head .bh-eyebrow { display: block; margin-bottom: 16px; }
.bh-section-head .bh-lead { margin-top: 16px; }
.bh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bh-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- Gradient ribbon ---------- */
.bh-gradient-bar { height: 6px; background: var(--bh-gradient); border-radius: var(--bh-radius-full); }

/* ---------- Buttons（黑 pill = 4px 圆角矩形，绝不 full） ---------- */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  background: var(--bh-primary);
  color: var(--bh-on-primary);
  border: 1px solid var(--bh-primary);
  border-radius: var(--bh-radius-sm);
  font-family: var(--bh-font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.bh-btn:hover { opacity: .85; }
.bh-btn:active { transform: translateY(1px); }
.bh-btn--white { background: var(--bh-canvas); color: var(--bh-ink); border-color: var(--bh-canvas); }
.bh-btn--white:hover { opacity: .9; }
.bh-btn--mint { background: var(--bh-mint); color: var(--bh-ink); border-color: var(--bh-mint); }
.bh-btn--ghost-dark { background: var(--bh-dark-soft-2); color: var(--bh-on-dark); border-color: transparent; }
.bh-btn--outline { background: var(--bh-canvas); color: var(--bh-ink); border: 1px solid var(--bh-hairline); border-radius: var(--bh-radius-xs); }
.bh-btn--sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }

/* ---------- Badges ---------- */
.bh-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--bh-hairline);
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  font-size: 16px;
  letter-spacing: -0.16px;
  color: var(--bh-ink);
}
.bh-badge--dark { background: var(--bh-dark-soft); border-color: var(--bh-dark-soft); color: var(--bh-on-dark); }

/* ---------- Cards ---------- */
.bh-card {
  background: var(--bh-canvas);
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  padding: 24px;
}
.bh-card--dark {
  background: var(--bh-canvas-dark);
  border-color: var(--bh-dark-soft);
  color: var(--bh-on-dark);
}
.bh-card .bh-eyebrow { display: block; margin-bottom: 12px; }
.bh-card p { color: var(--bh-body); font-size: 16px; }
.bh-card--dark p { color: #b9b9c9; }

/* ---------- Nav ---------- */
.bh-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bh-canvas-dark);
  color: var(--bh-on-dark);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.bh-nav.is-light {
  background: rgba(255, 255, 255, .92);
  color: var(--bh-ink);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--bh-hairline);
}
.bh-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.bh-nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.4px; }
.bh-nav__brand-mark { width: 22px; height: 22px; border-radius: var(--bh-radius-sm); background: var(--bh-gradient); flex: none; }
.bh-nav__links { display: flex; align-items: center; gap: 24px; }
.bh-nav__links a { font-size: 16px; letter-spacing: -0.16px; opacity: .85; }
.bh-nav__links a:hover { opacity: 1; }
.bh-nav__cta { display: flex; align-items: center; gap: 12px; }
.bh-nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.bh-nav__burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.bh-drawer {
  display: none;
  background: var(--bh-canvas-dark);
  color: var(--bh-on-dark);
  border-top: 1px solid var(--bh-dark-soft);
  padding: 24px 32px 32px;
}
.bh-drawer.is-open { display: block; }
.bh-drawer a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--bh-dark-soft); }
.bh-drawer .bh-btn { width: 100%; margin-top: 20px; }

/* ---------- Hero ---------- */
.bh-hero { padding: 80px 0 96px; background: var(--bh-canvas-dark); color: var(--bh-on-dark); overflow: hidden; }
.bh-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.bh-hero .bh-eyebrow { color: #b9b9c9; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.bh-hero__eyebrow-dot { width: 8px; height: 8px; border-radius: var(--bh-radius-full); background: var(--bh-gradient); flex: none; }
.bh-hero__lead { margin: 24px 0 0; max-width: 520px; color: #b9b9c9; font-size: 18px; line-height: 23.4px; letter-spacing: -0.18px; }
.bh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bh-hero__visual { position: relative; min-height: 320px; }
.bh-hero__ribbon { width: 100%; height: auto; display: block; }
.bh-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.bh-hero__meta .bh-badge--dark { font-family: var(--bh-font-mono); font-size: 11px; letter-spacing: 0.55px; text-transform: uppercase; }

/* ---------- Trust bar ---------- */
.bh-trust { border-bottom: 1px solid var(--bh-hairline); padding: 32px 0; }
.bh-trust__row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.bh-trust__logo { font-family: var(--bh-font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.05px; color: #b3b3b3; text-transform: uppercase; filter: grayscale(1); }

/* ---------- Feature tabs + code mockup ---------- */
.bh-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bh-hairline); border-radius: var(--bh-radius-md); margin-bottom: 32px; }
.bh-tab {
  padding: 12px 24px;
  border: 0;
  background: transparent;
  border-radius: var(--bh-radius-md);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  color: var(--bh-ink);
  cursor: pointer;
}
.bh-tab.is-active { background: var(--bh-canvas); box-shadow: var(--bh-shadow-soft); }
.bh-panel { display: none; }
.bh-panel.is-active { display: block; }
.bh-code {
  background: var(--bh-canvas-dark);
  color: var(--bh-on-dark);
  border-radius: var(--bh-radius-sm);
  padding: 24px;
  font-family: var(--bh-font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0.05px;
  overflow-x: auto;
}
.bh-code .c-key { color: var(--bh-periwinkle); }
.bh-code .c-str { color: var(--bh-mint); }
.bh-code .c-com { color: #6a6a80; }
.bh-code .c-num { color: var(--bh-orange); }

/* ---------- Product cards ---------- */
.bh-product-card { display: flex; flex-direction: column; gap: 12px; }
.bh-product-card__top { display: flex; align-items: center; justify-content: space-between; }
.bh-product-card__price { font-size: 28px; font-weight: 500; letter-spacing: -0.42px; }
.bh-product-card__price small { font-size: 14px; font-weight: 400; color: var(--bh-body); letter-spacing: 0; margin-left: 2px; }
.bh-product-card__desc { min-height: 42px; }
.bh-product-card .bh-btn { margin-top: auto; width: 100%; }
.bh-product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.bh-product-card__actions .bh-btn { width: 100%; margin-top: 0; }
.bh-product-type-icon { width: 36px; height: 36px; border-radius: var(--bh-radius-sm); display: inline-flex; align-items: center; justify-content: center; font-family: var(--bh-font-mono); font-size: 11px; font-weight: 500; }
.bh-product-type-icon--theme { background: var(--bh-mint); color: var(--bh-ink); }
.bh-product-type-icon--plugin { background: var(--bh-periwinkle); color: var(--bh-ink); }
.bh-product-type-icon--service { background: var(--bh-peach); color: var(--bh-ink); }

/* ---------- Pricing cards (front page) ---------- */
.bh-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.bh-price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bh-canvas);
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  padding: 28px 24px 24px;
  transition: box-shadow .15s;
}
.bh-price-card:hover { box-shadow: 0 2px 12px rgba(1,1,32,.07); }
.bh-price-card--featured { background: var(--bh-canvas-dark); border-color: var(--bh-canvas-dark); color: var(--bh-on-dark); }
.bh-price-card__flag {
  position: absolute; top: -11px; right: 20px;
  background: var(--bh-gradient); color: #fff;
  font-family: var(--bh-font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .55px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--bh-radius-xs);
}
.bh-price-card__cycle { font-family: var(--bh-font-mono); font-size: 11px; font-weight: 500; letter-spacing: .55px; text-transform: uppercase; color: var(--bh-body); }
.bh-price-card--featured .bh-price-card__cycle { color: #b9b9c9; }
.bh-price-card__price { font-size: 44px; font-weight: 500; letter-spacing: -0.88px; margin: 12px 0 2px; line-height: 1.1; }
.bh-price-card__price small { font-size: 14px; font-weight: 400; color: var(--bh-body); letter-spacing: 0; margin-left: 4px; }
.bh-price-card--featured .bh-price-card__price small { color: #b9b9c9; }
.bh-price-card__note { font-size: 13px; color: var(--bh-body); margin: 0 0 20px; }
.bh-price-card--featured .bh-price-card__note { color: #b9b9c9; }
.bh-price-card__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.bh-price-card__list li { position: relative; padding-left: 24px; font-size: 15px; letter-spacing: -0.15px; line-height: 1.5; }
.bh-price-card__list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--bh-orange); }
.bh-price-card--featured .bh-price-card__list li { color: var(--bh-on-dark); }
.bh-price-card--featured .bh-price-card__list li::before { color: var(--bh-mint); }
.bh-price-card__actions { display: grid; gap: 8px; margin-top: auto; }
.bh-price-card__actions .bh-btn { width: 100%; }
/* 推荐档白按钮在黑卡上：outline 按钮反白处理 */
.bh-price-card--featured .bh-btn--outline { background: transparent; color: var(--bh-on-dark); border-color: var(--bh-dark-soft-2); }

/* ---------- Bundle row (front page pricing) ---------- */
.bh-bundle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.bh-bundle-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bh-canvas);
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  padding: 20px 24px;
}
.bh-bundle-card__body { flex: 1 1 240px; min-width: 0; }
.bh-bundle-card__body h3 { margin: 6px 0 4px; }
.bh-bundle-card__body p { margin: 0; font-size: 14px; color: var(--bh-body); }
.bh-bundle-card__side { display: flex; align-items: center; gap: 16px; }
.bh-bundle-card__price { font-size: 24px; font-weight: 500; letter-spacing: -0.36px; white-space: nowrap; }

@media (max-width: 900px) {
  .bh-pricing { grid-template-columns: 1fr; }
  .bh-bundle-row { grid-template-columns: 1fr; }
}

/* ---------- Stats tiles ---------- */
.bh-stat {
  border-radius: var(--bh-radius-sm);
  padding: 32px;
}
.bh-stat--mint { background: var(--bh-mint); }
.bh-stat--periwinkle { background: var(--bh-periwinkle); }
.bh-stat--peach { background: var(--bh-peach); }
.bh-stat__num { font-size: 40px; font-weight: 500; line-height: 48px; letter-spacing: -0.8px; margin-bottom: 12px; }
.bh-stat__label { font-family: var(--bh-font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.55px; text-transform: uppercase; color: rgba(0,0,0,.55); }

/* ---------- Data table ---------- */
.bh-table { width: 100%; border-collapse: collapse; }
.bh-table thead th {
  background: var(--bh-hairline);
  color: var(--bh-body);
  font-family: var(--bh-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
}
.bh-table tbody td {
  border-bottom: 1px solid var(--bh-hairline);
  padding: 12px 16px;
  font-size: 16px;
  letter-spacing: -0.16px;
  vertical-align: middle;
}
.bh-table tbody td.bh-table__price { font-weight: 500; white-space: nowrap; }
.bh-table tbody td.bh-table__act { text-align: right; }

/* ---------- Portal / service cards ---------- */
.bh-service-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bh-service-card .bh-lead { font-size: 16px; }
.bh-service-card .bh-btn { margin-top: 16px; }

/* ---------- Posts band (dark) ---------- */
.bh-post-card { display: block; }
.bh-post-card h3 { margin: 12px 0 8px; }
.bh-post-card__meta { font-family: var(--bh-font-mono); font-size: 11px; letter-spacing: 0.55px; text-transform: uppercase; color: #b9b9c9; }

/* ---------- CTA band ---------- */
.bh-cta-band { text-align: center; }
.bh-cta-band .bh-btn { margin-top: 32px; }

/* ---------- Footer ---------- */
.bh-footer { background: var(--bh-canvas); padding: 80px 0 0; border-top: 1px solid var(--bh-hairline); }
.bh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.bh-footer h4 { font-family: var(--bh-font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.55px; text-transform: uppercase; color: var(--bh-body); margin-bottom: 16px; }
.bh-footer ul li { margin-bottom: 10px; }
.bh-footer ul a { font-size: 16px; letter-spacing: -0.16px; color: var(--bh-ink); opacity: .8; }
.bh-footer ul a:hover { opacity: 1; }
.bh-footer__fine { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--bh-hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--bh-body); font-size: 14px; }
.bh-wordmark {
  overflow: hidden;
  line-height: .95;
  user-select: none;
  pointer-events: none;
  margin-top: 24px;
}
.bh-wordmark span {
  display: block;
  font-size: clamp(64px, 14.5vw, 186px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--bh-hairline);
  white-space: nowrap;
  text-align: center;
  transform: translateY(8%);
}

/* ---------- Content pages (page/single/archive) ---------- */
.bh-page-hero { background: var(--bh-canvas-dark); color: var(--bh-on-dark); padding: 64px 0; }
.bh-page-hero .bh-lead { color: #b9b9c9; margin-top: 16px; max-width: 720px; }
.bh-content { padding: 64px 0; }
.bh-entry { max-width: 760px; }
.bh-entry h1, .bh-entry h2, .bh-entry h3 { margin: 1.4em 0 .6em; }
.bh-entry h1 { font-size: 40px; line-height: 48px; letter-spacing: -0.8px; }
.bh-entry h2 { font-size: 28px; line-height: 32.2px; letter-spacing: -0.42px; }
.bh-entry h3 { font-size: 22px; line-height: 25.3px; letter-spacing: -0.22px; }
.bh-entry p { color: #333; }
.bh-entry a { text-decoration: underline; text-underline-offset: 3px; }
.bh-entry ul, .bh-entry ol { list-style: disc; padding-left: 24px; margin-bottom: 1em; }
.bh-entry ol { list-style: decimal; }
.bh-entry blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 3px solid var(--bh-primary); background: var(--bh-hairline); border-radius: 0 var(--bh-radius-sm) var(--bh-radius-sm) 0; }
.bh-entry img { border-radius: var(--bh-radius-sm); margin: 1.5em 0; }
.bh-entry code { font-family: var(--bh-font-mono); font-size: .9em; background: var(--bh-hairline); padding: 2px 6px; border-radius: var(--bh-radius-xs); }
.bh-entry pre { background: var(--bh-canvas-dark); color: var(--bh-on-dark); padding: 24px; border-radius: var(--bh-radius-sm); overflow-x: auto; }
.bh-entry pre code { background: transparent; color: inherit; padding: 0; }
.bh-entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.bh-entry th, .bh-entry td { border: 1px solid var(--bh-hairline); padding: 8px 12px; text-align: left; }

/* ---------- Legal pages（agreement / license / privacy） ----------
   v1.2.3：法律页正文统一设计系统（此前 agreement 正文嵌入了独立 HTML 文档
   的 <style>，无类名 body/h2/p/ul 规则污染全页字体与配色）。
   v1.2.5：三页统一编号体系（全部 CSS counter 自动生成，增删章节/条目自动重排）——
   章 = 「01 · 标题」（mono leading-zero + hairline 章节分隔线）；
   条 = 「N.M」（mono 灰，左列绝对定位对齐）；正文不再手写任何编号。 */
.bh-entry li { font-size: 15px; line-height: 1.7; color: #333; margin-bottom: 6px; }
.bh-entry li strong, .bh-entry p strong { color: var(--bh-ink); font-weight: 500; }
.bh-eula-meta {
  font-family: var(--bh-font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--bh-body); margin: 0 0 20px;
}
.bh-eula-highlight {
  background: var(--bh-mint); border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm); padding: 14px 16px;
  font-size: 14px; line-height: 1.7; color: var(--bh-ink); margin: 0 0 20px;
}
.bh-eula-footer {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--bh-hairline);
  font-size: 12px; color: var(--bh-body);
}
.bh-eula-footer strong { color: var(--bh-ink); font-weight: 500; }

/* —— 编号体系（.bh-eula-doc 作用域；特异性 0-2-1 稳压 .bh-entry 基础规则） —— */
.bh-entry .bh-eula-doc { counter-reset: bh-sec; }
/* 章节标题（agreement/privacy 的 h2、license 的 h3）：
   编号升格为独立 eyebrow 行（SECTION 01 · mono 大写小字，与全站眉标同语言），
   标题独占一行 24px——同行混排的大小冲突彻底消除 */
.bh-entry .bh-eula-doc h2,
.bh-entry .bh-eula-doc h3 {
  counter-increment: bh-sec;
  counter-reset: bh-item;
  font-size: 24px; line-height: 32px; letter-spacing: -.24px;
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--bh-hairline);
}
.bh-entry .bh-eula-doc h2::before,
.bh-entry .bh-eula-doc h3::before {
  content: "SECTION " counter(bh-sec, decimal-leading-zero);
  display: block;
  font-family: var(--bh-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bh-body);
  line-height: 1;
  margin-bottom: 10px;
}
/* 分册切换（license 英文版）：眉标样式 + 章节计数重新从 01 起 */
.bh-entry .bh-eula-lang {
  counter-reset: bh-sec;
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--bh-hairline);
  font-family: var(--bh-font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--bh-body);
}
/* 子条目：N.M mono 编号左列对齐，正文悬挂缩进 */
.bh-entry .bh-eula-doc ul,
.bh-entry .bh-eula-doc ol { list-style: none; padding: 0; margin: 0 0 8px; }
.bh-entry .bh-eula-doc li {
  counter-increment: bh-item;
  position: relative;
  padding-left: 56px;
  margin-bottom: 12px;
  font-size: 15px; line-height: 1.8; color: #333;
}
.bh-entry .bh-eula-doc li::before {
  content: counter(bh-sec) "." counter(bh-item);
  position: absolute; left: 0; top: 0;
  font-family: var(--bh-font-mono);
  font-size: 14px; letter-spacing: 0; /* 贴近正文 15px，视觉重量协调 */
  color: var(--bh-body);
  line-height: 1.8; /* 与条目正文行高一致，同线对齐 */
}
.bh-entry .bh-eula-doc li strong { color: var(--bh-ink); font-weight: 500; }
.bh-entry .bh-eula-doc p { font-size: 15px; line-height: 1.8; margin: 0 0 16px; }

.bh-post-list { display: grid; gap: 16px; }
.bh-pagination { margin-top: 48px; display: flex; gap: 8px; }
.bh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--bh-hairline); border-radius: var(--bh-radius-sm);
  font-family: var(--bh-font-mono); font-size: 14px;
}
.bh-pagination .page-numbers.current { background: var(--bh-primary); color: var(--bh-on-primary); border-color: var(--bh-primary); }

/* ---------- Store / portal / redeem 模板包装（插件短代码自带样式） ---------- */
.bh-plugin-surface { padding: 48px 0 80px; }

/* ---------- Search form ---------- */
.bh-search { display: flex; gap: 8px; margin-bottom: 32px; }
.bh-search input[type="search"] {
  flex: 1;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  font-size: 16px;
  letter-spacing: -0.16px;
  background: var(--bh-canvas);
  color: var(--bh-ink);
}
.bh-search input[type="search"]:focus { outline: 2px solid var(--bh-ink); outline-offset: -1px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --bh-section: 56px; }
  .bh-display-xxl { font-size: 44px; line-height: 50px; letter-spacing: -1.1px; }
  .bh-display-xl { font-size: 32px; line-height: 38px; letter-spacing: -0.64px; }
  .bh-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .bh-hero__visual { order: -1; min-height: 220px; max-width: 480px; }
  .bh-grid-3, .bh-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bh-footer__grid { grid-template-columns: 1fr 1fr; }
  .bh-nav__links { display: none; }
  .bh-nav__burger { display: block; }
  .bh-nav__cta .bh-btn--white { display: none; }
}
@media (max-width: 599px) {
  .bh-container { padding: 0 16px; }
  .bh-display-xxl { font-size: 34px; line-height: 40px; letter-spacing: -0.85px; }
  .bh-grid-3, .bh-grid-4, .bh-grid-2 { grid-template-columns: 1fr; }
  .bh-footer__grid { grid-template-columns: 1fr; }
  .bh-tabs { width: 100%; overflow-x: auto; }
  .bh-table--scroll { display: block; overflow-x: auto; }
  .bh-hero__cta .bh-btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
 * v1.1.0 增量（自此处向下追加，禁用 !important）
 * ========================================================= */

/* === P0-6 字体自托管 ===
 * Inter / JetBrains Mono（latin 子集，可变字体单文件覆盖 400/500），
 * font-display:swap；中文字形回落系统字体栈（:root 变量未改）。
 * 若 woff2 文件缺失，删除本节即可整体降级为系统字体栈。 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === P1-4 全站公告横幅 === */
.bh-notice {
  background: var(--bh-canvas-dark);
  color: var(--bh-on-dark);
  font-size: 14px;
  letter-spacing: -0.14px;
}
.bh-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 44px 6px 16px;
  position: relative;
  text-align: center;
}
.bh-notice a { text-decoration: underline; text-underline-offset: 3px; }
.bh-notice__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--bh-on-dark);
  font-size: 18px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  opacity: .7;
}
.bh-notice__close:hover { opacity: 1; }

/* === P0-1 商品详情页 === */
.bh-product-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.bh-product__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bh-font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #b9b9c9;
  margin-bottom: 20px;
}
.bh-product__breadcrumb a { color: #b9b9c9; text-decoration: underline; text-underline-offset: 3px; }
.bh-product__breadcrumb a:hover { color: var(--bh-on-dark); }
.bh-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.bh-product__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bh-product__block > .bh-eyebrow { display: block; margin-bottom: 16px; }

/* 功能列表 */
.bh-product__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bh-feature { display: flex; gap: 12px; align-items: flex-start; }
.bh-feature__dot {
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: var(--bh-radius-full);
  background: var(--bh-gradient);
}
.bh-feature__title { font-size: 16px; font-weight: 500; letter-spacing: -0.16px; }
.bh-feature__desc { margin: 4px 0 0; font-size: 14px; line-height: 19.6px; color: var(--bh-body); }

/* 截图（懒加载，CLS 防抖） */
.bh-product__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bh-product__shot { margin: 0; }
.bh-product__shot img {
  width: 100%; height: auto;
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-hairline);
}
.bh-product__shot figcaption { margin-top: 8px; color: var(--bh-body); }

/* FAQ 手风琴 */
.bh-faq { border-top: 1px solid var(--bh-hairline); }
.bh-faq__item { border-bottom: 1px solid var(--bh-hairline); }
.bh-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  color: var(--bh-ink);
  cursor: pointer;
}
.bh-faq__q:hover { opacity: .8; }
.bh-faq__q:focus-visible { outline: 2px solid var(--bh-ink); outline-offset: 2px; }
.bh-faq__icon { font-family: var(--bh-font-mono); font-size: 18px; color: var(--bh-body); flex: none; }
.bh-faq__a { padding: 0 0 16px; color: #333; font-size: 15px; line-height: 22px; }
.bh-faq__a p { margin: 0; }

/* 版本 timeline */
.bh-product__timeline { border-left: 2px solid var(--bh-hairline); padding-left: 20px; }
.bh-timeline__item { position: relative; padding-bottom: 20px; }
.bh-timeline__item:last-child { padding-bottom: 0; }
.bh-timeline__item::before {
  content: '';
  position: absolute;
  left: -25px; top: 5px;
  width: 8px; height: 8px;
  border-radius: var(--bh-radius-full);
  background: var(--bh-gradient);
}
.bh-timeline__head { display: flex; align-items: baseline; gap: 12px; }
.bh-timeline__v { font-family: var(--bh-font-mono); font-size: 13px; font-weight: 500; }
.bh-timeline__date { font-family: var(--bh-font-mono); font-size: 11px; color: var(--bh-body); }
.bh-timeline__notes { margin-top: 6px; }
.bh-timeline__notes li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--bh-body);
  margin-bottom: 2px;
}
.bh-timeline__notes li::before { content: '·'; position: absolute; left: 0; }

/* 对比表（P1-3） */
.bh-compare .is-current td { background: rgba(200, 246, 249, .45); }
.bh-compare__current {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: var(--bh-mint);
  border-radius: var(--bh-radius-sm);
  font-size: 12px;
  color: var(--bh-ink);
}
.bh-compare__hint { margin: 12px 0 0; font-size: 14px; color: var(--bh-body); }

/* 语录（P1-1） */
.bh-testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bh-quote { margin: 0; padding: 16px; background: var(--bh-hairline); border-radius: var(--bh-radius-sm); }
.bh-quote p { margin: 0 0 8px; font-size: 15px; line-height: 22px; color: #333; }
.bh-quote footer { font-family: var(--bh-font-mono); font-size: 11px; letter-spacing: 0.55px; text-transform: uppercase; color: var(--bh-body); }

/* 价格卡（右侧粘性） */
.bh-product__aside { position: sticky; top: 84px; }
.bh-price-card { display: flex; flex-direction: column; gap: 12px; }
.bh-price-card > .bh-eyebrow { display: block; }
.bh-price-card__num { font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.72px; }
.bh-price-card__note { color: var(--bh-body); }
.bh-price-card__license {
  border-top: 1px solid var(--bh-hairline);
  padding-top: 12px;
}
.bh-price-card__license > .bh-eyebrow { display: block; margin-bottom: 8px; }
.bh-price-card__license .bh-caption { margin: 0 0 4px; color: var(--bh-body); }
.bh-price-card .bh-btn { width: 100%; }
.bh-price-card__support { font-size: 13px; color: var(--bh-body); text-decoration: underline; text-underline-offset: 3px; text-align: center; }

/* 移动端底部吸附购买栏 */
.bh-product__buybar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--bh-hairline);
  backdrop-filter: saturate(180%) blur(12px);
}

/* === P0-2 商城筛选条 ===
   v1.2.2：sticky 吸附于导航（68px）下方——滚动商品列表时筛选常驻可见，不再被导航盖走；
   白底 + z-index 90（低于 nav 999 / 结算弹窗 99999）保证遮挡关系正确；
   hidden 态不受影响（UA display:none 优先）。 */
.bh-store-filter {
  position: sticky;
  top: 68px;
  z-index: 90;
  margin: 0 0 24px;
  padding: 12px 0;
  background: var(--bh-canvas);
  border-bottom: 1px solid var(--bh-hairline);
}
.bh-store-filter__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bh-store-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-store-filter__chip {
  min-height: 36px;
  padding: 6px 16px;
  background: var(--bh-canvas);
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  font-size: 14px;
  letter-spacing: -0.14px;
  color: var(--bh-ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bh-store-filter__chip:hover { border-color: var(--bh-ink); }
.bh-store-filter__chip.is-active {
  background: var(--bh-primary);
  border-color: var(--bh-primary);
  color: var(--bh-on-primary);
}
.bh-store-filter__chip:focus-visible { outline: 2px solid var(--bh-ink); outline-offset: 2px; }
.bh-store-filter__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--bh-body);
}
.bh-store-filter__sort select {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--bh-hairline);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-canvas);
  color: var(--bh-ink);
  font-size: 14px;
  cursor: pointer;
}
.bh-store-filter__sort select:focus-visible { outline: 2px solid var(--bh-ink); outline-offset: 1px; }

/* === P1-5 404（微调：mono 大字码位） === */
.bh-404-code { font-family: var(--bh-font-mono); font-size: 13px; letter-spacing: 2px; color: #6a6a80; }

/* ---------- v1.1.0 Responsive ---------- */
@media (max-width: 991px) {
  .bh-product__grid { grid-template-columns: 1fr; }
  .bh-product__aside { position: static; }
  .bh-product__features { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .bh-product__buybar { display: flex; }
  .bh-plugin-surface { padding-bottom: 140px; } /* 给吸附栏留出空间 */
}
@media (max-width: 599px) {
  .bh-product__gallery, .bh-testimonials { grid-template-columns: 1fr; }
  .bh-price-card__num { font-size: 30px; }
}

/* ================= v1.2.0 设计系统统一与页面补齐 ================= */

/* --- footer 法律链接行 --- */
.bh-footer__legal { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.bh-footer__legal a { color: var(--bh-body); text-decoration: none; }
.bh-footer__legal a:hover { color: var(--bh-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .bh-footer__fine { flex-direction: column; gap: 10px; }
}

/* --- 商店页：主题页面标题区与插件商城区的衔接（hero 去重后） --- */
.bh-page-hero { padding: 72px 0 56px; }
.bh-page-hero + .bh-plugin-surface { padding-top: 0; }

/* --- 静态 FAQ 页（details/summary，键盘原生可达） --- */
.bh-faq-static { max-width: 760px; }
.bh-faq-static details { border: 1px solid var(--bh-hairline); border-radius: var(--bh-radius-sm, 4px); background: var(--bh-canvas, #fff); margin-bottom: 12px; }
.bh-faq-static summary { cursor: pointer; padding: 16px 20px; font-weight: 500; font-size: 16px; line-height: 1.5; list-style: none; position: relative; padding-right: 44px; }
.bh-faq-static summary::-webkit-details-marker { display: none; }
.bh-faq-static summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--bh-font-mono, monospace); font-size: 18px; color: var(--bh-body, #6a6a80); }
.bh-faq-static details[open] summary::after { content: '−'; }
.bh-faq-static details[open] summary { border-bottom: 1px solid var(--bh-hairline); }
.bh-faq-static .bh-faq-static__a { padding: 16px 20px; color: #333; font-size: 15px; line-height: 1.7; }
.bh-faq-static summary:hover { background: rgba(0, 0, 0, 0.015); }

/* --- 支持与帮助页卡片 --- */
.bh-support-card { display: flex; flex-direction: column; gap: 8px; }
.bh-support-card .bh-eyebrow { color: var(--bh-body); }
.bh-support-card p { color: var(--bh-body, #6a6a80); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.bh-support-card .bh-btn { align-self: flex-start; margin-top: auto; }

/* --- 关于页 --- */
.bh-about__lead { font-size: 20px; line-height: 1.6; color: var(--bh-ink); max-width: 720px; }
.bh-about__values { margin-top: 48px; }

/* =========================================================
 * v1.4.0 主题设置面板增量（社交图标 / 吸顶开关）
 * ========================================================= */
.bh-social { display: flex; gap: 10px; margin-top: 20px; }
.bh-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--bh-hairline, #ebebeb); border-radius: 4px;
  color: var(--bh-body, #999999);
  transition: color .15s ease, border-color .15s ease;
}
.bh-social__link:hover { color: var(--bh-ink, #000); border-color: var(--bh-ink, #000); }
.bh-social__svg { display: block; fill: currentColor; }

/* 吸顶导航开关：面板关闭吸顶时 body 追加 bh-nav-static */
.bh-nav-static .bh-nav { position: relative; }
