/* 灵瞳文档 · 多页版式（文档中心 / 正文 / 更新日志）
   与 docs.css 同一套色板与字体，只补导航、目录、正文排版与时间线。 */

/* ── 顶部导航 ── */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 5px 0;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.nav a:hover { color: var(--paper-dim); }

.nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

/* ── 文档中心目录 ── */
.toc {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.toc__row {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: border-color .16s ease;
}

.toc__row:hover { border-bottom-color: var(--line); }

.toc__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--paper);
  transition: color .16s ease;
}

.toc__row:hover .toc__name { color: var(--accent-soft); }

.toc__desc {
  margin: 6px 0 0;
  max-width: 34em;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--muted);
}

.toc__meta {
  display: block;
  margin-top: 8px;
  font-family: var(--tech);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ── 正文 ── */
.doc { padding-bottom: 8px; }

.doc h2 {
  margin: 54px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--paper);
}

.doc h3 {
  margin: 26px 0 0;
  font-family: var(--sans);
  font-size: .96rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--paper);
}

.doc p {
  margin: 12px 0 0;
  max-width: 38em;
  line-height: 1.85;
}

.doc ul,
.doc ol {
  margin: 12px 0 0;
  padding-left: 1.3em;
  max-width: 38em;
}

.doc li {
  margin: 6px 0;
  line-height: 1.8;
}

.doc li::marker { color: var(--muted); }

.doc strong {
  color: var(--paper);
  font-weight: 500;
}

.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 149, 217, .35);
}

.doc a:hover {
  color: var(--accent-soft);
  border-bottom-color: currentColor;
}

.doc code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--tech);
  font-size: .86em;
  color: var(--paper-dim);
}

.kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .02);
  font-family: var(--tech);
  font-size: .82em;
  line-height: 1.6;
  text-align: center;
  color: var(--paper);
}

/* ── 参数表 ── */
.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.doc table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: .9rem;
}

.doc th,
.doc td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.doc th {
  border-bottom-color: var(--line);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--paper);
}

.doc td:first-child {
  white-space: nowrap;
  color: var(--paper-dim);
}

/* ── 提示块 ── */
.note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(0, 149, 217, .055);
  font-size: .9rem;
  line-height: 1.8;
  color: var(--paper-dim);
}

.note strong { color: var(--paper); }

/* ── 更新日志时间线 ── */
.tl {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.tl__item {
  position: relative;
  padding: 0 0 34px 22px;
  border-left: 1px solid var(--line);
}

.tl__item:last-child {
  border-left-color: transparent;
  padding-bottom: 8px;
}

.tl__item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
}

.tl__item--latest::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 149, 217, .14);
}

.tl__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.tl__date {
  font-family: var(--tech);
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.tl__ver {
  font-family: var(--tech);
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--accent);
}

.tl__badge {
  padding: 1px 7px;
  border: 1px solid rgba(0, 149, 217, .3);
  border-radius: 2px;
  background: rgba(0, 149, 217, .12);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--accent-soft);
}

.tl__title {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--paper);
}

.tl__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-width: 42em;
}

.tl__list li {
  position: relative;
  margin: 7px 0;
  padding-left: 16px;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--paper-dim);
}

.tl__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 1px;
  background: var(--muted);
}

.tl__foot {
  margin: 26px 0 0;
  font-size: .8rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ── 加载 / 失败 / 原文 ── */
.skeleton {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.skeleton span {
  display: block;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0 0; }
  to { background-position: -200% 0; }
}

.status {
  margin-top: 32px;
  padding: 16px;
  border: 1px dashed var(--line);
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
}

.status .btn { margin-left: 10px; }

details.raw {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: .86rem;
  color: var(--muted);
}

details.raw summary {
  cursor: pointer;
  color: var(--paper-dim);
}

details.raw summary:hover { color: var(--paper); }

details.raw pre {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: .86rem;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

/* ── 窄屏 ── */
@media (max-width: 760px) {
  .nav {
    gap: 14px;
    margin-left: 0;
    padding-left: 2px;
  }

  .nav a { font-size: .82rem; }

  .topbar__inner { gap: 10px; }

  .toc__name { font-size: 1.16rem; }

  .doc h2 { margin-top: 44px; }

  .tl__item { padding-left: 18px; }

  .tl__title { font-size: 1.06rem; }
}
