/* ============================================================
 * 独立项目页样式（配合 js/project-page.js）
 * 复用 style.css 里的 :root 变量，自动跟随深浅色主题。
 * ============================================================ */

.pp { margin: 0; background: var(--bg); color: var(--text); }
.pp a { color: var(--accent); }

.pp-wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 80px; }

.pp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 30px; }
.pp-back { text-decoration: none; font-size: 14px; }
.pp-back:hover { text-decoration: underline; }

.pp-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.pp-badge { font-size: 12px; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pp-badge.pp-status { background: var(--green-bg); color: var(--green); }

.pp h1 { font-size: 30px; line-height: 1.3; margin: 6px 0 14px; }
.pp-summary { font-size: 16px; line-height: 1.8; opacity: .88; margin: 0 0 14px; }
.pp-detail { font-size: 14px; line-height: 1.95; opacity: .72; margin: 0 0 8px; }

.pp-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin: 18px 0;
}
.pp-block h2 { font-size: 17px; margin: 0 0 14px; }

.pp-list { margin: 0; padding-left: 20px; line-height: 2; font-size: 14px; }

.pp-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-tech span { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); }

.pp-update { font-size: 14px; line-height: 1.9; opacity: .85; margin: 0; }

.pp-shots { display: grid; gap: 16px; }
.pp-shot { margin: 0; }
.pp-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }
.pp-shot figcaption { font-size: 12px; opacity: .62; text-align: center; margin-top: 6px; }

.pp-dls { display: grid; gap: 10px; }
.pp-dl { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; }
[data-theme="dark"] .pp-dl { color: #12142b; }              /* 深色模式下浅紫底改用深色字，保证可读 */
[data-theme="dark"] .pp-dl:hover { color: #12142b; }
.pp-dl em.pp-dl-note { font-style: normal; font-size: 12px; opacity: .7; }
.pp-dl-size { font-size: 12px; opacity: .8; white-space: nowrap; }

.pp-note { font-size: 12px; opacity: .62; margin: 12px 0 0; line-height: 1.8; }

.pp-foot { margin-top: 44px; font-size: 13px; opacity: .6; text-align: center; }
.pp-loading { padding: 70px 0; text-align: center; opacity: .6; }

/* ---------- 体系化文档区块（功能介绍 / 使用方法 / 版本历史 / FAQ） ---------- */
.pp-intro { margin-top: -4px; }
.pp-feat { margin-bottom: 20px; }
.pp-feat:last-child { margin-bottom: 4px; }
.pp-feat h3 { font-size: 14.5px; margin: 0 0 8px; color: var(--accent); }
.pp-steps { margin: 0; padding-left: 22px; line-height: 2; font-size: 14px; }
.pp-steps li::marker { color: var(--accent); font-weight: 700; }
.pp-vers { display: grid; gap: 14px; }
.pp-ver { border-left: 2px solid var(--border); padding-left: 14px; }
.pp-ver-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.pp-ver-head b { font-size: 14.5px; color: var(--accent); }
.pp-ver-head time { font-size: 12px; opacity: .5; }
.pp-ver .pp-list { font-size: 13.5px; }
.pp-faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); margin-bottom: 10px; overflow: hidden; }
.pp-faq summary { cursor: pointer; list-style: none; padding: 13px 16px; font-weight: 600; font-size: 14px; position: relative; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; position: absolute; right: 16px; color: var(--accent); font-size: 17px; transition: transform .25s ease; }
.pp-faq details[open] summary::after { transform: rotate(45deg); }
.pp-faq details p { margin: 0; padding: 0 16px 15px; opacity: .75; font-size: 13.5px; line-height: 1.85; }

/* ---------- 使用教程：醒目入口 ---------- */
.pp-badge.pp-guide { font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent); }
.pp-quicknav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.pp-quicknav a {
  font-size: 13.5px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.pp-quicknav a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pp-block:target h2 { color: var(--accent); }

