/* DeepPath Knowledge 产品站样式 */
:root {
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --gradient-primary: linear-gradient(135deg, #0f172a, #0284c7);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --header-height: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--color-text); }
.brand-logo { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--color-text-secondary); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--color-text); }
.nav-github { color: var(--color-text) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38); }
.btn-outline { border-color: var(--color-border); color: var(--color-text) !important; background: #fff; }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary) !important; }

/* Hero */
.hero {
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(2, 132, 199, 0.10), transparent),
    var(--color-bg);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: 44px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 20px; }
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--color-text-secondary);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; }
.hero-shot { max-width: 880px; margin: 0 auto; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--color-text-muted); }
.feature-shot { max-width: 880px; margin: 40px auto 0; }
.feature-note { text-align: center; margin-top: 12px; font-size: 14px; color: var(--color-text-muted); }

.browser-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.browser-frame img { display: block; width: 100%; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: 32px; text-align: center; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--color-text-secondary); max-width: 640px; margin: 0 auto 48px; }

/* Feature cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--color-text-secondary); }
.card-wide {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0f9ff, #f0fdfa);
  border-color: #bae6fd;
}
.card-wide .card-icon { margin-bottom: 0; }

/* Scenarios */
.scenario-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.scenario {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.scenario h3 { font-size: 16px; margin-bottom: 6px; }
.scenario-materials { font-size: 13px; color: var(--color-primary); font-weight: 600; margin-bottom: 8px; }
.scenario p:last-child { font-size: 14px; color: var(--color-text-secondary); }

/* Download */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.download-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.download-card.recommended { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
.download-os { font-size: 18px; font-weight: 700; }
.download-arch { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.checksum-link { font-size: 12.5px; color: var(--color-text-muted); }
.recommend-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}
.download-meta { text-align: center; margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }

.requirements {
  margin-top: 48px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.requirements h3 { font-size: 17px; margin-bottom: 12px; }
.requirements ul { padding-left: 22px; color: var(--color-text-secondary); font-size: 14.5px; }
.requirements li { margin-bottom: 4px; }

.quick-steps { margin-top: 32px; text-align: center; }
.quick-steps h3 { font-size: 17px; margin-bottom: 16px; }
.quick-steps ol {
  display: inline-block;
  text-align: left;
  padding-left: 22px;
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}
.quick-steps li { margin-bottom: 6px; }
.quick-steps code {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13.5px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 48px 0 32px; background: var(--color-bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-inner p { font-size: 13.5px; color: var(--color-text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--color-text-secondary); }
.footer-copy { margin-top: 24px; font-size: 13px; color: var(--color-text-muted); }

/* 安装手册页（guide.html） */
.guide-main { max-width: 820px; margin: 0 auto; padding: 56px 24px 88px; }
.prose h1 { font-size: 32px; margin-bottom: 24px; letter-spacing: -0.01em; }
.prose h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 18px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--color-text-secondary); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 26px; color: var(--color-text-secondary); }
.prose li { margin-bottom: 6px; }
.prose li > ul, .prose li > ol { margin-top: 6px; margin-bottom: 0; }
.prose strong { color: var(--color-text); }
.prose code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; }
.prose img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 20px auto;
  display: block;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14.5px;
}
.prose th, .prose td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}
.prose th { background: var(--color-bg-alt); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--color-primary);
  background: #f0f9ff;
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}
.prose blockquote p { margin-bottom: 0; }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 40px 0; }

/* 响应式 */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav a:nth-child(2) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section { padding: 56px 0; }
  .card-wide { flex-direction: column; }
}
