/* ============================================================
   拾序官网 · 内容页（功能/定价/教程/FAQ/术语）共享样式
   用途：/features.html /pricing.html /guide.html /faq.html /glossary.html
   配色与首页 index.html 的 :root 变量保持一致；本文件不覆盖首页样式。
   ============================================================ */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #E4EFFF;
  --navy: #0F172A;
  --text: #1E293B;
  --text-2: #64748B;
  --text-3: #94A3B8;
  --bg-soft: #F0F6FF;
  --line: #E8EEF6;
  --green: #059669;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(30,64,175,.07);
  --shadow-md: 0 14px 30px rgba(30,64,175,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); background: #fff; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
::selection { background: #C7DBFF; }

/* ── 导航 ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(232,238,246,.9);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.nav-brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 20px; font-size: 15px; color: var(--text-2); flex-wrap: wrap; }
.nav-links a { padding: 4px 0; transition: color .18s var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), #3B82F6); color: #fff;
  padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(37,99,235,.24); white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,.34); }

/* ── 页头 ── */
.page-head {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 46px 0 34px; border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--blue); }
.crumb span { margin: 0 6px; }
.page-head h1 { font-size: 33px; line-height: 1.35; color: var(--navy); letter-spacing: .5px; }
.page-head .lead { margin-top: 14px; font-size: 16px; color: var(--text-2); max-width: 780px; }
.meta-line { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* ── 正文 ── */
main { padding: 40px 0 56px; }
.prose { max-width: 820px; }
.prose h2 {
  font-size: 23px; color: var(--navy); margin: 40px 0 14px;
  padding-left: 13px; border-left: 4px solid var(--blue); line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17.5px; color: var(--navy); margin: 26px 0 8px; }
.prose p { margin: 12px 0; color: var(--text); font-size: 15.5px; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; color: var(--text); font-size: 15.5px; }
.prose li { margin: 7px 0; }
.prose li strong, .prose p strong { color: var(--navy); }
.prose code {
  background: var(--bg-soft); color: var(--blue-dark); padding: 2px 7px;
  border-radius: 6px; font-size: 14px; font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}
.prose a.link { color: var(--blue); border-bottom: 1px dashed rgba(37,99,235,.45); }
.prose a.link:hover { border-bottom-style: solid; }

.tldr {
  background: var(--bg-soft); border: 1px solid #D7E6FF; border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0;
}
.tldr h2 { border: none; padding: 0; font-size: 15px; margin: 0 0 8px; color: var(--blue-dark); letter-spacing: .5px; }
.tldr ul { margin: 6px 0 0 20px; font-size: 14.8px; }
.tldr li { margin: 5px 0; }

.note {
  border-left: 3px solid var(--green); background: #F3FBF7;
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; font-size: 14.5px; color: #14532D;
}

/* ── 表格 ── */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
thead th {
  background: var(--bg-soft); color: var(--navy); font-weight: 700;
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid #F1F5F9; color: var(--text); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFCFF; }
td .hl { color: var(--blue-dark); font-weight: 700; }

/* ── 术语条目 ── */
.term { border-bottom: 1px solid var(--line); padding: 16px 0; }
.term:last-child { border-bottom: none; }
.term dt { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.term dt .en { font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.term dd { font-size: 15px; color: var(--text); }

/* ── FAQ ── */
.faq-group { margin: 34px 0; }
.faq-group > h2 { margin-top: 0; }
details.qa {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
  margin: 10px 0; background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
details.qa[open] { border-color: #C9DCFF; box-shadow: var(--shadow-sm); }
details.qa summary {
  cursor: pointer; font-size: 15.8px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; gap: 10px; align-items: baseline;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: "Q"; color: var(--blue); font-weight: 800; flex: none; }
details.qa p { margin: 10px 0 2px 22px; font-size: 15px; color: var(--text-2); }

/* ── 相关阅读 ── */
.related { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { border: none; padding: 0; font-size: 17px; margin: 0 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.card {
  display: block; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  background: #fff; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #C9DCFF; }
.card b { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 4px; }
.card span { font-size: 13.5px; color: var(--text-2); }

/* ── 页脚（与首页一致） ── */
footer { background: linear-gradient(180deg, #101A30 0%, var(--navy) 100%); color: #94A3B8; padding: 54px 0 38px; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #E2E8F0; font-size: 18px; font-weight: 700; }
.footer-brand img { height: 36px; width: auto; border-radius: 8px; background: #fff; padding: 3px; }
.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: #CBD5E1; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.beian { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,.2); text-align: center; }
.beian a { color: #94A3B8; transition: color .18s; }
.beian a:hover { color: #E2E8F0; }
.beian .beian-sep { color: rgba(148,163,184,.45); margin: 0 6px; }
.beian .ghs { white-space: nowrap; }
.beian .ghs img { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }

/* ── 响应式 ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .page-head h1 { font-size: 26px; }
  .page-head { padding: 34px 0 26px; }
  .prose h2 { font-size: 20px; margin-top: 32px; }
  .prose p, .prose li { font-size: 15px; }
  footer { padding: 40px 0 30px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
