/* =====================================================================
   关于 / 投稿 / 隐私 / MCP 服务四页（B「派派一家」11-07；模板 pp/_info.html、about.html、submit.html、privacy.html、mcp_guide.html）。
   没有样稿，照详情页、快讯列表样稿的组件做：页头（面包屑 + 标题字大标题 + 一行说明）→ 左边「这几页」白面板竖排菜单（当前页浅蓝底蓝字，同 .filter__opt）
   + 右边正文白面板（20 圆角 + 软阴影，正文排版 b/reading.css 的 .md）；投稿页右边多一栏「投稿须知」「我投的」。
   整块居中：说明文字一行不拉太长（正文白面板最宽 1120，≥1800 时 1200），宽屏两边留白不加装饰。
   900 以下一栏，「这几页」变成一排横着滑的胶囊。
   ===================================================================== */
.info-in { --info-nav: clamp(200px, 12vw, 260px); --info-doc: 1120px; width: min(100% - 2 * var(--gutter), var(--info-nav) + var(--info-doc) + var(--space-xl)); margin-inline: auto; }
@media (min-width: 1800px) { .info-in { --info-doc: 1200px; } }
.info-in:has(.sb) { width: min(100% - 2 * var(--gutter), var(--info-nav) + 1000px + clamp(280px, 16vw, 360px) + 2 * var(--space-xl)); }
.page-info [hidden] { display: none !important; }

/* ---------- 页头 ---------- */
.info-hd { padding: var(--space-sm) 0 clamp(20px, 2vw, 36px); }
.info-hd .crumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.info-hd .crumbs [aria-current] { color: var(--ink-2); }
.info-hd h1 { margin-top: clamp(12px, 1.2vw, 24px); font: var(--display-w) var(--fs-d2)/1.18 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; }
.info-lead { margin-top: var(--space-sm); max-width: 64em; font-size: var(--fs-md); line-height: 1.7; color: var(--ink-2); }

/* ---------- 两栏（投稿页三栏） ---------- */
.info { display: grid; grid-template-columns: var(--info-nav) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.info.sb { grid-template-columns: var(--info-nav) minmax(0, 1fr) clamp(280px, 16vw, 360px); }

/* 左边「这几页」：白面板竖排菜单 */
.info-nav { position: sticky; top: var(--space-lg); display: grid; gap: 2px; padding: var(--space-ms); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); }
.info-nav a { display: flex; align-items: center; gap: var(--space-ms); min-height: 44px; padding: 0 var(--space-ms); border-radius: 10px; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.info-nav a .gl { flex: none; width: 16px; height: 16px; }
@media (hover: hover) { .info-nav a:hover { background: var(--sunk); color: var(--ink); } }
.info-nav a[aria-current="page"] { background: var(--blue-bg); color: var(--link); font-weight: 600; }

/* 右边正文白面板 */
.info-doc { min-width: 0; padding: clamp(24px, 2.4vw, 48px) clamp(20px, 3vw, 56px); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); font-size: var(--fs-md); }
.info-doc .md h2 { margin: 1.8em 0 .6em; font-size: var(--fs-xl); }
.info-doc .md > h2:first-child { margin-top: 0; }
.info-note { margin: 0 0 var(--space-lg); padding: var(--space-ms) var(--space-md); border-radius: var(--r-md); background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue-line); font-size: var(--fs-sm); line-height: 1.7; }
.todo { display: inline-block; margin-left: var(--space-sm); padding: 0 var(--space-sm); border-radius: var(--r-sm); background: var(--t-prompt-bg); box-shadow: inset 0 0 0 1px var(--t-prompt-bd); color: var(--warn-ink); font-size: var(--fs-xs); line-height: 22px; }
.info-doc .md td:first-child code { white-space: nowrap; }

/* ---------- 关于：四个数字 → 这里有什么（栏目卡）→ 内容是怎么来的（打勾）→ 谁在做 → 想合作 ---------- */
.ab-doc { display: flex; flex-direction: column; gap: clamp(32px, 2.6vw, 48px); }
.ab-doc h2 { margin-bottom: var(--space-md); font: var(--display-w) var(--fs-xl)/1.35 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; }
.ab-doc p { font-size: var(--fs-md); line-height: 1.85; }
.ab-doc p a, .ab-checks a { color: var(--link); text-decoration: underline; text-decoration-color: rgb(9 88 217 / .3); text-underline-offset: 3px; }
@media (hover: hover) { .ab-doc p a:hover, .ab-checks a:hover { text-decoration-color: currentColor; } }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin: 0; }
.ab-stats > div { padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--sunk); }
.ab-stats dt { font-size: var(--fs-sm); line-height: 22px; color: var(--ink-2); }
.ab-stats dd { margin: var(--space-xs) 0 0; font: var(--display-w) clamp(26px, .6vw + 18px, 34px)/1.2 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab-stats small { margin-left: var(--space-xs); font: 400 var(--fs-sm) var(--sans); -webkit-text-stroke: 0; color: var(--ink-2); }
.ab-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-ms); }
.ab-cols a { position: relative; display: flex; align-items: flex-start; gap: var(--space-ms); height: 100%; padding: var(--space-md); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
@media (hover: hover) { .ab-cols a:hover { background: var(--sunk); box-shadow: inset 0 0 0 1px transparent; } .ab-cols a:hover b { color: var(--link); } }
.ab-cols .ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-bg); color: var(--link); }
.ab-cols .ic .gl { width: 18px; height: 18px; }
.ab-cols .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-cols b { font-weight: 600; font-size: var(--fs-md); line-height: 1.5; transition: color .2s; }
.ab-cols .tx span { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }
.ab-checks { display: grid; gap: var(--space-ms); }
.ab-checks li { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: var(--fs-md); line-height: 1.75; }
.ab-checks .gl { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--ok); }

/* ---------- 投稿：两张选择卡 → 表单白面板；右边投稿须知、我投的 ---------- */
.info-doc.sb-main { display: flex; flex-direction: column; gap: var(--space-lg); padding: 0; border-radius: 0; background: none; box-shadow: none; }
.sb-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.sb-card { position: relative; display: flex; align-items: flex-start; gap: var(--space-ms); height: 100%; padding: var(--space-lg); border: 0; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); color: var(--ink); text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .sb-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); } }
.sb-card .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-bg); color: var(--link); }
.sb-card .ic .gl { width: 20px; height: 20px; }
.sb-card .tx { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.sb-card b { display: inline-flex; align-items: center; gap: var(--space-xs); font: var(--display-w) var(--fs-lg)/1.35 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.sb-card b .gl { display: none; width: 16px; height: 16px; color: var(--link); -webkit-text-stroke: 0; }
.sb-card .tx > span { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }
.sb-card em { margin-top: var(--space-xs); font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--link); }
.sb:has(#sbForm:not([hidden])) .sb-card[data-start] { box-shadow: var(--sh), 0 0 0 2px var(--blue); }
.sb:has(#sbForm:not([hidden])) .sb-card[data-start] b .gl { display: block; }

.sb-form { padding: 0; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); scroll-margin-top: var(--space-lg); }
.sb-form h2 { display: flex; align-items: center; gap: var(--space-sm); min-height: 64px; padding: 0 var(--space-lg); border-bottom: 1px solid var(--line); font: var(--display-w) var(--fs-xl)/1.3 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.sb-form h2 .gl { width: 18px; height: 18px; color: var(--link); -webkit-text-stroke: 0; }
.sb-fields { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-lg); }
.sb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.fd { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.fd > span { font-size: var(--fs-sm); font-weight: 600; line-height: 22px; color: var(--ink); }
.fd textarea.input { min-height: 180px; }
.sb-contact .input { max-width: 380px; }
.sb-ai { gap: var(--space-sm); }
.fd > .seg { align-self: flex-start; }
.sb-form .err { min-height: 0; color: var(--err); font-size: var(--fs-sm); }
.sb-form .err:empty { display: none; }
.sb-go { align-self: flex-start; }

.sb-side { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
@media (min-width: 1200px) { .sb-side { position: sticky; top: var(--space-lg); } }
.sb-box { padding: var(--space-md) var(--space-lg) var(--space-lg); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); }
.sb-box h2 { padding: 4px 0 var(--space-ms); font: var(--display-w) var(--fs-lg)/1.35 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.sb-box ol { display: grid; gap: var(--space-ms); counter-reset: r; font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }
.sb-box ol li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-sm); counter-increment: r; }
.sb-box ol li::before { content: counter(r); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--sunk); font: 600 12px/1 var(--sans); color: var(--ink-2); }
/* 我投的（submit.js 画的一条一条） */
.pj-mine { display: grid; gap: var(--space-sm); }
.pj-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); padding: var(--space-ms) var(--space-md); border-radius: var(--r-md); background: var(--sunk); }
.pj-sub > div { flex: 1 1 12em; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pj-sub b { font-weight: 600; font-size: var(--fs-sm); }
.pj-sub span { font-size: var(--fs-sm); color: var(--ink-2); }
.pj-sub small { font-size: var(--fs-xs); color: var(--ink-2); }
.pj-sub .why { margin-top: 4px; color: var(--ink); }
.pj-sub .st { flex: none; padding: 0 var(--space-sm); border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-xs); line-height: 22px; color: var(--ink); }
.pj-sub.st-accepted .st { background: var(--t-opensource-bg); box-shadow: inset 0 0 0 1px var(--t-opensource-bd); color: var(--ok); }
.pj-sub.st-rejected .st, .pj-sub.st-withdrawn .st { color: var(--ink-2); }
.pj-sub .lk { flex: none; min-height: 32px; padding: 0 var(--space-ms); border: 0; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-xs); color: var(--ink); }
@media (hover: hover) { .pj-sub .lk:hover { color: var(--link); box-shadow: inset 0 0 0 1px var(--blue-line); } }

/* 联系我们（11-19，contact.html）：输入框上面一行按类别换的说明；右边「运营者」一栏 */
.ct-hint { margin-top: -4px; font-size: var(--fs-xs); line-height: 1.7; color: var(--ink-2); }
.ct-done p { font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-2); }
.ct-org p { font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-2); }
.ct-org a { color: var(--link); }
/* 用户协议、隐私政策（11-19）：开头的「先说重点」浅蓝底 */
.legal .legal-sum { margin: 0 0 var(--space-lg); padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--blue-bg); }
.legal .legal-sum p { margin-bottom: .4em; }
.legal .legal-sum ul { margin-bottom: 0; }
.legal .md h3 { margin-top: 1.4em; }

@media (max-width: 1199px) {
  .info.sb { grid-template-columns: var(--info-nav) minmax(0, 1fr); }
  .sb-side { grid-column: 2; }
}
/* 900 以下一栏：「这几页」一排胶囊横着滑 */
@media (max-width: 899px) {
  .info, .info.sb { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .sb-side { grid-column: auto; }
  .info-nav { position: static; display: flex; gap: var(--space-sm); margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; border-radius: 0; background: none; box-shadow: none; }
  .info-nav::-webkit-scrollbar { display: none; }
  .info-nav::after { content: ""; flex: none; width: 1px; }
  .info-nav a { flex: none; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
  .info-nav a[aria-current="page"] { background: var(--btn); color: #fff; box-shadow: none; }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-cols, .sb-pick, .sb-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .info-doc { padding: var(--space-lg) var(--space-md); }
  .sb-card { padding: var(--space-md); }
  .sb-fields { padding: var(--space-md); }
  .sb-form h2 { padding: 0 var(--space-md); }
  .sb-go { align-self: stretch; height: 44px; }
}
