/* 青苗教程页 · 沿用新母站的颜色和字体（橙红 #E02500、荧光黄绿 #C7F902、黑 #111、雪白 #FDFDFF） */
:root {
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "PingFang SC", monospace;
  --red: #E02500; --lime: #C7F902; --snow: #FDFDFF; --ink: #111111;
  --panel: #F3F1EC; --muted: #5F5B55;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { background: var(--snow); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.g-nav { position: sticky; top: 0; z-index: 10; background: var(--red); color: var(--snow); border-bottom: 2px solid var(--ink); }
.g-nav .wrap { max-width: 1120px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; text-decoration: none; }
.g-logo i { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.g-logo small { font-size: 12px; font-weight: 700; opacity: .9; }
.g-links { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.g-links a { text-decoration: none; white-space: nowrap; }
.g-links a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.g-cta { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-weight: 900; }
.g-cta:hover { text-decoration: none !important; box-shadow: 3px 3px 0 var(--ink); }

/* 页头 */
.g-head { background: var(--red); color: var(--snow); padding: 56px 0 64px; border-bottom: 2px solid var(--ink); }
.g-tag { display: inline-block; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 900; }
.g-head h1 { margin-top: 16px; font-size: clamp(34px, 6vw, 60px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.g-head p { margin-top: 14px; max-width: 620px; font-size: 17px; font-weight: 500; }
.g-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.g-meta span { padding: 6px 12px; border-radius: 10px; background: var(--snow); color: var(--ink); border: 2px solid var(--ink); font-size: 14px; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }

/* 目录 */
.g-toc { margin: 36px 0 8px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 18px; background: var(--panel); }
.g-toc b { font-size: 15px; }
.g-toc ol { margin: 8px 0 0 22px; font-size: 15px; line-height: 2; }
.g-toc a { text-decoration: none; border-bottom: 2px solid var(--lime); }

/* 步骤 */
.g-step { position: relative; margin-top: 40px; padding-left: 64px; }
.g-num { position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font-weight: 900; font-size: 18px; }
.g-step h2 { font-size: 24px; font-weight: 900; line-height: 1.4; padding-top: 6px; }
.g-step p, .g-step li { margin-top: 10px; font-size: 16px; color: #222; }
.g-step ul, .g-step ol { margin-left: 22px; }
.g-step b, .g-faq b { background: linear-gradient(transparent 60%, rgba(199, 249, 2, .7) 60%); }
.g-shot { margin-top: 16px; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: #fff; }
.g-shot figcaption { padding: 8px 14px; border-top: 2px solid var(--ink); font-size: 13px; color: var(--muted); background: var(--panel); }
.g-todo { margin-top: 16px; padding: 28px 18px; border: 2px dashed var(--muted); border-radius: 14px; background: var(--panel); text-align: center; font-size: 14px; color: var(--muted); }
.g-tip { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--ink); background: #F6FCE0; font-size: 15px; border-radius: 0 10px 10px 0; }
.g-warn { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--red); background: #FFF3EF; font-size: 15px; border-radius: 0 10px 10px 0; }
.g-kbd { display: inline-block; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; font-size: 14px; font-weight: 800; line-height: 1.6; }
code { font-family: var(--mono); font-size: .92em; padding: 1px 6px; border-radius: 5px; background: var(--panel); }

/* 分节标题、常见问题、备选 */
.g-sec { margin-top: 64px; padding-top: 28px; border-top: 2px dashed var(--ink); }
.g-sec > h2 { font-size: 30px; font-weight: 900; }
.g-sec > p { margin-top: 8px; color: #333; }
.g-faq { margin-top: 16px; }
.g-faq details { border-bottom: 2px solid var(--ink); }
.g-faq summary { padding: 14px 0; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); font-weight: 900; line-height: 1; }
.g-faq details[open] summary::after { content: "−"; background: var(--lime); }
.g-faq details p { padding: 0 0 16px; color: #333; }

/* 教程卡片（教程首页） */
.g-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.g-card { display: block; padding: 24px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform .2s; }
.g-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.g-card h2 { margin-top: 10px; font-size: 24px; font-weight: 900; line-height: 1.35; }
.g-card p { margin-top: 8px; color: #333; font-size: 15px; }
.g-card u { display: inline-block; margin-top: 14px; text-decoration: none; font-weight: 900; color: var(--red); }

/* 页尾 */
.g-next { margin: 64px 0 0; padding: 26px; border: 2px solid var(--ink); border-radius: 18px; background: var(--ink); color: var(--snow); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.g-next b { font-size: 20px; }
.g-next a { height: 46px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-weight: 900; text-decoration: none; }
.g-foot { margin-top: 64px; padding: 26px 0 34px; background: var(--red); color: var(--snow); border-top: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.g-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 720px) {
  .g-links .hide-m { display: none; }
  .g-head { padding: 36px 0 44px; }
  .g-step { padding-left: 0; }
  .g-num { position: static; margin-bottom: 8px; }
  .g-step h2 { padding-top: 0; }
  .g-cards { grid-template-columns: 1fr; }
  .g-shot { box-shadow: 4px 4px 0 var(--ink); }
  .g-foot .wrap { flex-direction: column; gap: 6px; }
  .g-links { gap: 12px; }
}
