/**
 * 公开功能指南的品牌样式：深蓝背景、蓝色强调、分层教学示例。
 * 三页共用布局与状态；不引入字体下载、图片请求或动画库。
 * 层级：内容 0，粘性导航 10，键盘跳转入口 20。
 */
.feature-guide {
  --guide-bg: #080e1d;
  --guide-surface: #101a2e;
  --guide-text: #edf3ff;
  --guide-muted: #a2b1ca;
  --guide-accent: #87adff;
  --guide-line: #25324a;
  margin: 0;
  color: var(--guide-text);
  background: var(--guide-bg);
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.feature-guide *, .feature-guide *::before, .feature-guide *::after { box-sizing: border-box; }
.feature-guide a { color: inherit; text-decoration: none; }
.feature-guide :where(a, summary):focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 5px; }
.feature-guide :where(h1, h2, h3) { line-height: 1.45; font-weight: 650; text-wrap: pretty; }
.feature-guide :where(p, blockquote) { overflow-wrap: anywhere; }
.feature-guide :where(section, main, h2) { scroll-margin-top: 104px; }
.guide-container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.guide-skip { position: fixed; top: 10px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--guide-surface); transform: translateY(-160%); }
.guide-skip:focus { transform: none; }

/* 导航使用与正文一致的深色底，中等屏幕保持一行，小屏再折成紧凑两行。 */
.guide-header { position: sticky; top: 0; z-index: 10; background: #0a1121f5; border-bottom: 1px solid #202c42; }
.guide-header-inner { min-height: 80px; display: flex; align-items: center; gap: 52px; }
.guide-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; font-size: 20px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.guide-brand img { object-fit: contain; }
.guide-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.guide-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; color: var(--guide-muted); border-radius: 8px; white-space: nowrap; }
.guide-nav a[aria-current=page] { color: #d7e5ff; background: #1b2a45; }
.guide-account { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; }
.guide-account a { white-space: nowrap; padding-block: 9px; }
.guide-account a:last-child { padding: 9px 16px; border: 1px solid #3b4c69; border-radius: 8px; color: #d9e5fa; font-weight: 550; }
.guide-breadcrumb { display: flex; gap: 12px; padding-top: 26px; color: #8b9bb6; font-size: 12px; }
.guide-breadcrumb span[aria-current] { color: #bbc9df; }

/* 首屏的背景光只用于聚焦示例，正文区域维持安静、清晰的阅读环境。 */
.guide-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: 64px; padding-block: 70px 100px; }
.guide-hero::before { content: ''; position: absolute; z-index: -1; inset: -55px -20px -40px 28%; pointer-events: none; background: radial-gradient(ellipse at 76% 45%, #31559429, transparent 65%); }
.guide-hero-copy { min-width: 0; padding-bottom: 12px; }
.guide-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #a9c5ff; font-size: 13px; font-weight: 600; letter-spacing: .06em; margin-bottom: 26px; }
.guide-eyebrow::before { content: ''; width: 22px; height: 2px; background: #759fff; }
.guide-hero h1 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.32; font-weight: 750; letter-spacing: -.045em; color: #8ab2ff; margin-bottom: 28px; }
.guide-hero h1::first-line { color: #f0f5ff; }
.guide-lead { color: #afbdd3; font-size: 17px; line-height: 1.9; max-width: 29em; }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.guide-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 13px 24px; border: 1px solid #7ca7ff; border-radius: 10px; background: #86adff; color: #0b1b36 !important; font-size: 15px; font-weight: 750; white-space: nowrap; box-shadow: 0 6px 26px #407bf526; }
.guide-button::after { content: '↗'; font-size: 20px; font-weight: 500; line-height: 1; }
.guide-text-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 10px; color: #b9c8e0 !important; font-size: 14px; }
.guide-text-link::after { content: '↓'; font-size: 16px; }

/* 教学示例以文档层次呈现：标签、标题、原文、改进示例、说明各有视觉权重。 */
.guide-example { position: relative; min-width: 0; background: linear-gradient(155deg, #1b2941, #111c30 70%); border: 1px solid #364865; border-radius: 20px; padding: 30px; box-shadow: 0 24px 64px #03091966, inset 0 1px 0 #c4d7ff0a; }
.guide-example::before { content: ''; position: absolute; top: -8px; right: 18px; left: 18px; height: 7px; background: #172339; border: 1px solid #2a3c58; border-bottom: 0; border-radius: 9px 9px 0 0; }
.guide-example-label { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #a7b8d1; letter-spacing: .025em; margin-bottom: 20px; }
.guide-example-label::after { content: ''; flex: 1; height: 1px; background: #34425a; }
.guide-example h2 { font-size: 20px; line-height: 1.55; letter-spacing: -.02em; margin-bottom: 24px; color: #eef4ff; }
.guide-example h3 { font-size: 12px; font-weight: 600; margin-bottom: 8px; color: #a6b9d6; }
.guide-example p, .guide-example blockquote { font-size: 14px; line-height: 1.85; }
.guide-before { background: #0b1526; border: 1px solid #2a374d; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; color: #a8b7cf; }
.guide-before p + h3 { margin-top: 18px; }
.guide-after { position: relative; border: 1px solid #44669c; border-radius: 10px; background: #1c304e; padding: 17px 18px; color: #e1ecff; }
.guide-after h3 { color: #a6c7ff; }
.guide-example .guide-example-note { font-size: 12px; line-height: 1.85; color: #a6b5cc; margin-top: 20px; }

/* 概览与方法分栏阅读；不让长段落横跨整屏。 */
.guide-section { padding-block: 76px; }
.guide-section h2 { font-size: clamp(25px, 2.4vw, 32px); letter-spacing: -.035em; margin-bottom: 22px; }
.guide-section p { color: var(--guide-muted); font-size: 15px; }
.guide-overview { display: grid; grid-template-columns: .78fr 1.22fr; gap: 84px; padding: 38px 0 44px; border-block: 1px solid var(--guide-line); }
.guide-overview h2 { font-size: 25px; margin: 0; max-width: 15em; }
.guide-overview p { font-size: 15px; line-height: 2; }
.guide-method { display: grid; grid-template-columns: .78fr 1.22fr; gap: 84px; }
.guide-section-intro { align-self: start; }
.guide-section-intro p { max-width: 26em; }
.guide-points { display: grid; gap: 0; counter-reset: points; }
.guide-points article { position: relative; padding: 0 0 30px 54px; counter-increment: points; }
.guide-points article:last-child { padding-bottom: 0; }
.guide-points article::before { content: counter(points, decimal-leading-zero); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #334666; border-radius: 8px; background: #15233b; color: #9ebcff; font-size: 11px; font-variant-numeric: tabular-nums; }
.guide-points h3, .guide-steps h3 { font-size: 18px; margin-bottom: 11px; color: #e6eefb; }
.guide-points p { line-height: 1.95; }

/* 步骤轨道与说明面板合成一个完整的开始使用区域。 */
.guide-steps { padding: 42px 44px 38px; border: 1px solid #2c3b54; border-bottom: 0; border-radius: 18px 18px 0 0; background: #101b2d; }
.guide-steps h2 { margin-bottom: 34px; }
.guide-steps ol { list-style: none; counter-reset: steps; display: grid; gap: 0; }
.guide-steps li { counter-increment: steps; position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; padding: 0 0 28px 60px; }
.guide-steps li:last-child { padding-bottom: 0; }
.guide-steps li:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: #344767; left: 16px; top: 38px; bottom: 6px; }
.guide-steps li::before { content: counter(steps); position: absolute; display: grid; place-items: center; left: 0; top: 0; width: 33px; height: 33px; border-radius: 50%; border: 1px solid #5673a6; background: #1f3150; font-size: 13px; color: #c0d7ff; font-variant-numeric: tabular-nums; }
.guide-steps h3 { margin: 3px 0 0; font-size: 16px; }
.guide-steps p { font-size: 14px; }
.guide-boundary { display: grid; grid-template-columns: .32fr 1.68fr; gap: 24px; padding: 26px 44px; border: 1px solid #2c3b54; border-top-color: #26344b; border-radius: 0 0 18px 18px; background: #0d1728; }
.guide-boundary h2 { font-size: 13px; font-weight: 600; color: #b6c7df; }
.guide-boundary p { color: #94a6c2; font-size: 12px; line-height: 1.9; }

/* FAQ 保留原生键盘行为，以清楚的开合符号替代浏览器默认三角形。 */
.guide-faq { display: grid; grid-template-columns: .78fr 1.22fr; gap: 0 84px; }
.guide-faq h2 { grid-column: 1; grid-row: 1 / span 3; }
.guide-faq details { grid-column: 2; border-bottom: 1px solid #26344c; padding-block: 22px; }
.guide-faq details:first-of-type { padding-top: 4px; }
.guide-faq summary { position: relative; cursor: pointer; list-style: none; font-size: 16px; font-weight: 550; line-height: 1.7; padding-right: 32px; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; position: absolute; top: -1px; right: 0; color: #94b6f4; font-size: 24px; font-weight: 400; line-height: 1.2; }
.guide-faq details[open] summary { color: #a9c7ff; }
.guide-faq details[open] summary::after { content: '−'; }
.guide-faq details p { margin-top: 17px; font-size: 14px; line-height: 1.95; padding-right: 30px; }
.guide-related { padding: 0 0 72px; }
.guide-related h2 { font-size: 24px; margin-bottom: 24px; }
.guide-related nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guide-related a { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; background: #111d31; border: 1px solid #2e405d; border-radius: 12px; color: #cfdef5; font-size: 17px; font-weight: 550; }
.guide-related a[aria-current=page] { display: none; }
.guide-related a::after { content: '↗'; font-size: 23px; font-weight: 400; color: #91b4f6; }
.guide-footer { border-top: 1px solid #253047; padding-block: 34px; background: #070d19; }
.guide-footer .guide-container { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.guide-footer .guide-brand { font-size: 18px; }
.guide-footer p { align-self: center; justify-self: end; font-size: 12px; color: #94a3bd; }
.guide-footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; color: #94a3bd; }

/* 完整的鼠标、触控与键盘反馈；所有自动动效默认关闭。 */
.guide-nav a:hover { background: #1a2942; color: #edf3ff; }
.guide-account a:hover { color: #edf3ff; border-color: #6c8bbf; }
.guide-button:hover { background: #a2c0ff; box-shadow: 0 9px 28px #407bf533; transform: translateY(-2px); }
.guide-text-link:hover, .guide-breadcrumb a:hover, .guide-footer a:hover { color: #b3ceff !important; }
.guide-related a:hover { background: #1a2b46; border-color: #5c7daf; transform: translateY(-2px); }
.guide-button:active, .guide-related a:active { transform: translateY(1px); }
@media (prefers-reduced-motion: no-preference) {
  html:has(.feature-guide) { scroll-behavior: smooth; }
  .guide-button, .guide-related a { transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .guide-nav a, .guide-account a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
}
@media (max-width: 1100px) {
  .guide-container { width: calc(100% - 56px); }
  .guide-header-inner { gap: 24px; }
  .guide-nav { gap: 2px; }
  .guide-nav a { padding-inline: 10px; font-size: 13px; }
  .guide-account { gap: 12px; }
  .guide-brand { font-size: 18px; gap: 9px; }
  .guide-hero { gap: 36px; padding-block: 58px 76px; }
  .guide-hero h1 { font-size: 38px; }
  .guide-example { padding: 24px; }
  .guide-example h2 { font-size: 18px; }
  .guide-overview, .guide-method, .guide-faq { gap: 0 48px; }
}
@media (max-width: 820px) {
  .guide-header-inner { min-height: auto; gap: 10px 20px; flex-wrap: wrap; padding-block: 12px; }
  .guide-nav { order: 3; width: 100%; justify-content: space-between; }
  .guide-nav a { flex: 1; text-align: center; }
  .guide-hero { grid-template-columns: 1fr; gap: 44px; }
  .guide-hero-copy { max-width: 620px; }
  .guide-hero h1 { font-size: 46px; }
  .guide-lead { max-width: 32em; }
  .guide-example { max-width: 640px; width: 100%; justify-self: center; }
  .guide-overview, .guide-method { grid-template-columns: 1fr; gap: 28px; }
  .guide-overview h2, .guide-section-intro p { max-width: none; }
  .guide-faq { display: block; }
  .guide-faq h2 { margin-bottom: 28px; }
  .guide-steps li { grid-template-columns: 1fr; gap: 8px; }
  .feature-guide :where(section, main, h2) { scroll-margin-top: 145px; }
}
@media (max-width: 540px) {
  .guide-container { width: calc(100% - 40px); }
  .guide-header-inner { gap: 9px; padding-block: 10px; }
  .guide-brand { font-size: 16px; gap: 8px; }
  .guide-brand img { width: 28px; height: 28px; }
  .guide-account { font-size: 11px; gap: 9px; }
  .guide-account a:last-child { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 10px; border-radius: 7px; }
  .guide-nav { gap: 4px; }
  .guide-nav a { padding: 6px 4px; font-size: 12px; }
  .guide-breadcrumb { padding-top: 20px; font-size: 11px; }
  .guide-hero { gap: 36px; padding-block: 38px 50px; }
  .guide-hero::before { inset: 35% -15px 0; }
  .guide-eyebrow { margin-bottom: 20px; font-size: 12px; }
  .guide-hero h1 { font-size: clamp(29px, 8.5vw, 42px); letter-spacing: -.045em; margin-bottom: 20px; }
  .guide-lead { font-size: 15px; line-height: 1.9; }
  .guide-actions { gap: 22px; margin-top: 26px; }
  .guide-button { padding: 12px 18px; min-height: 48px; font-size: 14px; gap: 14px; }
  .guide-text-link { font-size: 13px; }
  .guide-example { padding: 22px 18px 19px; border-radius: 16px; }
  .guide-example-label { font-size: 10px; margin-bottom: 16px; gap: 8px; }
  .guide-example h2 { font-size: 18px; margin-bottom: 18px; }
  .guide-before, .guide-after { padding: 14px; }
  .guide-example p, .guide-example blockquote { font-size: 13px; }
  .guide-example .guide-example-note { font-size: 12px; }
  .guide-section { padding-block: 44px; }
  .guide-section h2 { font-size: 24px; }
  .guide-overview { gap: 0; padding-block: 32px; }
  .guide-overview h2 { font-size: 22px; margin-bottom: 16px; }
  .guide-overview p, .guide-section p { font-size: 14px; }
  .guide-method { gap: 28px; }
  .guide-points article { padding-left: 46px; padding-bottom: 28px; }
  .guide-points h3 { font-size: 16px; }
  .guide-steps { padding: 28px 20px; }
  .guide-steps h2 { margin-bottom: 28px; }
  .guide-steps li { padding-left: 46px; padding-bottom: 26px; }
  .guide-steps h3 { font-size: 16px; }
  .guide-steps p { font-size: 13px; }
  .guide-boundary { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .guide-boundary p { font-size: 12px; }
  .guide-faq summary { font-size: 15px; }
  .guide-faq details p { font-size: 13px; padding-right: 10px; }
  .guide-related { padding: 0 0 44px; }
  .guide-related nav { grid-template-columns: 1fr; gap: 12px; }
  .guide-related a { padding: 20px; font-size: 16px; }
  .guide-footer .guide-container { grid-template-columns: 1fr; gap: 12px; }
  .guide-footer p { justify-self: start; font-size: 11px; }
  .guide-footer-links { gap: 4px 16px; font-size: 12px; }
  .guide-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 360px) {
  .guide-container { width: calc(100% - 32px); }
  .guide-brand { font-size: 14px; }
  .guide-account { gap: 6px; font-size: 10px; }
  .guide-brand img { width: 24px; height: 24px; }
  .guide-account a:last-child { padding-inline: 7px; }
  .guide-nav a { font-size: 11px; }
}
