@charset "utf-8";

/* =========================================================
   SigmaPlot 中文官网 — 公共样式 common.css
   说明：全站统一变量、排版、导航、页脚、按钮与通用组件
   主题：浅色 / 品牌色 #008061
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #008061;
  --brand-dark: #006b51;
  --brand-light: #e6f4ef;
  --brand-soft: #f2f9f6;
  --ink: #1a2b27;
  --ink-soft: #4a5d58;
  --ink-muted: #7d8e89;
  --line: #e4ebe8;
  --bg: #ffffff;
  --bg-alt: #f7faf9;
  --white: #ffffff;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(0, 64, 48, 0.06);
  --shadow-m: 0 12px 34px rgba(0, 64, 48, 0.10);
  --shadow-brand: 0 12px 28px rgba(0, 128, 97, 0.28);
  --maxw: 1200px;
  --nav-h: 76px;
  --font: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", "Segoe UI", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 700; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* =========================================================
   导航 header 样式（与 nav.js 配合）
   ========================================================= */
/* 让注入容器不形成包含块，避免 sticky 失效 */
#site-nav { display: contents; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
/* 顶部品牌渐变细线，增添设计感 */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #1fb98a 45%, var(--brand-dark) 100%);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* 品牌：logo 置于柔和方形托盘中 */
.nav-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(150deg, var(--brand-soft), #ffffff);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-s);
}
.nav-logo img { height: 48px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .01em;
}
.nav-brand-name::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.nav-brand-sub { font-size: 11.5px; color: var(--ink-muted); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

/* 主菜单：下划线滑动指示器 + 下拉面板，摒弃胶囊背景 */
.nav-menu { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
}
.nav-link:hover, .nav-link.current { color: var(--brand); }
.nav-link:hover::after, .nav-link.current::after { transform: scaleX(1); }
.nav-chevron { width: 15px; height: 15px; transition: transform .22s ease; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* 下拉面板 */
.nav-sub {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1200;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub-link { display: block; padding: 11px 14px; border-radius: var(--radius-s); transition: background .15s ease; }
.nav-sub-link:hover { background: var(--brand-soft); }
.nav-sub-t { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nav-sub-link:hover .nav-sub-t { color: var(--brand); }
.nav-sub-link.current .nav-sub-t { color: var(--brand); }
.nav-sub-d { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

/* 操作区：与菜单以细分隔线区隔 */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions::before {
  content: "";
  width: 1px;
  height: 26px;
  background: var(--line);
  margin-right: 4px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉菜单 */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-drawer.is-open { pointer-events: auto; opacity: 1; }
.nav-drawer-mask { position: absolute; inset: 0; background: rgba(10, 30, 25, 0.45); }
.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82vw, 360px);
  background: var(--white);
  box-shadow: -18px 0 50px rgba(0, 40, 30, 0.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nav-drawer-title { font-weight: 800; font-size: 18px; color: var(--brand); }
.nav-drawer-close { width: 40px; height: 40px; border: none; background: var(--brand-soft); border-radius: var(--radius-s); font-size: 22px; color: var(--ink); cursor: pointer; line-height: 1; }
.nav-drawer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.nav-drawer-links > * { flex: none; }
/* 单项链接（首页 / 价格） */
.nav-drawer-solo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-radius: var(--radius-m);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-alt);
  transition: background .15s ease, color .15s ease;
}
.nav-drawer-solo:hover, .nav-drawer-solo.current { background: var(--brand-light); color: var(--brand); }
.nav-drawer-solo .arr { color: var(--brand); font-size: 18px; }
/* 手风琴分组 */
.nav-drawer-group { border-radius: var(--radius-m); background: var(--bg-alt); overflow: hidden; }
.nav-drawer-acc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-drawer-acc .nav-chevron { width: 18px; height: 18px; color: var(--brand); transition: transform .25s ease; }
.nav-drawer-group.is-open .nav-drawer-acc { color: var(--brand); }
.nav-drawer-group.is-open .nav-drawer-acc .nav-chevron { transform: rotate(180deg); }
.nav-drawer-sub { overflow: hidden; max-height: 0; padding: 0 8px; transition: max-height .3s ease; }
.nav-drawer-group.is-open .nav-drawer-sub { max-height: 520px; }
.nav-drawer-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  transition: color .15s ease, padding .15s ease;
}
.nav-drawer-group.is-open .nav-drawer-sub { padding-bottom: 8px; }
.nav-drawer-sub a:hover, .nav-drawer-sub a.current { color: var(--brand); padding-left: 18px; }
.nav-drawer-sub a .arr { color: var(--brand); font-size: 16px; }
.nav-drawer-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 22px; }
.nav-drawer-actions .btn { width: 100%; justify-content: center; }

/* =========================================================
   页脚 footer 样式（与 footer.js 配合）
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, #0c2620 0%, #08201b 100%);
  color: #cfe0da;
  /* 不设顶部外边距：所有页面均以 .section 或 .doc-layout 收尾，二者自带 80px 底部内边距，避免间距叠加 */
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 60px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand-name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
.footer-brand-sub { font-size: 13px; color: #8fb3a8; margin-top: 2px; }
.footer-note { font-size: 14px; color: #9fbcb2; max-width: 520px; line-height: 1.85; }
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.footer-contact-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #d6e6e0; }
.footer-contact-item svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  font-size: 13px;
  color: #7fa097;
}

/* =========================================================
   通用区块 / 页面排版工具
   ========================================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); margin-bottom: 16px; }
.section-lead { font-size: 17px; color: var(--ink-soft); max-width: 760px; }

/* =========================================================
   文档/指南页 通用样式（installation / licensing / network 等复用）
   ========================================================= */
.doc-hero { background: linear-gradient(150deg, var(--brand-soft) 0%, #ffffff 70%); border-bottom: 1px solid var(--line); padding: 46px 0 40px; }
.doc-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-muted); margin-bottom: 16px; flex-wrap: wrap; }
.doc-breadcrumb a:hover { color: var(--brand); }
.doc-breadcrumb span { color: var(--line); }
.doc-hero h1 { font-size: clamp(26px, 4vw, 38px); color: var(--ink); margin-bottom: 12px; }
.doc-hero p { font-size: 16px; color: var(--ink-soft); max-width: 720px; margin: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--radius-s); }
.doc-meta svg { width: 15px; height: 15px; }

.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding: 50px 0 80px; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.doc-toc-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.doc-toc a { display: block; padding: 8px 14px; font-size: 14px; color: var(--ink-soft); border-left: 2px solid transparent; margin-left: -2px; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.doc-toc a:hover { color: var(--brand); }
.doc-toc a.active { color: var(--brand); font-weight: 600; border-left-color: var(--brand); background: var(--brand-soft); }

.doc-main { min-width: 0; }
.doc-section { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc-main > .doc-section:last-child { margin-bottom: 0; }
.doc-section > h2 { font-size: clamp(22px, 3vw, 28px); color: var(--ink); padding-bottom: 12px; margin-bottom: 24px; border-bottom: 2px solid var(--brand-light); }
.doc-section > h3 { font-size: 19px; color: var(--ink); margin: 30px 0 14px; }
.doc-section p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 16px; }
.doc-lead { font-size: 16px; color: var(--ink-soft); }

/* 步骤列表 */
.doc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.doc-step { counter-increment: step; position: relative; padding: 26px 28px 26px 70px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.doc-step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 26px; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.doc-step h4 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.doc-step p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }
.doc-step p:last-child { margin-bottom: 0; }

/* 截图框 */
.doc-shot { margin: 14px 0 0; border-radius: var(--radius-m); padding: 16px; background: linear-gradient(150deg, var(--brand-light), var(--brand-soft)); border: 1px solid var(--line); }
.doc-shot img { width: 100%; display: block; border-radius: var(--radius-s); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.doc-shot figcaption { font-size: 13px; color: var(--ink-muted); text-align: center; margin-top: 10px; }

/* 提示框 */
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-m); margin: 24px 0 20px; font-size: 14.5px; line-height: 1.7; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.callout-note { background: var(--brand-soft); border: 1px solid var(--brand-light); color: var(--ink-soft); }
.callout-note svg { color: var(--brand); }
.callout-warn { background: #fff6ec; border: 1px solid #f6dcb8; color: #7a5320; }
.callout-warn svg { color: #d6911f; }
.callout strong { color: var(--ink); }

/* 内联列表 */
.doc-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.doc-list li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }

/* 代码/命令 */
.doc-code { display: block; background: #0c2620; color: #d7f0e7; font-family: "Consolas", "Monaco", monospace; font-size: 14px; padding: 14px 18px; border-radius: var(--radius-s); margin: 0 0 16px; overflow-x: auto; }
code.inline { background: var(--brand-light); color: var(--brand-dark); padding: 2px 7px; border-radius: 5px; font-family: "Consolas", "Monaco", monospace; font-size: 13.5px; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 30px; }
  .doc-toc { position: static; margin-bottom: 36px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
  .doc-toc ul { border-left: none; }
  .doc-step { padding: 22px 20px 22px 20px; }
  .doc-step::before { position: static; margin-bottom: 12px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-actions .btn { display: none; }
  .nav-actions::before { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 34px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .nav-brand-sub { display: none; }
}
