/* ============================================================
   LynxStation · products/docs/news 页面专用样式
   遵循主题变量（--dt-main-rgb / --dt-secondary-color 等）保持一致风格
   ============================================================ */
:root {
  --ls-accent: rgba(var(--dt-main-rgb, 27, 132, 21), 1);
  --ls-accent-soft: rgba(var(--dt-main-rgb, 27, 132, 21), .08);
  --ls-border: #e8e6ef;
  --ls-bg-soft: #f8f7fc;
  --ls-text: #494a4d;
  --ls-title: #1e1e2a;
}

/* ---------- 页面首屏条（产品页 / 文档页 / 新闻页共用） ---------- */
.ls-page-hero {
  position: relative;
  padding: 140px 0 32px;
  background: linear-gradient(180deg, var(--ls-accent-soft), rgba(var(--dt-main-rgb, 27, 132, 21), .02) 60%, transparent);
  border-bottom: 1px solid var(--ls-border);
  text-align: center;
}
.ls-page-hero .subtitle {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ls-accent);
  margin-bottom: 10px;
}
.ls-page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--ls-title);
  margin: 0 0 12px;
}
.ls-page-hero .desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ls-text);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 产品选择页 ---------- */
.ls-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  padding: 32px 0 72px;
}
.ls-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(22, 24, 54, .05);
  transition: top .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.ls-product-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ls-accent), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.ls-product-card:hover {
  top: -6px;
  box-shadow: 0 16px 40px rgba(22, 24, 54, .1);
  border-color: rgba(var(--dt-main-rgb, 27, 132, 21), .45);
}
.ls-product-card:hover::before { opacity: 1; }
.ls-product-card .card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ls-product-card .card-head .head-text { min-width: 0; }
.ls-product-card .card-head .icon { flex: none; margin-bottom: 0; }
.ls-product-card .card-head .tagline { margin-bottom: 0; }
.ls-product-card .icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--ls-accent);
  background: var(--ls-accent-soft);
  border-radius: 12px;
  margin-bottom: 18px;
}
.ls-product-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ls-title);
  margin: 0 0 4px;
}
.ls-product-card h2 a { color: var(--ls-title); text-decoration: none; }
.ls-product-card h2 a:hover { color: var(--ls-accent); }
.ls-product-card .tagline {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ls-accent);
  margin-bottom: 14px;
}

.ls-product-card .desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ls-text);
  margin-bottom: 8px;
}
.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ls-accent);
  border-radius: 8px;
  text-decoration: none;
  transition: filter .25s ease, transform .25s ease;
}
.ls-btn:hover, .ls-btn:active, .ls-btn:focus { color: #fff; }
.ls-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ls-status-box {
  padding: 60px 0 80px;
  text-align: center;
  color: var(--ls-text);
}

/* ---------- 搜索结果页 ---------- */
.ls-search { padding-bottom: 20px; }
.ls-search-summary {
  padding: 34px 0 6px;
  margin: 0;
  font-size: 15px;
  color: var(--ls-text);
}
.ls-search-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0 72px;
}
.ls-search-card {
  display: block;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(22, 24, 54, .05);
  text-decoration: none;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.ls-search-card:hover,
.ls-search-card:focus {
  border-color: rgba(var(--dt-main-rgb, 27, 132, 21), .45);
  box-shadow: 0 14px 36px rgba(22, 24, 54, .1);
  transform: translateY(-2px);
}
.ls-search-card .ls-search-type {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--ls-accent);
  background: var(--ls-accent-soft);
  border-radius: 999px;
}
.ls-search-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ls-title);
  transition: color .25s ease;
}
.ls-search-card:hover h2 { color: var(--ls-accent); }
.ls-search-card .context {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ls-text);
  opacity: .75;
}
.ls-search-card .snippet {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ls-text);
}
.ls-search-card mark,
.ls-search-list mark {
  padding: 0 2px;
  background: rgba(var(--dt-main-rgb, 27, 132, 21), .16);
  color: inherit;
  border-radius: 3px;
}

/* ---------- 技术文档页 ---------- */
.docs-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 16px 0 72px;
}
.ls-docbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 120px 0 4px;
}
.ls-docbar .crumb {
  font-size: 13px;
  color: var(--ls-text);
}
.ls-docbar .crumb a { color: var(--ls-accent); text-decoration: none; }
.ls-docbar .prod-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ls-title);
}

/* 左侧目录 */
.ls-docs-sidebar {
  width: 288px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: var(--ls-bg-soft);
  border: 1px solid var(--ls-border);
  border-radius: 12px;
  padding: 14px 10px;
}
.ls-docs-sidebar .side-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ls-accent);
  padding: 4px 10px 12px;
}
.ls-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 16px;
}
.ls-tree > ul { padding-left: 0; }
.ls-tree li {
  position: relative;
  margin: 1px 0;
}
.ls-tree .node-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ls-text);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.ls-tree .node-link:hover { background: rgba(var(--dt-main-rgb, 27, 132, 21), .08); color: var(--ls-title); }
.ls-tree .node-link.active {
  background: var(--ls-accent);
  color: #fff;
  font-weight: 600;
}
.ls-tree .node-link.has-child .caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  font-size: 10px;
  color: inherit;
  opacity: .7;
  transition: transform .25s ease;
}
.ls-tree .node-link.has-child.collapsed .caret { transform: rotate(-90deg); }
.ls-tree .sub { overflow: hidden; }

/* 右侧内容 */
.ls-docs-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 14px;
  padding: 44px 48px 56px;
  box-shadow: 0 6px 24px rgba(22, 24, 54, .04);
}
.ls-docs-content .doc-empty { color: var(--ls-text); padding: 60px 0; text-align: center; }

/* ---------- tiptap 内容渲染（与编辑器输出 schema 对应） ---------- */
.tiptap-content { color: var(--ls-text); font-size: 15px; line-height: 1.9; }
.tiptap-content > :first-child { margin-top: 0; }
.tiptap-content h1, .tiptap-content h2, .tiptap-content h3, .tiptap-content h4 {
  color: var(--ls-title);
  font-weight: 700;
  line-height: 1.35;
  margin: 34px 0 14px;
}
.tiptap-content h1 { font-size: 26px; }
.tiptap-content h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--ls-border); }
.tiptap-content h3 { font-size: 18px; }
.tiptap-content h4 { font-size: 16px; }
.tiptap-content p { margin: 12px 0; }
.tiptap-content a { color: var(--ls-accent); text-decoration: underline; text-underline-offset: 3px; }
.tiptap-content strong { color: var(--ls-title); font-weight: 700; }
.tiptap-content em { color: inherit; font-weight: inherit; font-style: italic; }
.tiptap-content s { color: #9a9aa6; }
.tiptap-content span[style*="color:"] :is(strong, s, a) { color: inherit; }
.tiptap-content mark { background: #fef08a; padding: 2px 5px; border-radius: 4px; }
.tiptap-content sup { font-size: .72em; vertical-align: super; }
.tiptap-content sub { font-size: .72em; vertical-align: sub; }
.tiptap-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .88em;
  background: #e2f4e9;
  color: var(--ls-title);
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-radius: 5px;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}
.tiptap-content pre {
  background: #1e2235;
  color: #e8eaf6;
  border-radius: 10px;
  padding: 0;
  margin: 18px 0;
  overflow: hidden;
}
.tiptap-content pre .code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
}
.tiptap-content pre .code-lang {
  color: rgba(232, 234, 246, 0.45);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 1px;
}
.tiptap-content pre .code-copy {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(232, 234, 246, 0.45);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, border-color .2s;
}
.tiptap-content pre .code-copy:hover {
  color: #e8eaf6;
  border-color: rgba(255,255,255,0.3);
}
.tiptap-content pre .code-copy.copied {
  color: #4ade80;
  border-color: #4ade80;
}
.tiptap-content pre code {
  display: block;
  background: transparent;
  color: inherit;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}
.tiptap-content blockquote {
  margin: 18px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--ls-accent);
  background: #e2f4e9;
  border-radius: 0 10px 10px 0;
  color: var(--ls-title);
}
.tiptap-content blockquote p { margin: 4px 0; }
.tiptap-content blockquote::after {
  font-size: 4.2rem;
  top: 0.2rem;
  right: 1rem;
}
.tiptap-content ul, .tiptap-content ol { margin: 12px 0; padding-left: 26px; }
.tiptap-content ul { list-style: disc; }
.tiptap-content ol { list-style: decimal; }
.tiptap-content li { margin: 6px 0; }
.tiptap-content li::marker { color: var(--ls-accent); font-weight: 600; }
.tiptap-content ul[data-type="taskList"] {
  list-style: none;
  padding-left: 2px;
}
.tiptap-content ul[data-type="taskList"] > li[data-type="taskItem"] {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.tiptap-content ul[data-type="taskList"] label {
  flex-shrink: 0;
}
.tiptap-content ul[data-type="taskList"] input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border: 2px solid #c4c7d8;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}
.tiptap-content ul[data-type="taskList"] input[type="checkbox"]:checked {
  background: var(--ls-accent);
  border-color: var(--ls-accent);
}
.tiptap-content ul[data-type="taskList"] input[type="checkbox"]:checked:before {
  content: none;
}
.tiptap-content ul[data-type="taskList"] input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tiptap-content ul[data-type="taskList"] li[data-checked="false"] > div p { color: #8a8b96; }
.tiptap-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid var(--ls-border);
  border-radius: 10px;
  overflow: hidden;
}
.tiptap-content th, .tiptap-content td {
  border: 0;
  padding: 10px 14px;
  min-width: 80px;
  vertical-align: middle;
  text-align: left;
  position: relative;
}
.tiptap-content th + th, .tiptap-content th + td, .tiptap-content td + th, .tiptap-content td + td { border-left: 1px solid var(--ls-border); }
.tiptap-content tr + tr th, .tiptap-content tr + tr td { border-top: 1px solid var(--ls-border); }
.tiptap-content th {
  background: var(--ls-bg-soft);
  color: var(--ls-title);
  font-weight: 700;
}
.tiptap-content tr:nth-child(even) td { background: rgba(251, 250, 255, .6); }
.tiptap-content img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
}
.tiptap-content hr {
  border: 0;
  height: 1px;
  background: var(--ls-border);
  margin: 26px 0;
}
.tiptap-content .placeholder-empty { color: #b0b2c0; font-style: italic; }

/* ---------- 新闻页 ---------- */
.ls-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  padding: 52px 0 72px;
}
.ls-news-card {
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(22, 24, 54, .05);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.ls-news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(22, 24, 54, .1); }
.ls-news-card .date {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ls-accent);
  margin-bottom: 10px;
}
.ls-news-card h2 { font-size: 18px; color: var(--ls-title); margin: 0 0 10px; line-height: 1.5; }
.ls-news-card h2 a { color: var(--ls-title); text-decoration: none; }
.ls-news-card h2 a:hover { color: var(--ls-accent); }
.ls-news-card .excerpt { flex: 1; font-size: 14px; line-height: 1.8; color: var(--ls-text); margin-bottom: 16px; }
.ls-news-card .more { font-size: 13px; font-weight: 600; color: var(--ls-accent); text-decoration: none; }
.ls-news-card .more:hover { text-decoration: none; }

/* ---------- 新闻详情页 ---------- */
.ls-news-detail-wrap {
  padding: 120px 0 80px;
}
.ls-news-detail {
  max-width: 820px;
  margin: 0 auto;
}
.ls-news-detail .back {
  display: inline-block;

  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ls-accent);
  text-decoration: none;
}
.ls-news-detail .back:hover { text-decoration: none; }
.ls-news-detail .title {
  font-size: 30px;
  line-height: 1.35;
  color: var(--ls-title);
  margin: 0 0 14px;
}
.ls-news-detail .date {
  font-size: 13px;
  color: var(--ls-text);
}
.ls-news-detail .meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ls-text);
}
.ls-news-detail .meta .author {
  font-weight: 600;
  color: var(--ls-accent);
}
.ls-news-detail .body {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--ls-border);
}
/* 新闻正文：顶距收紧、无内边距与分隔线 */
.ls-news-detail .body.news-body {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
/* 新闻正文标题（tiptap h2）弱化配色 */
.ls-news-detail .body.news-body.tiptap-content h2 {
  color: #1e1e2a7a;
}
.ls-news-detail .notfound {
  font-size: 15px;
  color: var(--ls-text);
}

/* ---------- 内容区填满视口（卡片高度不变，仅放大空白至屏幕底部） ---------- */
.ls-products {
  min-height: calc(100vh - 320px);
}
.ls-news {
  min-height: calc(100vh - 320px);
}
.docs-layout {
  min-height: calc(100vh - 136px);
}
#content.site-content.ls-news-detail-main {
  min-height: 100vh;
}


/* about section 标题字号（覆盖 .section-title-two .section-title .title 的 60px） */
.section-title-two .section-title .title.ls-about-title { font-size: 50px; }

/* 手册页：高亮"手册"按钮背景色 */
.ls-manual-active, .ls-manual-active:hover, .ls-manual-active:focus {
  background-color: rgb(44, 182, 36) !important;
  border-color: rgb(44, 182, 36) !important;
}

/* header 透明 absolute 层不拦截点击，避免遮挡页面链接；内部可交互元素恢复点击 */
.header--seven .dt_header-inner { pointer-events: none; }
.header--seven .dt_header-inner .dt_navbar-wrapper,
.header--seven .dt_header-inner .dt_mobilenav { pointer-events: auto; }

/* 详情页 header 常驻固定（CSS 固化，摆脱对页面底部 forceOn 脚本的时序依赖）：
 * forceOn 给 .is--sticky 补 .on 的脚本位于 HTML 尾部，正文内嵌超大 base64 图片时
 * 被长时间阻塞，期间 header 停在文档流内。详情页本就要求 header 常驻固定
 * （AGENTS.md），此处无论 .on 与否一律固定；背景与 theme-extra.css 的
 * .header--seven .dt_navbar-wrapper.on 保持一致（rgba(0,0,0,0.6) 半透明黑底）；
 * docs.css 不被首页加载，首页动画行为不受影响。
 * 移动端保持 menu.css 的绿底（.dt_mobilenav 自带背景色）。 */
.dt_header .dt_navbar-wrapper.is--sticky,
.dt_header .dt_navbar-wrapper.is--sticky.on,
.dt_mobilenav.is--sticky,
.dt_mobilenav.is--sticky.on {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  z-index: 99999;
  box-shadow: 0px 24px 64px 0px rgba(199, 206, 218, 0.25);
  animation: none;
}
.dt_header .dt_navbar-wrapper.is--sticky,
.dt_header .dt_navbar-wrapper.is--sticky.on {
  background: rgba(0, 0, 0, 0.6);
  padding: 0 0;
}

/* 禁用首页专属的圆角导航条（theme-extra.css :not(.on) 态的 :before 圆角块）：
 * 首页未滚动时导航是浮在 hero 上的圆角半透明白条，属首页专属形态；
 * 内容页常驻固定为半透明黑底无圆角。大正文详情页加载中 forceOn 尚未给
 * .is--sticky 加 .on，:not(.on) 圆角块会短暂叠现，此处于内容页无条件禁用
 * （含 SSR 骨架阶段，骨架亦无 .on）。
 * docs.css 不被首页加载，首页圆角形态不受影响；移动端 .dt_mobilenav 绿底自带背景。 */
.header--seven .dt_header-inner .dt_header-navwrapper .dt_navbar-wrapper:not(.on) > .dt-container .dt-row:before {
  content: none;
}

/* 移动端菜单"手册"入口：位于产品行下方、左对齐、高度与产品行一致 */
.dt_mobilenav-mainmenu-inner .ls-mobile-manual {
  text-align: left;
}
.dt_mobilenav-mainmenu-inner .ls-mobile-manual .nav-link {
  display: block;
  width: 100%;
  padding: 0 0 0 1.5rem;
  line-height: 4.3rem;
  border-radius: 0;
  text-align: left;
  text-decoration: none;
}
/* 移动端菜单：当前启用（active）行背景设为浅绿 */
.dt_mobilenav-mainmenu-inner .dt_navbar-mainmenu>li.active>a,
.dt_mobilenav-mainmenu-inner .ls-mobile-manual.active .nav-link {
  background: #e6f7e6;
  color: #1f7a1f;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .ls-docbar { padding: 20px 0 4px; }
  .docs-layout { flex-direction: column; align-items: stretch; padding: 8px 0 72px; }
  .ls-docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    order: 2;
  }
  .ls-docs-content { width: 100%; padding: 30px 22px 40px; order: 1; }
  .tiptap-content img { height: auto !important; }
  .tiptap-content pre code {
    overflow-x: visible;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }
}
@media (max-width: 575px) {
  .ls-page-hero { padding: 110px 0 44px; }
  .ls-products-grid, .ls-news-grid { grid-template-columns: 1fr; }
}
/* 手册页加载过场：静态占位于正文区，慢加载 600ms 后淡入，快加载时不闪现 */
.ls-spec-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; min-height: 42vh; padding: 60px 0;
  opacity: 0; animation: ls-spec-fade-in .4s ease .6s forwards;
}
.ls-products-grid .ls-spec-loading { grid-column: 1 / -1; }
.ls-spec-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--dt-main-color);
  animation: ls-spec-spin 1s infinite linear;
}
.ls-spec-loading-text {
  font-size: 15px; color: #666a73; letter-spacing: .5px;
}
@keyframes ls-spec-fade-in { to { opacity: 1; } }
@keyframes ls-spec-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ls-spec-spinner { animation-duration: 1.6s; }
}