/* 产品功能白皮书页：配色、按钮、首屏与首页 home-v2.css 保持一致（墨绿黑 #1f2622 / 品牌绿 #16723c / 浅灰绿底），
   页头沿用 official-header.css。无阴影堆叠、少边框、底色分层。 */
:root{--ink:#1f2622;--muted:#56615a;--green:#16723c;--green-bright:#15803d;--line:#e3e9e4;--soft:#f4f7f4;--soft-2:#eef3ef;--header-h:80px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}
body.bps-page{margin:0;color:var(--ink);background:#fff;font-family:"Noto Sans SC Variable","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:16px;line-height:1.8;overflow-x:clip;-webkit-text-size-adjust:100%}
.bps-page :where(a){color:inherit;text-decoration:none}
.bps-page :focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:4px}
.bps-page [hidden]{display:none!important}
.bps-page :where(h1,h2,h3,h4,p,ul,ol){margin:0}
.bps-wrap{width:min(1240px,calc(100% - 48px));margin-inline:auto}
.bps-skip{position:absolute;left:-999px;top:8px;z-index:100;padding:8px 14px;background:var(--ink);color:#fff;border-radius:8px}
.bps-skip:focus{left:8px}

/* 阅读进度条：贴在页面最上方 */
.bps-progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:60;background:transparent;pointer-events:none}
.bps-progress i{display:block;height:100%;width:100%;background:var(--green-bright);transform:scaleX(0);transform-origin:left center}

/* 首屏 */
.bps-hero{padding:72px 0 64px;text-align:center;background:linear-gradient(180deg,#fff 0%,#f6f9f6 100%)}
.bps-eyebrow{display:inline-block;padding:6px 16px;border-radius:999px;background:var(--soft-2);color:var(--green);font-size:14px;font-weight:600;letter-spacing:.04em}
.bps-hero h1{margin-top:22px;font-size:56px;line-height:1.2;font-weight:750;letter-spacing:-.02em}
.bps-hero h1 span{color:var(--green-bright)}
.bps-hero-sub{max-width:720px;margin:22px auto 0;font-size:18px;line-height:1.8;color:var(--muted)}
.bps-hero-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:32px}
.bps-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 30px;border-radius:999px;border:1px solid transparent;font-size:16px;font-weight:600;transition:background .2s,border-color .2s,color .2s,transform .2s}
.bps-btn:hover{transform:translateY(-1px)}
.bps-page .bps-btn-primary{background:var(--ink);color:#fff}
.bps-page .bps-btn-primary:hover{background:#3a423d}
.bps-page .bps-btn-ghost{background:#fff;border-color:#d5ddd7;color:var(--ink)}
.bps-page .bps-btn-ghost:hover{border-color:var(--green);color:var(--green)}
.bps-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin:30px 0 0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.bps-meta span{margin-right:8px;color:#7a857d}
.bps-hero-shot{max-width:1040px;margin:44px auto 0;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:0 30px 80px -40px #1c3a2766;aspect-ratio:1200/750}
.bps-hero-shot img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.01);transform-origin:12% 50%}

/* 能力速览 */
.bps-highlights{padding:72px 0 24px}
.bps-section-title{font-size:32px;line-height:1.3;font-weight:700;text-align:center;letter-spacing:-.01em}
.bps-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:36px}
.bps-card{display:flex;flex-direction:column;gap:8px;padding:24px;border-radius:14px;background:var(--soft);transition:background .2s,transform .2s}
.bps-card:hover{background:var(--soft-2);transform:translateY(-2px)}
.bps-card strong{font-size:18px;line-height:1.4}
.bps-card span{font-size:14px;line-height:1.7;color:var(--muted)}

/* 正文布局：左侧目录 + 右侧正文 */
.bps-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:56px;padding:56px 0 96px;align-items:start}
.bps-toc{position:sticky;top:calc(var(--header-h) + 16px);max-height:calc(100vh - var(--header-h) - 32px);overflow:auto;overscroll-behavior:contain;padding:4px 8px 16px 0;font-size:14px;scrollbar-width:thin}
.bps-toc-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:13px;letter-spacing:.08em;color:#7a857d}
.bps-toc-close{display:none;width:40px;height:40px;border:0;background:none;font-size:28px;line-height:1;color:var(--muted)}
.bps-toc ol,.bps-toc ul{margin:0;padding:0;list-style:none}
.bps-toc li>a{display:block;padding:6px 12px;border-radius:8px;line-height:1.5;color:var(--muted);transition:background .15s,color .15s}
.bps-toc li>a:hover{background:var(--soft);color:var(--ink)}
.bps-toc li>ul{display:none;margin:2px 0 6px 12px;border-left:1px solid var(--line)}
.bps-toc li.is-open>ul{display:block}
.bps-toc li>ul a{padding:4px 12px;font-size:13px}
.bps-toc li.is-current>a,.bps-toc a.is-current{background:var(--soft-2);color:var(--green);font-weight:600}

.bps-article{min-width:0;max-width:820px}
.bps-chapter{padding-bottom:56px;margin-bottom:56px;border-bottom:1px solid var(--line)}
.bps-chapter:last-of-type{border-bottom:0;margin-bottom:0}
.bps-chapter-head{display:flex;align-items:baseline;gap:14px;margin-bottom:24px}
.bps-chapter-no{flex:none;min-width:2.2em;padding:2px 10px;border-radius:8px;background:var(--soft-2);color:var(--green);font-size:15px;font-weight:700;text-align:center}
.bps-article h2{font-size:34px;line-height:1.3;font-weight:750;letter-spacing:-.01em}
.bps-sub{margin-top:44px}
.bps-article h3{position:relative;font-size:24px;line-height:1.4;font-weight:700;margin-bottom:16px}
.bps-anchor{margin-left:10px;color:#b9c4bc;font-weight:400;opacity:0;transition:opacity .15s}
h3:hover .bps-anchor,.bps-anchor:focus-visible{opacity:1}
.bps-article h4{margin:28px 0 10px;padding-left:12px;border-left:3px solid var(--green-bright);font-size:17px;line-height:1.5;font-weight:700}
.bps-article p{margin:0 0 14px;color:#2c332f}
.bps-article ul,.bps-article ol{margin:0 0 16px;padding-left:1.4em}
.bps-article li{margin:4px 0;padding-left:2px;color:#2c332f}
.bps-article ul li::marker{color:var(--green-bright)}
.bps-article ol li::marker{color:var(--green);font-weight:600}
.bps-article strong{font-weight:650;color:var(--ink)}
.bps-article a{color:var(--green);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#9fd1b1}
.bps-article a:hover{text-decoration-color:currentColor}
.bps-article code{padding:2px 6px;border-radius:6px;background:var(--soft-2);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;color:#1a4d2e;word-break:break-word}
.bps-article pre{margin:0 0 16px;padding:16px;border-radius:12px;background:var(--soft);overflow:auto}
.bps-article pre code{padding:0;background:none}

/* 表格：宽屏横向可滚动，手机上改成一行一张卡 */
.table-wrap{margin:0 0 20px;overflow-x:auto;border-radius:12px;background:var(--soft);-webkit-overflow-scrolling:touch}
.bps-article table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.7}
.bps-article th{padding:12px 16px;background:var(--soft-2);font-weight:650;text-align:left;white-space:nowrap}
.bps-article td{padding:12px 16px;vertical-align:top;border-top:1px solid #e6ece7;color:#2c332f}
.bps-article td:first-child{font-weight:600;color:var(--ink)}

/* 章内配图 */
.bps-shot{margin:8px 0 22px}
.bps-shot a{display:block;overflow:hidden;border-radius:10px;border:1px solid var(--line);aspect-ratio:1200/750;background:var(--soft)}
.bps-shot img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.01);transform-origin:12% 50%}
.bps-shot figcaption{margin-top:10px;font-size:14px;color:#6b756e;text-align:center}

/* 产品全景图 */
.bps-arch{margin:8px 0 24px;padding:20px;border-radius:14px;background:var(--soft)}
.bps-arch-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:4px 14px;padding:12px 16px;border-radius:10px;background:#fff;text-align:center}
.bps-arch-top span{font-size:14px;color:var(--muted)}
.bps-arch-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}
.bps-arch-card{display:flex;flex-direction:column;gap:2px;padding:14px 12px;border-radius:10px;background:#fff;text-align:center;font-size:13px;line-height:1.5;color:var(--muted)}
.bps-arch-card strong{font-size:15px;color:var(--ink)}
.bps-arch-card em{font-style:normal;color:var(--green)}
.bps-arch-card.is-main{background:var(--ink)}
.bps-arch-card.is-main strong{color:#fff}
.bps-arch-card.is-main span{color:#c9d2cc}
.bps-arch-card.is-main em{color:#7bd19a}
.bps-arch-base{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px;padding-top:14px;border-top:1px dashed #cfd8d1;font-size:13px;line-height:1.6;color:var(--muted)}
.bps-arch-base b{grid-column:1/-1;font-size:13px;color:#7a857d}
.bps-arch-base span{padding:10px 12px;border-radius:10px;background:#fff}

/* 常见问题 */
.bps-faq{margin:0 0 10px;border-radius:12px;background:var(--soft)}
.bps-faq summary{position:relative;padding:16px 48px 16px 18px;font-weight:650;line-height:1.6;cursor:pointer;list-style:none}
.bps-faq summary::-webkit-details-marker{display:none}
.bps-faq summary::after{content:"";position:absolute;right:20px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid #7a857d;border-bottom:2px solid #7a857d;transform:rotate(45deg);transition:transform .2s}
.bps-faq[open] summary::after{margin-top:-2px;transform:rotate(225deg)}
.bps-faq p{margin:0;padding:0 18px 16px}

/* 上一章 / 下一章 */
.bps-pager{display:flex;gap:14px;margin-top:40px}
.bps-pager a{flex:1;display:flex;flex-direction:column;gap:2px;padding:14px 18px;border-radius:12px;background:var(--soft);text-decoration:none!important;color:var(--ink)!important;transition:background .2s}
.bps-pager a:hover{background:var(--soft-2)}
.bps-pager small{font-size:12px;color:#7a857d}
.bps-pager span{font-weight:600;line-height:1.5}
.bps-pager .is-next{text-align:right;margin-left:auto}
.bps-pager .is-prev:only-child{max-width:50%}
.bps-pager .is-next:only-child{max-width:50%}
.bps-end{margin-top:40px;padding:16px 20px;border-radius:12px;background:var(--soft);font-size:14px;color:var(--muted)}

/* 页脚 */
.bps-footer{padding:48px 0 36px;background:var(--soft);font-size:14px;color:var(--muted)}
.bps-footer-inner{display:grid;gap:20px}
.bps-footer-brand{font-size:20px;font-weight:700;color:var(--ink)}
.bps-footer p{margin:6px 0 0}
.bps-footer nav{display:flex;flex-wrap:wrap;gap:8px 24px}
.bps-footer nav a:hover,.bps-copy a:hover{color:var(--green)}
.bps-copy{margin:0;padding-top:20px;border-top:1px solid var(--line);font-size:13px}

/* 浮动按钮：目录（手机）与回到顶部 */
.bps-fab{position:fixed;z-index:55;display:grid;place-items:center;height:44px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.bps-top{right:20px;bottom:24px;width:44px;font-size:20px}
.bps-toc-open{display:none;left:20px;bottom:24px;padding:0 20px}
.bps-scrim{position:fixed;inset:0;z-index:70;background:#0f1411aa}

@media(max-width:1100px){
  .bps-layout{grid-template-columns:220px minmax(0,1fr);gap:36px}
  .bps-cards{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .bps-layout{display:block;padding-top:32px}
  .bps-toc-open{display:grid}
  .bps-toc{position:fixed;z-index:80;left:0;right:0;bottom:0;top:auto;max-height:78vh;padding:12px 16px 28px;border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -12px 40px -16px #0f141155;transform:translateY(105%);visibility:hidden;transition:transform .28s ease,visibility 0s .28s;font-size:15px}
  .bps-toc.is-open{transform:none;visibility:visible;transition:transform .28s ease}
  .bps-toc-head{position:sticky;top:-12px;margin:-12px -16px 8px;padding:12px 16px 4px;background:#fff;font-size:15px}
  .bps-toc-close{display:block}
  .bps-toc li>a{padding:10px 12px}
  .bps-toc li>ul{display:block;margin-left:12px}
  .bps-toc li>ul a{padding:8px 12px;font-size:14px}
  .bps-article{max-width:none}
}
@media(max-width:760px){
  :root{--header-h:68px}
  .bps-wrap{width:calc(100% - 32px)}
  .bps-hero{padding:44px 0 40px}
  .bps-hero h1{font-size:34px}
  .bps-hero-sub{font-size:16px}
  .bps-hero-shot{margin-top:30px;border-radius:8px}
  .bps-highlights{padding:48px 0 8px}
  .bps-section-title{font-size:26px}
  .bps-cards{gap:10px;margin-top:24px}
  .bps-card{padding:16px}
  .bps-card strong{font-size:16px}
  .bps-card span{font-size:13px}
  .bps-article h2{font-size:26px}
  .bps-article h3{font-size:21px}
  .bps-chapter{padding-bottom:40px;margin-bottom:40px}
  .bps-sub{margin-top:36px}
  .bps-anchor{display:none}
  .bps-arch-row{grid-template-columns:repeat(2,1fr)}
  .bps-arch-card.is-main{grid-column:1/-1}
  .bps-arch-base{grid-template-columns:repeat(2,1fr)}
  /* 表格改成卡片：表头隐藏，每个单元格前带上列名 */
  .table-wrap{overflow:visible;background:none;border-radius:0}
  .bps-article table,.bps-article tbody,.bps-article tr,.bps-article td{display:block;width:100%}
  .bps-article thead{display:none}
  .bps-article tr{margin-bottom:10px;padding:6px 16px;border-radius:12px;background:var(--soft)}
  .bps-article td{padding:8px 0;border-top:1px solid #e6ece7}
  .bps-article td:first-child{padding-top:10px;border-top:0;font-size:15.5px}
  .bps-article td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:12px;font-weight:600;color:#7a857d}
  .bps-article td:empty{display:none}
  .bps-pager{flex-direction:column}
  .bps-pager .is-next{text-align:left}
  .bps-pager .is-prev:only-child,.bps-pager .is-next:only-child{max-width:none}
}
@media(max-width:380px){
  .bps-cards{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .bps-toc,.bps-card,.bps-btn{transition:none}
}
@media print{
  .site-header,.bps-toc,.bps-fab,.bps-progress,.bps-hero-actions,.bps-hero-shot,.bps-highlights,.bps-pager,.bps-scrim,.bps-footer nav{display:none!important}
  .bps-layout{display:block;padding:0}
  .bps-article{max-width:none}
  .bps-chapter{break-inside:auto;border:0}
  .bps-article h2,.bps-article h3{break-after:avoid}
  .bps-article tr{break-inside:avoid}
  .bps-faq:not([open]) p{display:block}
  .bps-shot{break-inside:avoid}
}
