/* ==========================================================================
   docs.css — NEWVALINK STUDIO 文档中心版式
   全站既有样式一律不改，本文件只新增 .dc-* 命名空间。
   自包含：不引用任何外部库 / CDN / 网络字体。
   ========================================================================== */

.dc-page,
.dc-shell,
.dc-index-shell {
  --dc-ink: #fff;
  --dc-body: rgba(255, 255, 255, .78);
  --dc-dim: rgba(255, 255, 255, .48);
  --dc-faint: rgba(255, 255, 255, .3);
  --dc-line: rgba(255, 255, 255, .13);
  --dc-line-soft: rgba(255, 255, 255, .07);
  --dc-accent: #0095ff;
  --dc-accent-soft: rgba(0, 149, 255, .16);
  --dc-panel: rgba(20, 20, 20, .6);
  --dc-panel-2: rgba(255, 255, 255, .035);
  --dc-radius: 20px;
  --dc-sans: "Noto Sans SC", "Noto Sans JP", "PingFang SC", "Hiragino Sans GB", "Hiragino Sans",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --dc-display: Newvalinksansvf, Inter, "Noto Sans SC", "Noto Sans JP", Arial, sans-serif;
  --dc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Noto Sans SC", monospace;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.dc-hero-doc {
  height: 40vh;
  min-height: 340px;
  position: relative;
}

/* hero 不再叠压暗渐变——亮度与全站其他页面一致（用户反馈） */
.dc-hero-index {
  position: relative;
}

.dc-hero-inner {
  z-index: 2;
  position: relative;
}

.dc-hero-head {
  grid-row-gap: 0px;
  animation: dc-rise .9s cubic-bezier(.16, .72, .26, 1) both;
}

@keyframes dc-rise {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to   { opacity: 1; transform: none; }
}

.dc-hero-doc .basicpage-header-content { margin-top: 110px; }

.dc-crumb {
  color: rgba(255, 255, 255, .85);
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-family: var(--dc-sans);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 7px 14px;
  background-color: rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 30px;
  transition: color .3s, border-color .3s, background-color .3s;
}

.dc-crumb:hover {
  color: #000;
  background-color: #fff;
  border-color: #fff;
}

.dc-crumb-arrow { font-size: 13px; line-height: 1; }

.dc-hero-title {
  max-width: 900px;
  line-height: 40px;
  font-family: var(--dc-sans);
  font-weight: 500;
  margin-top: 6px;
}

/* 详情页：文档名本身就是大标题（落地页已有 /DOCUMENTS，不再重复装饰标题） */
.dc-hero-title-lg {
  font-size: 34px;
  line-height: 50px;
  letter-spacing: 2px;
  margin-top: 0;
}

.dc-hero-lead {
  color: rgba(255, 255, 255, .62);
  text-align: center;
  max-width: 720px;
  margin: 12px 0 0;
  font-family: var(--dc-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: .5px;
}

/* --------------------------------------------------------------------------
   页面容器
   -------------------------------------------------------------------------- */

.dc-page {
  padding: 0 24px 120px;
  font-family: var(--dc-sans);
}

.dc-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 70px;
  display: block;
}

/* --------------------------------------------------------------------------
   目录（TOC）
   -------------------------------------------------------------------------- */

.dc-toc {
  background-color: var(--dc-panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--dc-radius);
  box-shadow: inset 0 0 10px rgba(170, 168, 168, .2);
  padding: 22px 10px 22px 24px;
  margin-bottom: 40px;
}

.dc-toc-head {
  padding-right: 14px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--dc-line);
}

.dc-toc-kicker {
  color: var(--dc-faint);
  font-family: var(--dc-display);
  font-size: 11px;
  letter-spacing: 3px;
}

.dc-toc-title {
  color: var(--dc-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 2px;
}

.dc-toc-scroll {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  position: relative;
}

.dc-toc-scroll::-webkit-scrollbar { width: 4px; }
.dc-toc-scroll::-webkit-scrollbar-track { background: transparent; }
.dc-toc-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }
.dc-toc-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }

.dc-toc-list { list-style: none; margin: 0; padding: 0; }

.dc-toc-i { margin: 0; }

.dc-toc-link {
  color: var(--dc-dim);
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 300;
  text-decoration: none;
  display: block;
  padding: 6px 10px 6px 12px;
  border-left: 1px solid var(--dc-line-soft);
  transition: color .25s, border-color .25s, background-color .25s;
}

.dc-toc-l2 > .dc-toc-link {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 500;
  padding-top: 10px;
  padding-bottom: 8px;
}

.dc-toc-l3 > .dc-toc-link { padding-left: 26px; }

.dc-toc-link:hover {
  color: #fff;
  border-left-color: rgba(255, 255, 255, .45);
  background-color: rgba(255, 255, 255, .04);
}

.dc-toc-link.is-active {
  color: #fff;
  border-left-color: var(--dc-accent);
  background-color: var(--dc-accent-soft);
}

/* --------------------------------------------------------------------------
   正文
   -------------------------------------------------------------------------- */

.dc-article {
  max-width: 820px;
  color: var(--dc-body);
  font-size: 15px;
  line-height: 32px;
  font-weight: 300;
  padding-bottom: 10px;
}

.dc-article > *:first-child { margin-top: 0; }

.dc-h2,
.dc-h3,
.dc-h4 { scroll-margin-top: 110px; }

.dc-h2 {
  color: #fff;
  font-family: var(--dc-sans);
  font-size: 30px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: 1px;
  margin: 84px 0 26px;
  padding-top: 30px;
  border-top: 1px solid var(--dc-line);
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.dc-article > .dc-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.dc-h2-no {
  color: var(--dc-accent);
  font-family: var(--dc-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  flex: 0 0 auto;
  transform: translateY(-2px);
}

.dc-h2-text { flex: 1 1 auto; }

.dc-h3 {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: .5px;
  margin: 52px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dc-line-soft);
}

.dc-h4 {
  color: rgba(255, 255, 255, .94);
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: .5px;
  margin: 36px 0 12px;
}

.dc-h4:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  background-color: rgba(255, 255, 255, .45);
  transform: translateY(-3px);
}

.dc-p { margin: 0 0 20px; }

.dc-article strong {
  color: #fff;
  font-weight: 500;
}

.dc-link {
  color: #6cc0ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(108, 192, 255, .4);
  transition: color .25s, border-color .25s;
}

.dc-link:hover { color: #fff; border-bottom-color: #fff; }

/* 行内代码 & 菜单路径 */

.dc-code {
  color: #8ecdff;
  background-color: rgba(255, 255, 255, .07);
  border: 1px solid var(--dc-line-soft);
  border-radius: 6px;
  padding: 2px 7px;
  margin: 0 2px;
  font-family: var(--dc-mono);
  font-size: 13px;
  white-space: nowrap;
}

.dc-menupath {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px 16px;
  background-color: var(--dc-panel-2);
  border: 1px solid var(--dc-line-soft);
  border-radius: 10px;
}

.dc-menupath-label {
  color: var(--dc-faint);
  font-size: 11px;
  letter-spacing: 2px;
  flex: 0 0 auto;
}

.dc-menupath-code {
  color: #fff;
  font-family: var(--dc-mono);
  font-size: 13.5px;
  letter-spacing: .3px;
  line-height: 22px;
}

/* 列表 */

.dc-ul, .dc-ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.dc-ul > li, .dc-ol > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.dc-ul > li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 1px;
  background-color: var(--dc-accent);
}

.dc-ol { counter-reset: dc-ol; }

.dc-ol > li { counter-increment: dc-ol; padding-left: 32px; }

.dc-ol > li:before {
  content: counter(dc-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dc-accent);
  font-family: var(--dc-display);
  font-size: 12px;
  letter-spacing: 1px;
}

.dc-sub {
  margin: 12px 0 4px;
  padding-left: 18px;
  border-left: 1px solid var(--dc-line-soft);
}

.dc-sub > li { margin-bottom: 8px; }

.dc-sub > li:before { background-color: rgba(255, 255, 255, .35); }

/* 表格 */

.dc-table-wrap {
  margin: 0 0 30px;
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .02);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.dc-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 24px;
}

.dc-table th {
  color: #fff;
  text-align: left;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, .06);
  padding: 13px 20px;
  border-bottom: 1px solid var(--dc-line);
}

.dc-table td {
  color: var(--dc-body);
  vertical-align: top;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dc-line-soft);
}

.dc-table tbody tr:last-child td { border-bottom: 0; }

.dc-table tbody tr { transition: background-color .25s; }

.dc-table tbody tr:hover { background-color: rgba(255, 255, 255, .035); }

.dc-table td:first-child {
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
}

/* 代码块 */

.dc-pre-wrap {
  position: relative;
  margin: 0 0 28px;
  background-color: rgba(0, 0, 0, .38);
  border: 1px solid var(--dc-line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.dc-pre-wrap:before {
  content: attr(data-lang);
  position: absolute;
  top: 10px;
  right: 16px;
  color: var(--dc-faint);
  font-family: var(--dc-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dc-pre {
  margin: 0;
  padding: 26px 22px 22px;
  color: rgba(255, 255, 255, .82);
  font-family: var(--dc-mono);
  font-size: 13px;
  line-height: 22px;
  white-space: pre;
  overflow-x: auto;
  background: none;
  border: 0;
}

/* 引用 */

.dc-quote {
  margin: 0 0 26px;
  padding: 22px 24px 4px;
  border-left: 2px solid rgba(255, 255, 255, .25);
  background-color: var(--dc-panel-2);
  border-radius: 0 12px 12px 0;
}

.dc-quote > *:last-child { margin-bottom: 18px; }

/* 图片 */

.dc-fig {
  margin: 0 0 32px;
  padding: 0;
}

/* 图框宽度即图片宽度；竖长图由生成器写入 style="max-width:…px" 把呈现高度收敛到 520px 上限 */
.dc-fig-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .03);
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}

.dc-fig-btn:hover {
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
}

.dc-fig-btn img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.dc-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  vertical-align: middle;
}

/* 结尾 */

.dc-article-end {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--dc-line);
}

.dc-backlink {
  color: var(--dc-dim);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--dc-line);
  border-radius: 30px;
  transition: color .3s, background-color .3s, border-color .3s;
}

.dc-backlink:hover { color: #000; background-color: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   灯箱
   -------------------------------------------------------------------------- */

.dc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background-color: rgba(6, 6, 6, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  cursor: zoom-out;
  transition: opacity .24s ease, visibility .24s;
}

.dc-lightbox.is-open { opacity: 1; visibility: visible; }

.dc-lightbox-inner {
  max-width: 100%;
  max-height: 90vh;
  transform: scale(.97);
  transition: transform .28s cubic-bezier(.16, .72, .26, 1);
}

.dc-lightbox.is-open .dc-lightbox-inner { transform: none; }

.dc-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

.dc-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s, color .25s;
  -webkit-appearance: none;
  appearance: none;
}

.dc-lightbox-close:hover { color: #000; background-color: #fff; }

/* --------------------------------------------------------------------------
   文档中心落地页
   -------------------------------------------------------------------------- */

.dc-index-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 90px;
  font-family: var(--dc-sans);
}

.dc-index-head { margin-bottom: 18px; }

.dc-index-h {
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  line-height: 34px;
  margin: 0;
}

.dc-index-k {
  color: var(--dc-faint);
  font-family: var(--dc-display);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-top: 4px;
}

.dc-index-lead {
  color: var(--dc-body);
  max-width: 760px;
  margin: 0 0 34px;
  font-size: 15px;
  font-weight: 300;
  line-height: 32px;
  text-align: justify;
}

.dc-line {
  width: 100%;
  height: 1px;
  background-color: var(--dc-line);
  margin-bottom: 44px;
}

.dc-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 34px 34px 28px;
  color: inherit;
  text-decoration: none;
  background-color: var(--dc-panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--dc-radius);
  box-shadow: inset 0 0 10px rgba(170, 168, 168, .2);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16, .72, .26, 1), border-color .35s, box-shadow .35s;
}

.dc-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(140deg, rgba(0, 149, 255, .16), rgba(0, 149, 255, 0) 55%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.dc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 10px rgba(170, 168, 168, .2), 0 20px 44px rgba(0, 0, 0, .45);
}

.dc-card:hover:before { opacity: 1; }

.dc-card-kicker {
  position: relative;
  color: var(--dc-faint);
  font-family: var(--dc-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

/* 22px 是为了最长的日文卡名「Production Tracker 機能ドキュメント」在两栏卡片里单行放下，
   避免中文卡单行、日文卡两行导致左右卡内容错位 */
.dc-card-title {
  position: relative;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: .5px;
  margin: 0 0 16px;
}

.dc-card-desc {
  position: relative;
  color: var(--dc-body);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 26px;
  margin: 0 0 22px;
  text-align: justify;
  flex: 1 1 auto;
}

.dc-card-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dc-faint);
  font-size: 12px;
  letter-spacing: 1px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dc-line-soft);
  margin-bottom: 18px;
}

.dc-dot { opacity: .6; }

.dc-card-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.dc-card-cta-label {
  font-family: var(--dc-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.dc-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dc-line);
  border-radius: 50%;
  font-size: 14px;
  transition: transform .35s cubic-bezier(.16, .72, .26, 1), background-color .35s, color .35s, border-color .35s;
}

.dc-card:hover .dc-card-arrow {
  color: #000;
  background-color: #fff;
  border-color: #fff;
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media screen and (min-width: 1200px) {
  .dc-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
  }

  .dc-toc {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    margin-bottom: 0;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
  }

  .dc-toc-scroll { max-height: none; flex: 1 1 auto; }
}

@media screen and (max-width: 1199px) {
  .dc-toc-l3 { display: none; }
}

@media screen and (max-width: 991px) {
  .dc-page { padding-left: 20px; padding-right: 20px; padding-bottom: 90px; }
  .dc-shell { padding-top: 50px; }
  .dc-index-shell { padding-top: 60px; }
  .dc-hero-doc { height: 38vh; min-height: 300px; }
  .dc-hero-doc .basicpage-header-content { margin-top: 90px; }
  .dc-hero-title { font-size: 19px; line-height: 32px; }
  .dc-hero-title-lg { font-size: 26px; line-height: 40px; }
  .dc-article { font-size: 14px; line-height: 30px; }
  .dc-h2 { font-size: 24px; line-height: 36px; margin-top: 64px; }
  .dc-h3 { font-size: 18px; line-height: 30px; margin-top: 42px; }
  .dc-card-grid { grid-template-columns: 1fr; }
  .dc-card { min-height: auto; padding: 28px; }
  .dc-card-title { font-size: 21px; line-height: 32px; }
  .dc-index-h { font-size: 20px; line-height: 28px; }
}

@media screen and (max-width: 767px) {
  .dc-page { padding-left: 16px; padding-right: 16px; }
  .dc-hero-doc { height: auto; min-height: 0; padding-bottom: 46px; }
  .dc-hero-doc .basicpage-header-content { margin-top: 130px; }
  .dc-hero-title { font-size: 17px; line-height: 28px; letter-spacing: 1px; }
  .dc-hero-title-lg { font-size: 21px; line-height: 34px; letter-spacing: 1px; }
  .dc-article { font-size: 13.5px; line-height: 28px; }
  .dc-h2 { font-size: 20px; line-height: 30px; gap: 12px; margin-top: 52px; padding-top: 24px; }
  .dc-h2-no { font-size: 13px; }
  .dc-h3 { font-size: 16px; line-height: 26px; }
  .dc-h4 { font-size: 14.5px; }
  .dc-menupath-code { font-size: 12.5px; }
  .dc-table { font-size: 12.5px; min-width: 460px; }
  .dc-table th, .dc-table td { padding: 11px 14px; }
  .dc-toc { padding: 18px 8px 18px 18px; }
  .dc-index-lead { font-size: 13.5px; line-height: 28px; }
  .dc-lightbox { padding: 3vh 3vw; }
  .dc-lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 22px; }
}


/* ---- 未公开文档卡：不可点击，hover 变暗 + COMING SOON 遮罩 ---- */
.dc-card--soon {
  cursor: default;
}

.dc-card--soon:hover {
  transform: none;
}

.dc-card--soon::after {
  content: attr(data-soon);
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  background: rgba(6, 7, 9, .74);
  color: #fff;
  font-family: var(--dc-display);
  font-size: 15px;
  letter-spacing: 3.5px;
  line-height: 1.8;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.dc-card--soon:hover::after {
  opacity: 1;
}
