/* ===== 资料库 · Google 提示词工程白皮书中译本（站内版式，作用域限定） =====
   正文源：https://github.com/cayole/TechAI-Goolge-whitepaper_PromptEngineering_v4
   仅作用于本页 .wp-pe 容器；目录与转载条放宽到与正文同宽。 */
.article-crumb, .article-source, .article-pager, .wp-notice { max-width: 860px; }
.wp-notice { margin: 0 auto 26px; padding: 16px 20px; border: 1.5px solid #cbd9f5; border-left: 4px solid #1e63d0; border-radius: 12px; background: #f5f8ff; font-size: 14px; line-height: 1.85; color: #2b3440; }
.wp-notice strong { color: #1e63d0; }
.wp-notice a { color: #1e63d0; font-weight: 700; text-decoration: none; }
.wp-notice a:hover { text-decoration: underline; }

.article-body.wp-pe { max-width: 860px; font-size: 15.5px; line-height: 1.9; }
.wp-pe p { margin: 0 0 16px; }
.wp-pe h2.wp-h1 { font-size: 25px; line-height: 1.45; font-weight: 800; color: #102a5c; margin: 52px 0 20px; padding: 2px 0 2px 15px; border-left: 6px solid #1e63d0; scroll-margin-top: 100px; }
.wp-pe h3.wp-h2 { font-size: 19px; line-height: 1.5; font-weight: 700; color: #1e63d0; margin: 34px 0 12px; scroll-margin-top: 100px; }
.wp-pe h4.wp-h3 { font-size: 16px; line-height: 1.5; font-weight: 700; color: #2b3d5c; margin: 26px 0 10px; scroll-margin-top: 100px; }
.wp-pe > h2.wp-h1:first-child { margin-top: 4px; font-size: 21px; }
.wp-pe > h2.wp-h1:first-child + p { color: #5b6b85; font-size: 14px; }
.wp-pe hr { border: 0; border-top: 1px solid #dfe6f2; margin: 34px 0; }
.wp-pe strong { color: #173a75; }
.wp-pe blockquote { background: #f5f8ff; border-left: 4px solid #1e63d0; border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 20px 0; color: #40506b; }
.wp-pe blockquote p:last-child { margin-bottom: 0; }
.wp-pe ul, .wp-pe ol { padding-left: 24px; margin: 0 0 18px; }
.wp-pe li { margin-bottom: 8px; }
.wp-pe li > ul, .wp-pe li > ol { margin-top: 8px; }
.wp-pe a { color: #1e63d0; text-decoration: underline; text-underline-offset: 3px; }
.wp-pe a:hover { color: #0d3f96; }
.wp-pe code { background: #f2f5fa; border: 1px solid #e7ecf5; border-radius: 4px; padding: 1px 5px; font-size: 13px; color: #173a75; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.wp-pe pre { background: #f7f9fd; border: 1px solid #dfe6f2; border-left: 4px solid #1e63d0; border-radius: 0 10px 10px 0; padding: 14px 16px; margin: 20px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; line-height: 1.75; color: #23324a; white-space: pre-wrap; word-break: break-word; }
.wp-pe pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.wp-pe .pl-c { color: #6b7c99; }
.wp-pe .pl-s, .wp-pe .pl-s1 { color: #a03a5b; }
.wp-pe .pl-c1 { color: #1e63d0; }

/* 表格：深蓝表头 + 斑马纹，窄屏横向滚动 */
.wp-pe .wp-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; }
.wp-pe table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; }
.wp-pe th { background: #1e4f9c; color: #fff; font-weight: 700; text-align: left; padding: 9px 12px; border: 1px solid #1e4f9c; }
.wp-pe td { padding: 8px 12px; border: 1px solid #dfe6f2; vertical-align: top; }
.wp-pe tbody tr:nth-child(even) td { background: #f5f8ff; }
.wp-pe td strong { color: #173a75; }

/* 本页目录（正文前，默认折叠，不打断阅读） */
.wp-toc { max-width: 860px; margin: 0 auto 34px; border: 1.5px solid #cbd9f5; border-radius: 12px; background: #f7faff; }
.wp-toc summary { cursor: pointer; padding: 14px 20px; font-weight: 700; color: #1e4f9c; font-size: 15px; list-style: none; }
.wp-toc summary::-webkit-details-marker { display: none; }
.wp-toc summary::before { content: "\25B8"; display: inline-block; margin-right: 10px; transition: transform .2s ease; }
.wp-toc[open] summary::before { transform: rotate(90deg); }
.wp-toc ol { margin: 0; padding: 0 20px 18px 44px; columns: 2; column-gap: 32px; }
.wp-toc li { margin: 0 0 8px; break-inside: avoid; font-size: 14px; line-height: 1.6; }
.wp-toc a { color: #1e4f9c; text-decoration: none; }
.wp-toc a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .article-body.wp-pe { font-size: 15px; }
  .wp-pe h2.wp-h1 { font-size: 21px; margin-top: 40px; }
  .wp-pe h3.wp-h2 { font-size: 17.5px; }
  .wp-toc ol { columns: 1; padding-left: 38px; }
  .wp-notice { font-size: 13.5px; }
}
@media print {
  .wp-toc { display: none; }
  .wp-pe h2.wp-h1 { page-break-before: always; }
  .wp-pe a { color: inherit; text-decoration: none; }
}
