/* Z8 Harness 官网 2026-12 改版：新页面共用样式（与 harness.css / harness-site.css 一起加载） */
.z8-main { color: #142044; overflow-x: clip; }
.z8-main a { text-decoration: none; }
.z8-main a:hover { text-decoration: none; }
.z8-main h1, .z8-main h2, .z8-main h3 { color: inherit; text-wrap: balance; }
.z8-main p, .z8-main li { text-wrap: pretty; }
.z8-main img { max-width: 100%; }
.z8-main button { font-family: inherit; white-space: nowrap; }
.z8-main button:focus-visible, .z8-main a:focus-visible, .z8-main input:focus-visible,
.z8-main select:focus-visible, .z8-main textarea:focus-visible { outline: 3px solid #8fa6ff; outline-offset: 2px; }

.z8-mono { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); }
.z8-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 16px; line-height: 1.2; transition: filter .15s ease; }
.z8-btn:hover { filter: brightness(.94); }
.z8-card { border: 1px solid #dde6f5; border-radius: 18px; background: #fff; }
a.z8-card { color: #142044; }
a.z8-card:hover { border-color: #b8c7e6; }
.z8-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.z8-main [hidden] { display: none !important; }

/* 复制按钮反馈 */
.z8-main button[data-copied] { background: #126b3a !important; color: #fff !important; border-color: #126b3a !important; }

/* 手机与小屏适配（设计稿为桌面宽度，这里统一收紧） */
@media (max-width: 900px) {
  .z8-main h1 { font-size: 40px !important; line-height: 1.15 !important; }
  .z8-main h2 { font-size: 28px !important; }
  .z8-main section { padding-top: 48px !important; padding-bottom: 32px !important; }
  .z8-main [style*="padding:56px 48px"], .z8-main [style*="padding:48px"], .z8-main [style*="padding:44px"] { padding: 28px 22px !important; }
}
@media (max-width: 560px) {
  .z8-main h1 { font-size: 32px !important; }
  .z8-main section { padding-left: 16px !important; padding-right: 16px !important; }
  .z8-main [style*="flex:0 0 300px"] { flex-basis: 100% !important; }
  .z8-main [style*="grid-template-columns:repeat(2,minmax(0,1fr))"] { grid-template-columns: 1fr !important; }
  .z8-main [style*="grid-template-columns:180px 1fr"] { grid-template-columns: 110px 1fr !important; }
  .z8-main [style*="width:170px"], .z8-main aside[style*="width:200px"] { display: none !important; }
}
