/* 功能资料阅读层：复用文档外壳，范围仅限本页，不覆盖其他页面。 */
body[data-page="db-features"]  {
  --bg: #f8f9fa;
  --panel: #fff;
  --txt: #191a23;
  --txt-bright: #191a23;
  --txt-dim: #6a6e81;
  --line: #e4e6ee;
  --feature-head: #f1f3f6;
  --feature-alt: #fafbfc;
  --feature-blue: #3155b8;
  background: var(--bg);
}
html[data-theme="dark"] body[data-page="db-features"]  {
  --bg: #14151c;
  --panel: #1b1d27;
  --txt: #c9cbd7;
  --txt-bright: #eef0f7;
  --txt-dim: #9b9eb0;
  --line: #343745;
  --feature-head: #252834;
  --feature-alt: #1f222d;
  --feature-blue: #9ab5ff;
}
body[data-page="db-features"] main  {
  min-width: 0;
}
body[data-page="db-features"] main > section:not(:first-child)  {
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.feature-mobile-toc  {
  display: none;
}
.feature-skip  {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1200;
  padding: 10px 16px;
  background: var(--panel);
}
.feature-skip:focus  {
  top: 12px;
}
.feature-back  {
  display: block;
  margin: 20px 10px;
  font-size: 12px;
}
.feature-actions, .feature-reading-footer  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 20px;
}
.feature-actions a, .feature-actions button, .feature-detail-actions button  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--txt);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.feature-actions a:first-child  {
  color: var(--accent-2);
  border-color: var(--accent);
}
.feature-actions [hidden]  {
  display: none;
}
body[data-page="db-features"] a:focus-visible, body[data-page="db-features"] button:focus-visible, .feature-table:focus-visible, .feature-controls :is(input,select):focus-visible  {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.feature-provenance  {
  max-width: 980px;
  margin: 16px 0 0;
  color: var(--txt-dim);
  font-size: 12px;
  line-height: 1.6;
}
.feature-overviews  {
  margin: 26px 0;
}
.feature-overview h3  {
  font-size: 14px;
}
.feature-overview p  {
  font-size: 13px;
}
.feature-overview h3 span  {
  float: right;
  color: var(--accent);
}
.feature-guide  {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--panel);
}
.feature-guide h2, .feature-tools h2  {
  font-size: 18px;
  line-height: 1.5;
}
.feature-guide p  {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--txt-dim);
}
.feature-legend  {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.feature-legend span  {
  padding: 4px 8px;
  background: var(--feature-head);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.feature-tools  {
  padding-top: 0;
  margin-top: 36px;
  scroll-margin-top: 100px;
}
.feature-controls  {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 14px 0;
}
.feature-controls[hidden]  {
  display: none;
}
.feature-controls label  {
  display: grid;
  gap: 7px;
  color: var(--txt-dim);
  font-size: 12px;
}
.feature-controls label:first-child  {
  flex: 1 1 280px;
}
.feature-controls input, .feature-controls select  {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--txt);
  background: var(--panel);
  font: inherit;
  font-size: 13px;
}
.feature-detail-actions  {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#feature-result  {
  margin: 10px 0;
  font-size: 12px;
  color: var(--txt-dim);
}
.feature-empty  {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
}
.feature-section  {
  padding-top: 0;
  margin-top: 52px;
  scroll-margin-top: 100px;
}
.feature-section > h2  {
  padding: 0 0 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.5;
}
.feature-section > h2 span  {
  margin-right: 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-family: var(--mono);
}
.feature-section h3  {
  margin: 24px 0 12px;
  font-size: 15px;
  line-height: 1.5;
}
.feature-section > .note  {
  margin: 7px 0 14px;
  color: var(--txt-dim);
  font-size: 13px;
  line-height: 1.6;
}
.feature-section :is(h2,h3), [data-feature-row]  {
  scroll-margin-top: 100px;
}
.feature-table  {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.feature-table table  {
  width: 100%;
  min-width: 840px;
  table-layout: fixed;
  border-collapse: collapse;
}
.feature-name  {
  width: 174px;
}
.feature-value  {
  width: 24%;
}
.feature-table :is(th,td)  {
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.feature-table :is(th,td):last-child  {
  border-right: 0;
}
.feature-table thead th  {
  background: var(--feature-head);
  font-size: 11px;
  color: var(--txt-dim);
  font-weight: 600;
}
.feature-table tbody th  {
  color: var(--txt-bright);
  font-weight: 600;
}
.feature-table tbody tr  {
  background: var(--panel);
}
.feature-table tbody tr:nth-child(even)  {
  background: var(--feature-alt);
}
.feature-table tbody tr:hover  {
  box-shadow: inset 3px 0 var(--accent);
}
.feature-table .adv  {
  color: var(--txt);
  font-weight: 400;
}
.feature-table .none  {
  color: var(--txt-dim);
}
.feature-table code  {
  color: var(--feature-blue);
  font-family: var(--mono);
  font-size: 12px;
}
.feature-detail  {
  margin-top: 10px;
}
.feature-detail summary, .feature-boundary summary  {
  color: var(--accent-2);
  font-size: 12px;
  cursor: pointer;
}
html[data-theme="dark"] :is(.feature-detail,.feature-boundary) summary  {
  color: var(--accent);
}
.feature-detail[open]  {
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.feature-detail p  {
  margin: 7px 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.feature-detail strong  {
  color: var(--txt-bright);
  font-weight: 600;
}
.feature-detail pre  {
  max-width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--feature-head);
  white-space: pre;
}
.feature-detail pre code  {
  font-size: 12.5px;
  line-height: 1.6;
}
.feature-boundary  {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
}
.feature-boundary ul  {
  padding-left: 20px;
  margin: 12px 0 0;
}
.feature-boundary li  {
  margin: 7px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--txt-dim);
}
.progress-badge, .future-badge  {
  display: inline-block;
  padding: 2px 6px;
  margin: 6px 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--feature-head);
  color: var(--txt-dim);
  font-size: 11px;
  font-weight: 500;
}
.future-addition  {
  display: block;
  margin: 10px 0;
  padding: 9px 12px;
  border-left: 2px solid var(--feature-blue);
  background: var(--feature-head);
  font-size: 12px;
}
.future-badge  {
  margin-top: 0;
  color: var(--feature-blue);
}
[data-feature-row]:target  {
  box-shadow: inset 3px 0 var(--accent);
}
.feature-reading-footer  {
  margin: 36px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
@media (max-width: 1100px)  {
  .feature-table table  {
    min-width: 800px;
  }
  .feature-name  {
    width: 158px;
  }
  .feature-table tbody th  {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--panel);
  }
  .feature-table tbody tr:nth-child(even) th  {
    background: var(--feature-alt);
  }
}
@media (max-width: 960px)  {
  body[data-page="db-features"] .sidebar  {
    display: none;
  }
  .feature-mobile-toc  {
    display: block;
    padding: 14px 16px;
    margin-top: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
    font-size: 13px;
  }
  .feature-mobile-toc summary  {
    cursor: pointer;
    color: var(--accent-2);
  }
  .feature-mobile-toc ul  {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px 0 0;
    margin: 0;
    list-style: none;
  }
  .feature-mobile-toc a  {
    display: block;
    padding: 7px 4px;
    font-size: 12px;
  }
  .feature-mobile-toc .sec  {
    margin-right: 6px;
  }
}
@media (max-width: 600px)  {
  .feature-controls  {
    align-items: stretch;
  }
  .feature-controls label  {
    flex: 1 1 100%;
  }
  .feature-detail-actions  {
    width: 100%;
  }
  .feature-guide  {
    padding: 16px;
  }
  .feature-section > h2  {
    font-size: 18px;
  }
  .feature-actions  {
    gap: 8px;
  }
  .feature-overviews  {
    grid-template-columns: 1fr;
  }
}
@page  {
  size: A4 portrait;
  margin: 14mm;
}
@media print  {
  body[data-page="db-features"]  {
    --bg: #fff;
    --panel: #fff;
    --txt: #191a23;
    --txt-bright: #191a23;
    --txt-dim: #555b68;
    --line: #ccd0d8;
    --feature-head: #f1f3f6;
    --feature-alt: #fff;
    --feature-blue: #264b9c;
    color: #191a23;
  }
  .feature-actions, .feature-controls, .feature-empty, #feature-result, .feature-reading-footer, .feature-skip, .feature-overviews, .feature-mobile-toc, .sidebar, .yd-site-header  {
    display: none !important;
  }
  .shell  {
    display: block;
  }
  body[data-page="db-features"] main  {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
  }
  .feature-section  {
    margin-top: 24px;
  }
  .feature-section > h2, .feature-section h3  {
    break-after: avoid;
  }
  .feature-table  {
    overflow: visible;
  }
  .feature-table table  {
    min-width: 0;
    width: 100%;
  }
  .feature-name  {
    width: 22%;
  }
  .feature-value  {
    width: 23%;
  }
  .feature-table :is(th,td), .feature-detail p  {
    font-size: 9pt;
    padding: 6px 8px;
  }
  .feature-table thead  {
    display: table-header-group;
  }
  .feature-table tbody th  {
    position: static;
  }
  .feature-table [hidden], .feature-table tr[hidden]  {
    display: table-row !important;
  }
  .feature-section[hidden], .feature-table[hidden], .feature-section > [hidden]  {
    display: block !important;
  }
  .feature-detail pre, .feature-detail pre code  {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 8.5pt;
  }
  .feature-table .feature-detail pre  {
    padding: 8px;
  }
  .feature-guide  {
    break-inside: avoid;
  }
}

/* 索引导航，不改变来源单元格正文。 */
.feature-manual-link {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 400;
}
