/* OSHID 子页面共享样式 — 与首页设计语言一致（Bricolage/Hanken/Space Mono + #3F9BDC） */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #F4F3F0; color: #1c1b18; font-family: 'Hanken Grotesk', sans-serif; -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.65; }
::selection { background: #3F9BDC; color: #0E0E10; }

a { color: #3F9BDC; }
a:hover { color: #2E77AC; }

.mono { font-family: 'Space Mono', monospace; }

/* Header */
.pg-header { background: #0E0E10; position: sticky; top: 0; z-index: 50; }
.pg-header-inner { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pg-header img { height: 44px; display: block; }
.pg-nav { display: flex; align-items: center; gap: 22px; }
.pg-nav a { font-family: 'Space Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #a8a499; text-decoration: none; }
.pg-nav a:hover { color: #ECEAE3; }
.pg-nav a.cta { background: #3F9BDC; color: #0E0E10; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.pg-nav a.cta:hover { background: #F4F3F0; color: #0E0E10; }

/* Layout */
.pg-main { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.pg-wide { max-width: 1080px; }

/* Breadcrumb */
.pg-crumbs { font-family: 'Space Mono', monospace; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #8c887d; margin-bottom: 28px; }
.pg-crumbs a { color: #8c887d; text-decoration: none; }
.pg-crumbs a:hover { color: #3F9BDC; }

/* Typography */
.pg-eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #3F9BDC; margin: 0 0 14px; }
h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 5.5vw, 54px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; }
h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -0.02em; margin: 44px 0 14px; }
h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; margin: 30px 0 10px; }
.pg-lede { font-size: 19px; line-height: 1.6; color: #4a483f; max-width: 720px; }
.pg-meta { font-family: 'Space Mono', monospace; font-size: 11.5px; color: #8c887d; margin: 18px 0 0; }

/* GEO 事实块：页面顶部的机器可引用快速答案 */
.fact-block { background: #0E0E10; color: #ECEAE3; border-radius: 14px; padding: 26px 28px; margin: 34px 0; }
.fact-block .fb-label { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #3F9BDC; margin-bottom: 10px; }
.fact-block p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.fact-block strong { color: #fff; }

/* Evidence gallery: real factory proof for buyers and AI citation context */
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 36px; }
.evidence-card { background: #fff; border: 1px solid #d8d5cc; border-radius: 14px; overflow: hidden; }
.evidence-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #ddd8cc; }
.evidence-card figcaption { padding: 13px 15px 15px; margin: 0; }
.evidence-card strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; line-height: 1.15; margin-bottom: 4px; }
.evidence-card span { display: block; font-size: 13.5px; line-height: 1.45; color: #6f6b60; }
html[data-theme="dark"] .evidence-card { background: #1a1a1d; border-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .evidence-card strong { color: #ECEAE3; }
html[data-theme="dark"] .evidence-card span { color: #a8a499; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15.5px; }
th { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; color: #6f6b60; border-bottom: 2px solid #0E0E10; padding: 10px 12px 8px; }
td { border-bottom: 1px solid #d8d5cc; padding: 11px 12px; vertical-align: top; }
tr:hover td { background: #ECEAE3; }

/* FAQ */
.faq-item { border-top: 1px solid #d8d5cc; padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid #d8d5cc; }
.faq-q { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.faq-a { margin: 0; color: #4a483f; }

/* Card grid（guides 索引页） */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.card { display: block; background: #fff; border: 1px solid #d8d5cc; border-radius: 14px; padding: 24px; text-decoration: none; color: #1c1b18; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: #3F9BDC; transform: translateY(-3px); color: #1c1b18; }
.card .c-tag { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #3F9BDC; }
.card h3 { margin: 10px 0 8px; font-size: 19px; }
.card p { margin: 0; font-size: 14.5px; color: #6f6b60; line-height: 1.55; }

/* Portfolio grid（作品集页） */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.pf-card { background: #fff; border: 1px solid #d8d5cc; border-radius: 14px; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.pf-card:hover { border-color: #3F9BDC; transform: translateY(-3px); }
.pf-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #ECEAE3; }
.pf-card .pf-body { padding: 16px 18px 20px; }
.pf-card .pf-tag { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #3F9BDC; }
.pf-card h3 { margin: 8px 0 6px; font-size: 18px; }
.pf-card p { margin: 0; font-size: 13.5px; color: #6f6b60; line-height: 1.5; }
html[data-theme="dark"] .pf-card { background: #1a1a1d; border-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .pf-card h3 { color: #ECEAE3; }
html[data-theme="dark"] .pf-card p { color: #a8a499; }

/* CTA band */
.cta-band { background: #3F9BDC; border-radius: 14px; padding: 30px; margin-top: 54px; color: #0E0E10; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 24px; color: #0E0E10; }
.cta-band a { background: #0E0E10; color: #FBF5EC; text-decoration: none; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; padding: 14px 22px; border-radius: 9px; white-space: nowrap; }
.cta-band a:hover { background: #F4F3F0; color: #0E0E10; }

/* Footer */
.pg-footer { background: #0E0E10; color: #a8a499; padding: 44px 24px; margin-top: 40px; }
.pg-footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pg-footer a { color: #a8a499; text-decoration: none; font-size: 14px; }
.pg-footer a:hover { color: #3F9BDC; }
.pg-footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pg-footer .f-copy { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.03em; }

@media (max-width: 640px) {
  .pg-nav a:not(.cta):not(:last-child) { display: none; }
  .pg-main { padding: 36px 18px 60px; }
  .evidence-grid { grid-template-columns: 1fr; }
}

/* ---- 主题切换按钮（与首页一致） ---- */
.theme-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 95; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(14,14,16,0.25); background: #FFFFFF; color: #0E0E10; font-size: 19px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -12px rgba(0,0,0,0.4); }
html[data-theme="dark"] .theme-toggle { background: #0E0E10; color: #ECEAE3; border-color: rgba(255,255,255,0.25); }

/* ---- 暗色主题覆盖（子页面默认亮色） ---- */
html[data-theme="dark"] body { background: #141310; color: #ECEAE3; }
html[data-theme="dark"] .pg-lede { color: #c9c6bd; }
html[data-theme="dark"] .faq-a { color: #c9c6bd; }
html[data-theme="dark"] .pg-meta, html[data-theme="dark"] .pg-crumbs, html[data-theme="dark"] .pg-crumbs a { color: #8d897f; }
html[data-theme="dark"] th { color: #a8a499; border-bottom-color: rgba(255,255,255,0.6); }
html[data-theme="dark"] td { border-bottom-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] tr:hover td { background: #1a1a1d; }
html[data-theme="dark"] .faq-item, html[data-theme="dark"] .faq-item:last-child { border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .card { background: #1a1a1d; border-color: rgba(255,255,255,0.12); color: #ECEAE3; }
html[data-theme="dark"] .card:hover { color: #ECEAE3; }
html[data-theme="dark"] .card p { color: #a8a499; }

/* ---- 内容图片 figure ---- */
.pg-figure { margin: 30px 0; }
.pg-figure img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid #d8d5cc; }
.pg-figure figcaption { font-family: 'Space Mono', monospace; font-size: 11.5px; letter-spacing: 0.02em; color: #8c887d; margin-top: 10px; }
html[data-theme="dark"] .pg-figure img { border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .pg-figure figcaption { color: #8d897f; }
