/*
Theme Name: BingPillar - 必应SEO白帽主题
Theme URI: https://example.com/bingpillar
Author: IndexLab
Author URI: https://example.com
Description: 面向 Bing 与 Copilot 的白帽 SEO 主题。内置 IndexNow 实时推送、Bing 站点验证、JSON-LD 结构化数据、canonical / OG、面包屑、目录、要点速览与 E-E-A-T 元信息。语义化 HTML、零 jQuery、响应式、无障碍。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bingpillar
Tags: blog, two-columns, right-sidebar, accessibility-ready, translation-ready, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   0. 设计变量
   ========================================================================== */
:root {
  --bp-ink: #16212b;
  --bp-ink-2: #41525f;
  --bp-muted: #748695;
  --bp-line: #e1e8ed;
  --bp-line-2: #eef3f6;
  --bp-bg: #ffffff;
  --bp-soft: #f6f9fb;
  --bp-soft-2: #eff5f8;
  --bp-brand: #0b6b8f;
  --bp-brand-dark: #07516c;
  --bp-brand-soft: #e7f3f8;
  --bp-accent: #c4532a;
  --bp-accent-soft: #fbf0eb;
  --bp-ok: #1f7a55;
  --bp-radius: 10px;
  --bp-radius-lg: 16px;
  --bp-shadow: 0 1px 2px rgba(16, 42, 60, .04), 0 8px 28px rgba(16, 42, 60, .06);
  --bp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --bp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bp-max: 1180px;
}

/* ==========================================================================
   1. 基础重置
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bp-bg);
  color: var(--bp-ink);
  font-family: var(--bp-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--bp-brand); text-decoration: none; }
a:hover { color: var(--bp-brand-dark); text-decoration: underline; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; font-weight: 700; color: var(--bp-ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 3.4vw, 2.55rem); margin: 0 0 .6em; }
h2 { font-size: 1.5rem; margin: 2.1em 0 .8em; }
h3 { font-size: 1.2rem; margin: 1.7em 0 .7em; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--bp-line); margin: 2.4em 0; }
:focus-visible { outline: 3px solid var(--bp-brand); outline-offset: 3px; border-radius: 3px; }

.bp-container { width: 100%; max-width: var(--bp-max); margin: 0 auto; padding: 0 24px; }
.bp-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--bp-brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 8px; transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* ==========================================================================
   2. 站点头部
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--bp-line);
}
.bp-header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.site-branding { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.site-branding .custom-logo { max-height: 34px; width: auto; }
.bp-brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--bp-brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  letter-spacing: -.04em;
}
.bp-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-title { font-size: 1.02rem; font-weight: 750; margin: 0; letter-spacing: 0; }
.site-title a { color: var(--bp-ink); }
.site-title a:hover { color: var(--bp-brand); text-decoration: none; }
.site-description { font-size: .72rem; color: var(--bp-muted); margin: 2px 0 0; }

.bp-nav { margin-left: auto; }
.bp-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bp-nav li { position: relative; }
.bp-nav > ul > li > a {
  display: block; padding: 8px 13px; border-radius: 7px;
  color: var(--bp-ink-2); font-size: .9rem; font-weight: 550; white-space: nowrap;
}
.bp-nav a:hover { background: var(--bp-soft-2); color: var(--bp-brand); text-decoration: none; }
.bp-nav .current-menu-item > a, .bp-nav .current_page_item > a { color: var(--bp-brand); background: var(--bp-brand-soft); }
.bp-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow); padding: 6px; list-style: none; z-index: 120;
}
.bp-nav .sub-menu a { display: block; padding: 8px 12px; font-size: .87rem; border-radius: 6px; }
.bp-nav li:hover > .sub-menu, .bp-nav li:focus-within > .sub-menu { display: block; }

.bp-header-tools { display: flex; align-items: center; gap: 8px; }
.bp-search-toggle, .bp-menu-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--bp-line); border-radius: 8px;
  color: var(--bp-ink-2); cursor: pointer;
}
.bp-search-toggle:hover, .bp-menu-toggle:hover { border-color: var(--bp-brand); color: var(--bp-brand); }
.bp-menu-toggle { display: none; }
.bp-search-panel { display: none; border-top: 1px solid var(--bp-line-2); background: var(--bp-soft); }
.bp-search-panel.is-open { display: block; }
.bp-search-panel .search-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; padding: 16px 24px; }
.bp-search-panel .search-field {
  flex: 1; padding: 10px 14px; border: 1px solid var(--bp-line);
  border-radius: 8px; background: #fff; color: var(--bp-ink);
}
.bp-search-panel .search-submit {
  padding: 10px 22px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--bp-brand); color: #fff; font-weight: 600; font-size: .9rem;
}
.bp-search-panel .search-submit:hover { background: var(--bp-brand-dark); }

/* 阅读进度 */
.bp-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--bp-brand); z-index: 150; transition: width .08s linear;
}

/* ==========================================================================
   3. 首页 Hero
   ========================================================================== */
.bp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f2f9fc 0%, #f8fbfd 55%, #fdf7f4 100%);
  border-bottom: 1px solid var(--bp-line);
}
.bp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--bp-line-2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--bp-line-2) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), transparent 75%);
}
.bp-hero-inner { position: relative; padding: 68px 0 62px; max-width: 820px; }
.bp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 650; letter-spacing: .06em;
  color: var(--bp-brand); background: #fff; border: 1px solid #cfe6f0;
  padding: 6px 13px; border-radius: 100px; margin-bottom: 22px;
}
.bp-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bp-ok); }
.bp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.22; margin: 0 0 20px; }
.bp-hero h1 em { color: var(--bp-brand); font-style: normal; }
.bp-hero-lead { font-size: 1.06rem; color: var(--bp-ink-2); max-width: 680px; margin: 0 0 26px; }
.bp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 9px; font-size: .92rem; font-weight: 650;
  border: 1px solid transparent; cursor: pointer;
}
.bp-btn-primary { background: var(--bp-brand); color: #fff; }
.bp-btn-primary:hover { background: var(--bp-brand-dark); color: #fff; text-decoration: none; }
.bp-btn-ghost { background: #fff; color: var(--bp-ink-2); border-color: var(--bp-line); }
.bp-btn-ghost:hover { border-color: var(--bp-brand); color: var(--bp-brand); text-decoration: none; }
.bp-hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px;
  padding-top: 22px; border-top: 1px solid rgba(11, 107, 143, .14);
  font-size: .8rem; color: var(--bp-muted);
}
.bp-hero-meta strong { display: block; color: var(--bp-ink); font-size: 1.12rem; font-weight: 750; }

/* ==========================================================================
   4. 布局与区块标题
   ========================================================================== */
.site-main { min-height: 55vh; }
.bp-section { padding: 52px 0; }
.bp-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; flex-wrap: wrap;
}
.bp-section-head h2 { font-size: 1.55rem; margin: 0; }
.bp-section-head p { margin: 6px 0 0; color: var(--bp-muted); font-size: .9rem; }
.bp-section-head .bp-kicker {
  display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bp-accent); font-weight: 700; margin-bottom: 8px;
}
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.bp-col-main { min-width: 0; }

/* ==========================================================================
   5. 文章卡片
   ========================================================================== */
.bp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.bp-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--bp-line); border-radius: var(--bp-radius-lg);
  overflow: hidden; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bp-card:hover { border-color: #bcd9e6; transform: translateY(-2px); box-shadow: var(--bp-shadow); }
.bp-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bp-soft-2); }
.bp-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.bp-card:hover .bp-card-thumb img { transform: scale(1.03); }
.bp-card-thumb-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bp-brand-soft), #f6f9fb);
  color: var(--bp-brand); font-size: .8rem; font-weight: 650; letter-spacing: .08em;
}
.bp-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.bp-card-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bp-tag {
  display: inline-block; font-size: .71rem; font-weight: 650; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 100px;
  background: var(--bp-brand-soft); color: var(--bp-brand);
}
.bp-tag-accent { background: var(--bp-accent-soft); color: var(--bp-accent); }
.bp-card-title { font-size: 1.14rem; line-height: 1.45; margin: 0 0 10px; }
.bp-card-title a { color: var(--bp-ink); }
.bp-card-title a:hover { color: var(--bp-brand); text-decoration: none; }
.bp-card-excerpt { color: var(--bp-ink-2); font-size: .89rem; line-height: 1.7; margin: 0 0 16px; }
.bp-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bp-line-2);
  font-size: .76rem; color: var(--bp-muted);
}
.bp-card-meta .bp-dot-sep::before { content: "·"; margin-right: 12px; }

/* ==========================================================================
   6. 面包屑 / 归档头 / 分页
   ========================================================================== */
.bp-breadcrumb { padding: 20px 0 0; font-size: .8rem; color: var(--bp-muted); }
.bp-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bp-breadcrumb li::after { content: "/"; margin-left: 8px; color: #c2ced7; }
.bp-breadcrumb li:last-child::after { content: ""; }
.bp-breadcrumb a { color: var(--bp-muted); }
.bp-breadcrumb a:hover { color: var(--bp-brand); }
.bp-archive-head { padding: 34px 0 8px; }
.bp-archive-head h1 { margin-bottom: 12px; }
.bp-archive-head .bp-archive-desc { color: var(--bp-ink-2); max-width: 720px; margin: 0; }
.bp-pagination { margin-top: 38px; display: flex; justify-content: center; }
.bp-pagination .nav-links {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.bp-pagination .page-numbers {
  display: inline-block; min-width: 38px; text-align: center;
  padding: 8px 12px; border: 1px solid var(--bp-line); border-radius: 8px;
  font-size: .87rem; color: var(--bp-ink-2); background: #fff;
}
.bp-pagination .page-numbers:hover { border-color: var(--bp-brand); color: var(--bp-brand); text-decoration: none; }
.bp-pagination .current { background: var(--bp-brand); border-color: var(--bp-brand); color: #fff; }

/* ==========================================================================
   7. 文章正文
   ========================================================================== */
.bp-article { background: #fff; }
.bp-entry-header { padding: 30px 0 26px; border-bottom: 1px solid var(--bp-line); }
.bp-entry-header h1 { margin: 0 0 16px; max-width: 780px; }
.bp-entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: .8rem; color: var(--bp-muted);
}
.bp-entry-meta .bp-author-avatar { width: 24px; height: 24px; border-radius: 50%; }
.bp-entry-meta strong { color: var(--bp-ink-2); font-weight: 650; }
.bp-entry-meta-item { display: inline-flex; align-items: center; gap: 5px; }

.bp-tldr {
  margin: 30px 0 34px; padding: 22px 26px;
  background: var(--bp-brand-soft); border-left: 4px solid var(--bp-brand);
  border-radius: 0 var(--bp-radius) var(--bp-radius) 0;
}
.bp-tldr h2 {
  margin: 0 0 12px; font-size: .95rem; letter-spacing: .02em;
  color: var(--bp-brand-dark); text-transform: none;
}
.bp-tldr ul { margin: 0; padding-left: 1.25em; }
.bp-tldr li { margin-bottom: 7px; color: var(--bp-ink-2); font-size: .93rem; }
.bp-tldr li:last-child { margin-bottom: 0; }
.bp-summary {
  margin: 28px 0 32px; padding: 18px 22px; font-size: 1rem; line-height: 1.8;
  background: var(--bp-soft); border-left: 4px solid var(--bp-brand);
  border-radius: 0 var(--bp-radius) var(--bp-radius) 0; color: var(--bp-ink-2);
}
.bp-summary-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--bp-brand); margin-bottom: 6px; }

.bp-content { font-size: 1.015rem; color: #24333f; max-width: 780px; }
.bp-content > h2 {
  padding-left: 14px; border-left: 4px solid var(--bp-brand);
  margin-top: 2.4em; scroll-margin-top: 90px;
}
.bp-content > h3 { scroll-margin-top: 90px; }
.bp-content h2 + p, .bp-content h3 + p { margin-top: 0; }
.bp-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a8d3e4; }
.bp-content a:hover { text-decoration-color: var(--bp-brand); }
.bp-content blockquote {
  margin: 1.8em 0; padding: 16px 22px; border-left: 3px solid var(--bp-accent);
  background: var(--bp-accent-soft); color: var(--bp-ink-2); border-radius: 0 8px 8px 0;
}
.bp-content blockquote p:last-child { margin-bottom: 0; }
.bp-content pre {
  position: relative; overflow-x: auto; padding: 18px 20px; margin: 1.6em 0;
  background: #12222d; color: #e5f0f5; border-radius: var(--bp-radius);
  font-family: var(--bp-mono); font-size: .83rem; line-height: 1.65;
}
.bp-content code {
  font-family: var(--bp-mono); font-size: .88em;
  background: var(--bp-soft-2); padding: 2px 6px; border-radius: 4px; color: #0a4f68;
}
.bp-content pre code { background: none; padding: 0; color: inherit; font-size: 1em; }
.bp-copy-btn {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: .72rem;
  background: rgba(255,255,255,.12); color: #e5f0f5; border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px; cursor: pointer; opacity: 0; transition: opacity .18s ease;
}
.bp-content pre:hover .bp-copy-btn, .bp-copy-btn:focus { opacity: 1; }
.bp-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .9rem; }
.bp-content th, .bp-content td { border: 1px solid var(--bp-line); padding: 10px 13px; text-align: left; vertical-align: top; }
.bp-content th { background: var(--bp-soft-2); font-weight: 650; }
.bp-content img { border-radius: 8px; }
.bp-content figure { margin: 1.8em 0; }
.bp-content figcaption { font-size: .8rem; color: var(--bp-muted); text-align: center; margin-top: 8px; }
.bp-content .wp-block-image img, .bp-content .alignwide { max-width: 100%; }
.bp-content ul, .bp-content ol { margin-bottom: 1.3em; }
.bp-content li { margin-bottom: .4em; }
.bp-content .bp-note {
  padding: 14px 18px; background: var(--bp-soft); border: 1px solid var(--bp-line);
  border-radius: 8px; font-size: .9rem; color: var(--bp-ink-2);
}

.bp-faq { margin: 40px 0 0; }
.bp-faq h2 { padding-left: 0; border-left: 0; }
.bp-faq-item { border-bottom: 1px solid var(--bp-line); padding: 14px 0; }
.bp-faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.bp-faq-item p { margin: 0; color: var(--bp-ink-2); font-size: .93rem; }

.bp-entry-footer { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--bp-line); }
.bp-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tag-list a { font-size: .78rem; color: var(--bp-ink-2); background: var(--bp-soft); border: 1px solid var(--bp-line); padding: 5px 12px; border-radius: 100px; }
.bp-tag-list a:hover { color: var(--bp-brand); border-color: var(--bp-brand); text-decoration: none; }

.bp-author-card {
  display: flex; gap: 16px; margin: 34px 0; padding: 22px;
  background: var(--bp-soft); border: 1px solid var(--bp-line); border-radius: var(--bp-radius-lg);
}
.bp-author-card img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.bp-author-card h3 { margin: 0 0 4px; font-size: 1rem; }
.bp-author-card p { margin: 0; font-size: .86rem; color: var(--bp-ink-2); }
.bp-author-card .bp-author-role { display: block; font-size: .75rem; color: var(--bp-muted); margin-bottom: 8px; }

.bp-related { margin-top: 44px; }
.bp-related h2 { font-size: 1.3rem; margin: 0 0 18px; }
.bp-related-list { display: grid; gap: 0; border-top: 1px solid var(--bp-line); }
.bp-related-list a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px solid var(--bp-line); font-size: .93rem;
  color: var(--bp-ink-2); text-decoration: none;
}
.bp-related-list a:hover { color: var(--bp-brand); }
.bp-related-list time { font-size: .76rem; color: var(--bp-muted); white-space: nowrap; }

/* ==========================================================================
   8. 侧栏 / 目录
   ========================================================================== */
.bp-sidebar { position: sticky; top: 92px; }
.bp-widget {
  margin-bottom: 26px; padding: 20px; background: #fff;
  border: 1px solid var(--bp-line); border-radius: var(--bp-radius-lg);
}
.bp-widget-title {
  font-size: .82rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  color: var(--bp-muted); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bp-line-2);
}
.bp-toc ol { list-style: none; margin: 0; padding: 0; }
.bp-toc li { margin: 0; }
.bp-toc a {
  display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--bp-line);
  font-size: .85rem; line-height: 1.5; color: var(--bp-ink-2); text-decoration: none;
}
.bp-toc a:hover { color: var(--bp-brand); border-left-color: var(--bp-brand); }
.bp-toc a.is-active { color: var(--bp-brand); font-weight: 650; border-left-color: var(--bp-brand); }
.bp-toc .bp-toc-sub a { padding-left: 26px; font-size: .81rem; color: var(--bp-muted); }
.bp-widget p { font-size: .86rem; color: var(--bp-ink-2); margin: 0 0 12px; }
.bp-widget ul { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.bp-widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--bp-line-2); }
.bp-widget ul li:last-child { border-bottom: 0; }
.bp-widget .bp-mini-link { color: var(--bp-ink-2); }
.bp-widget .bp-mini-link:hover { color: var(--bp-brand); }
.bp-badge-list { display: flex; flex-wrap: wrap; gap: 7px; }
.bp-badge-list span { font-size: .74rem; padding: 4px 10px; background: var(--bp-soft-2); border-radius: 100px; color: var(--bp-ink-2); }

/* ==========================================================================
   9. 评论 / 404 / 空状态
   ========================================================================== */
.bp-comments { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--bp-line); }
.bp-comments h2 { font-size: 1.3rem; margin: 0 0 20px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--bp-line-2); }
.comment-body { font-size: .92rem; color: var(--bp-ink-2); }
.comment-meta { font-size: .8rem; color: var(--bp-muted); margin-bottom: 8px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.comment-form label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--bp-line); border-radius: 8px;
  background: #fff; color: var(--bp-ink); margin-bottom: 16px;
}
.comment-form textarea { min-height: 130px; }
.comment-form .submit, .bp-form-submit {
  padding: 10px 24px; border: 0; border-radius: 8px; background: var(--bp-brand);
  color: #fff; font-weight: 650; font-size: .9rem; cursor: pointer;
}
.comment-form .submit:hover { background: var(--bp-brand-dark); }
.comment-notes, .comment-form-cookies-consent { font-size: .8rem; color: var(--bp-muted); }

.bp-empty { padding: 70px 0 90px; text-align: center; }
.bp-empty h1 { margin-bottom: 12px; }
.bp-empty p { color: var(--bp-ink-2); max-width: 520px; margin: 0 auto 24px; }
.bp-empty .search-form { max-width: 460px; margin: 0 auto; display: flex; gap: 10px; }
.bp-empty .search-field { flex: 1; padding: 11px 14px; border: 1px solid var(--bp-line); border-radius: 8px; }
.bp-empty .search-submit { padding: 11px 20px; border: 0; border-radius: 8px; background: var(--bp-brand); color: #fff; cursor: pointer; }
.bp-404-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--bp-brand-soft); line-height: 1; margin-bottom: 8px; letter-spacing: -.05em; }

/* ==========================================================================
   10. 页脚
   ========================================================================== */
.site-footer { margin-top: 60px; background: var(--bp-soft); border-top: 1px solid var(--bp-line); }
.bp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 46px 0 34px; }
.bp-footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-muted); margin: 0 0 14px; }
.bp-footer-col p { font-size: .86rem; color: var(--bp-ink-2); margin: 0 0 12px; }
.bp-footer-col ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.bp-footer-col li { padding: 5px 0; }
.bp-footer-col a { color: var(--bp-ink-2); }
.bp-footer-col a:hover { color: var(--bp-brand); }
.bp-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 750; }
.bp-footer-bottom {
  border-top: 1px solid var(--bp-line); padding: 18px 0 26px;
  font-size: .78rem; color: var(--bp-muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.bp-footer-bottom a { color: var(--bp-muted); }

.bp-top-btn {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px;
  display: none; place-items: center; border: 1px solid var(--bp-line);
  border-radius: 10px; background: #fff; color: var(--bp-brand);
  box-shadow: var(--bp-shadow); cursor: pointer; z-index: 90;
}
.bp-top-btn.is-visible { display: grid; }

/* ==========================================================================
   11. 主题内工具条（后台可视化用 / 通用小组件）
   ========================================================================== */
.bp-pillar-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding: 26px 30px; margin: 44px 0 0; border-radius: var(--bp-radius-lg);
  background: linear-gradient(120deg, #0b6b8f, #07516c); color: #fff;
}
.bp-pillar-banner h2 { color: #fff; font-size: 1.35rem; margin: 0 0 8px; }
.bp-pillar-banner p { margin: 0; font-size: .9rem; color: #d4e9f1; }
.bp-pillar-banner .bp-btn { background: #fff; color: var(--bp-brand-dark); }
.bp-pillar-banner .bp-btn:hover { background: var(--bp-brand-soft); }

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
  .bp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .bp-layout { grid-template-columns: 1fr; }
  .bp-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .bp-widget { margin-bottom: 0; }
  .bp-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow); padding: 12px 20px 18px; margin: 0;
  }
  .bp-nav.is-open { display: block; }
  .bp-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .bp-nav > ul > li > a { padding: 11px 12px; }
  .bp-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .bp-menu-toggle { display: grid; }
  .bp-header-inner { gap: 12px; }
  .bp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .bp-container { padding: 0 18px; }
  .bp-hero-inner { padding: 46px 0 42px; }
  .bp-hero-meta { gap: 18px; }
  .bp-cards { grid-template-columns: 1fr; }
  .bp-section { padding: 38px 0; }
  .bp-sidebar { grid-template-columns: 1fr; }
  .bp-footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 26px; }
  .site-description { display: none; }
  .bp-tldr { padding: 18px 18px; }
  .bp-pillar-banner { grid-template-columns: 1fr; padding: 22px; }
  .bp-entry-meta { gap: 6px 12px; }
  .bp-content pre { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .bp-sidebar, .bp-top-btn, .bp-progress, .bp-comments, .bp-related, .bp-pillar-banner { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .bp-content a { color: #000; text-decoration: none; }
  .bp-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
