/* 产品帮助中心 — 共享样式（OSS 静态托管，无构建步骤） */
:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #1a1d21;
  --muted: #5c6370;
  --border: #e4e6eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: ui-sans-serif, system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --content-max: 52rem;
  /* 帮助正文排版 */
  --doc-title-size: clamp(1.375rem, 2.4vw, 1.8rem);
  --doc-h2-size: 1.3125rem;
  --doc-h3-size: 1.125rem;
  --doc-lead-size: 1.125rem;
  --doc-body-size: 1.0625rem;
  --doc-line-tight: 1.65;
  --doc-line-read: 1.82;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--surface);
}
.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.site-header__inner--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.site-title a {
  color: var(--text);
  text-decoration: none;
}
.site-title a:hover {
  color: var(--accent);
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

.layout {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: #c6cad3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.doc-article h1 {
  font-size: var(--doc-title-size);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: var(--doc-line-tight);
  color: #111418;
}

.doc-article h2 {
  font-size: var(--doc-h2-size);
  font-weight: 600;
  margin: 1.85rem 0 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  line-height: var(--doc-line-tight);
  color: #1a1d21;
}
.doc-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.35rem;
}

.doc-article h3 {
  font-size: var(--doc-h3-size);
  font-weight: 600;
  margin: 1.35rem 0 0.45rem;
  line-height: var(--doc-line-tight);
  color: #1e2329;
}

.doc-article p,
.doc-article li {
  color: #2d3339;
}

.doc-article p {
  font-size: var(--doc-body-size);
  line-height: var(--doc-line-read);
  margin: 0 0 1.125rem;
}

.doc-article p:last-child {
  margin-bottom: 0;
}

.doc-article .lead {
  font-size: var(--doc-lead-size);
  line-height: 1.72;
  color: #464c55;
  margin: 0 0 1.35rem;
}

.doc-article li {
  font-size: var(--doc-body-size);
  line-height: var(--doc-line-read);
  margin: 0.4rem 0;
}

.doc-article ul,
.doc-article ol {
  padding-left: 1.35rem;
  margin: 0.5rem 0 1rem;
}

.doc-article > ul:last-child,
.doc-article > ol:last-child {
  margin-bottom: 0;
}

.doc-article code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #eef0f4;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.doc-article pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
}
.doc-article pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.toc {
  background: #f0f4ff;
  border: 1px solid #c7d7fe;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.toc strong {
  display: block;
  margin-bottom: 0.35rem;
}
.toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-list li {
  border-bottom: 1px solid var(--border);
}
.article-list li:last-child {
  border-bottom: none;
}
.article-list a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text);
  text-decoration: none;
}
.article-list a:hover {
  color: var(--accent);
}
.article-list .desc {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.article-list-heading {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.doc-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.doc-note strong {
  display: inline;
  margin-right: 0.35rem;
}

.doc-figure {
  margin: 1rem 0;
}
.doc-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.doc-figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.doc-table th,
.doc-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  text-align: left;
}
.doc-table thead th {
  background: #e8eaef;
  font-weight: 600;
}
.doc-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

/* 规格与定价：版本对照表（多列表头 + 模块列合并） */
.doc-table.spec-table {
  font-size: 0.875rem;
}
.spec-table thead tr:first-child th {
  text-align: center;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #3d4f6f 0%, #344560 100%);
  color: #fff;
  border-color: #2f3f58;
}
.spec-table thead tr:nth-child(2) th {
  text-align: center;
  vertical-align: middle;
  padding: 0.55rem 0.65rem;
  background: #e4e9f2;
  color: var(--text);
  border-color: #cdd4e2;
}
.spec-table .spec-table__module {
  width: 6.5rem;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  background: #edf1f8;
  color: #1e293b;
  border-color: #d7dee9;
}
.spec-table tbody th[scope="row"] {
  font-weight: 500;
  text-align: left;
  background: var(--surface);
  color: #334155;
  border-color: var(--border);
}
.spec-table td {
  text-align: center;
  vertical-align: middle;
}
.spec-table tbody tr:nth-child(even) td,
.spec-table tbody tr:nth-child(even) th[scope="row"] {
  background: #f8fafc;
}
.spec-table tbody tr:nth-child(odd) th[scope="row"] {
  background: var(--surface);
}
.spec-table__mark {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
}

.doc-article-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.doc-directory {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
}
.doc-directory strong {
  display: block;
  margin-bottom: 0.4rem;
}
.doc-directory ol {
  margin: 0;
  padding-left: 1.35rem;
}

.chanpin-lead {
  margin-bottom: 1.5rem;
}

/* 内容页顶部：多级路径（可点击回跳到各级入口），替代底部返回链 */
.page-path {
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding: 0.6rem 0.9rem;
  background: #f3f5f8;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 0.2rem 0.15rem;
}
.page-path a {
  color: #3b6fd9;
  text-decoration: none;
  font-weight: 500;
}
.page-path a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}
.page-path__sep {
  color: #c5cad4;
  user-select: none;
  font-weight: 400;
  margin: 0 0.15rem;
}
.page-path__here {
  color: #374151;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* 一级展开展示二级的目录树（云·速成美站首页等） */
.toc-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-tree__branch {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.toc-tree__branch:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.toc-tree__l1 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.45rem;
}
.toc-tree__l1 a {
  color: var(--text);
  text-decoration: none;
}
.toc-tree__l1 a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.toc-tree__hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
  font-weight: 400;
}
.toc-tree__group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.85rem 0 0.25rem;
  letter-spacing: 0.02em;
}
.toc-tree__l2 + .toc-tree__group-title {
  margin-top: 1rem;
}
.toc-tree__l2 {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid #c7d7fe;
}
.toc-tree__l2 li {
  margin: 0.4rem 0;
}
.toc-tree__l2 a {
  font-size: 0.95rem;
  font-weight: 500;
}
.toc-tree__l2-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}
.toc-tree__single {
  display: block;
  padding: 0.15rem 0;
  text-decoration: none;
  color: inherit;
}
.toc-tree__single:hover .toc-tree__l1 {
  color: var(--accent);
}
.toc-tree__single .toc-tree__l1 {
  display: block;
}
.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* 产品优势页：分块模块（标题 + 正文区域区分） */
.advantage-page .lead {
  margin-bottom: 0.25rem;
  line-height: var(--doc-line-read);
  max-width: 42rem;
}

.doc-article.advantage-page {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
}

.advantage-sections {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.advantage-block {
  margin: 0;
  padding: 1.4rem 1.35rem 1.45rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--adv-bg-top, #f8fafc) 0%, var(--surface) 52%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border-left: 4px solid var(--adv-accent, var(--accent));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantage-block--feature {
  --adv-accent: #2563eb;
  --adv-bg-top: #eff6ff;
}

.advantage-block--scene {
  --adv-accent: #059669;
  --adv-bg-top: #ecfdf5;
}

.advantage-block--security {
  --adv-accent: #c2410c;
  --adv-bg-top: #fff7ed;
}

.advantage-block__head {
  min-width: 0;
}

.doc-article .advantage-block .advantage-block__title {
  margin: 0;
  font-size: clamp(1.0625rem, 2.1vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: var(--doc-line-tight);
  color: #111418;
  border-top: none;
  padding-top: 0;
}

.advantage-block__body {
  padding-left: 0.15rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.55);
  padding-top: 1rem;
}

.doc-article .advantage-block__body p {
  margin: 0;
  font-size: var(--doc-body-size);
  line-height: var(--doc-line-read);
  color: #2d3339;
  text-align: justify;
  text-justify: inter-ideograph;
}

@media (max-width: 520px) {
  .advantage-block {
    padding: 1.15rem 1rem 1.25rem;
  }
  .advantage-block__body {
    padding-left: 0;
  }
}

footer.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
