/* ===================================================================
   狗急加速器：官方客户端下载 - 对标 zh.dockerpc.com 技术文档站风格
   =================================================================== */

:root {
  --docs-primary: #0284C7;
  --docs-primary-hover: #0369A1;
  --docs-bg: #FFFFFF;
  --docs-sidebar: #F8FAFC;
  --docs-border: #E2E8F0;
  --docs-text: #0F172A;
  --docs-muted: #64748B;
  --docs-code-bg: #0F172A;
  --docs-radius: 8px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--docs-bg);
  color: var(--docs-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--docs-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

/* ===================================================================
   紧凑顶栏 (header.docs-header 60px 对标 zh.dockerpc.com)
   =================================================================== */
header.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--docs-border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.docs-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--docs-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.docs-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--docs-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.docs-logo-tag {
  font-size: 12px;
  color: var(--docs-muted);
  font-weight: 500;
}

.docs-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 14.5px;
}
.docs-nav-links a {
  color: var(--docs-muted);
  font-weight: 500;
}
.docs-nav-links a:hover, .docs-nav-links a.active {
  color: var(--docs-primary);
  font-weight: 600;
  text-decoration: none;
}

.btn-docs-header {
  background: var(--docs-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-docs-header:hover {
  background: var(--docs-primary-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ===================================================================
   三栏布局骨架 (.docs-layout 260px / minmax / 220px 对标 zh.dockerpc.com)
   =================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

/* 左侧固定导航栏 */
.docs-sidebar-left {
  background: var(--docs-sidebar);
  border-right: 1px solid var(--docs-border);
  padding: 24px 16px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  font-size: 14px;
}
.sidebar-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  margin: 18px 0 8px;
  letter-spacing: 0.05em;
}
.sidebar-group-title:first-child {
  margin-top: 0;
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu li {
  margin-bottom: 4px;
}
.sidebar-menu a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--docs-muted);
  font-weight: 500;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: #E0F2FE;
  color: #0284C7;
  text-decoration: none;
  font-weight: 600;
}

/* 中央主内容区 */
.docs-main-content {
  padding: 38px 48px;
  max-width: 860px;
}
.docs-h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--docs-text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.docs-lead {
  font-size: 15.5px;
  color: var(--docs-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.docs-h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--docs-text);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
  scroll-margin-top: 80px;
}
.docs-p {
  font-size: 15px;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* 核心原理解析提示盒 (.callout-box) */
.callout-box {
  background: #F0F9FF;
  border-left: 4px solid var(--docs-primary);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
  color: #0369A1;
  line-height: 1.65;
}

/* 深色代码块 (.docs-code) */
.docs-code {
  background: var(--docs-code-bg);
  color: #38BDF8;
  padding: 18px 20px;
  border-radius: var(--docs-radius);
  font-family: var(--font-mono);
  font-size: 13.5px;
  margin: 18px 0;
  overflow-x: auto;
  line-height: 1.6;
}

/* 右侧本页目录 (.docs-toc-right) */
.docs-toc-right {
  padding: 24px 16px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  font-size: 13px;
  color: var(--docs-muted);
  border-left: 1px solid #F1F5F9;
}
.toc-title {
  font-weight: 700;
  color: var(--docs-text);
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc-list {
  list-style: none;
}
.toc-list li {
  margin-bottom: 10px;
}
.toc-list a {
  color: var(--docs-muted);
}
.toc-list a:hover {
  color: var(--docs-primary);
  text-decoration: none;
}

/* ===================================================================
   下载页独有流式卡片 (.flow-step-card 对标 zh.dockerpc.com/download.html)
   =================================================================== */
.flow-step-card {
  background: #FFFFFF;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.flow-step-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #0284C7;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.flow-download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.flow-dl-item {
  background: #F8FAFC;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.flow-dl-item:hover {
  border-color: var(--docs-primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.dl-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--docs-text);
}
.dl-desc {
  font-size: 12px;
  color: var(--docs-muted);
}

/* ===================================================================
   页脚 (footer.docs-footer 对标 zh.dockerpc.com)
   =================================================================== */
footer.docs-footer {
  border-top: 1px solid var(--docs-border);
  background: #F8FAFC;
  padding: 35px 0 25px;
  font-size: 13px;
  color: var(--docs-muted);
}
.docs-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* 浮动右侧快速工具 */
.floating-side-bar {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--docs-text);
  border: 1px solid var(--docs-border);
  transition: all 0.2s ease;
}
.float-btn:hover {
  transform: translateY(-2px);
  background: var(--docs-primary);
  color: #ffffff;
  border-color: var(--docs-primary);
}
.float-btn.active-dl {
  background: var(--docs-primary);
  color: #ffffff;
}

/* 响应式断点 */
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .docs-toc-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar-left {
    display: none;
  }
  .docs-main-content {
    padding: 24px;
  }
  .flow-download-grid {
    grid-template-columns: 1fr;
  }
  .docs-nav-links {
    display: none;
  }
}
