/* ============================================================
   LogSpider 下载页 — 卷宗冷纸 + 品牌蓝
   ============================================================ */
:root {
  --paper: #F5F7FB;
  --card:  #FFFFFF;
  --ink:   #17233D;
  --ink-2: #4A5878;
  --brand: #2E5BE6;
  --brand-deep: #1B3FA0;
  --line:  #DCE3EF;
  --ok:    #1F9D55;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--ink-2);
}

a { color: var(--brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 顶栏 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { width: 30px; height: 30px; display: block; }
.logo-word { font-weight: 700; font-size: 18px; letter-spacing: 0.2px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
}
.site-nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  z-index: 1;
}
.hero-lead {
  font-size: 15px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-meta code { font-size: 13px; color: var(--ink-2); }

/* 页面加载编排入场：只此一处 */
.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }
.hero-term { opacity: 0; animation: rise 0.6s ease 0.5s forwards; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* 终端窗 */
.hero-term {
  background: #10192E;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(23, 35, 61, 0.22);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
}
.term-bar i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.term-bar span {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.term-body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  color: #D7E0F5;
  padding: 18px 20px 22px;
  min-height: 172px;
  white-space: pre-wrap;
  word-break: break-all;
}
.t-prompt { color: #7FA3FF; }
.t-caret { color: #7FA3FF; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-out { color: #B9C6E4; }
.t-ok { color: #4CC98A; }

/* 7×24 热力暗纹（产品报告里的图，做背景彩蛋） */
.heat {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 5px;
  padding: 28px 20px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 78% 88% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 88% at 50% 0%, #000 30%, transparent 78%);
}
.heat i {
  border-radius: 3px;
  background: var(--brand);
  opacity: 0.05;
  transition: opacity 0.9s ease;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-ghost:hover { background: rgba(46, 91, 230, 0.08); }

/* ---------- 下载区 ---------- */
.dl { padding: 72px 0 64px; }
.dl h2, .feat h2, .showcase h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 10px;
}
.dl-sub {
  color: var(--ink-2);
  max-width: 46em;
  margin-bottom: 36px;
}
.dl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.dl-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px 30px;
}
/* 卷宗色脊：核心（命令行）用品牌蓝，外壳（界面）用墨色 */
.dl-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, #33415E, #17233D);
}
.dl-card-cli::before { background: linear-gradient(180deg, #4C79F0, #2B50D8); }

.dl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}.dl-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dl-file code { font-size: 14px; color: var(--ink); font-weight: 600; }
.dl-ver code { font-size: 13px; display: block; margin-top: 3px; }
.dl-desc { color: var(--ink-2); margin-bottom: 18px; max-width: 42em; }
.dl-desc code { background: rgba(46, 91, 230, 0.07); padding: 1px 5px; border-radius: 4px; }

.dl-shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.dl-shot img, .showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.dl-shot:hover img { transform: scale(1.01); }
.dl-shot img { transition: transform 0.25s ease; }

.cli-sample {
  background: #10192E;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.cli-sample code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.1;
  color: #D7E0F5;
  white-space: pre;
}
.c-prompt { color: #7FA3FF; }
.c-rem { color: #6B7CA6; }

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.copy-link {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copy-link:hover { color: var(--brand); }

/* ---------- 功能 ---------- */
.feat {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 26px;
}
.feat-list li {
  border-top: 2px solid var(--ink);
  padding: 18px 0 26px;
}
.feat-list h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-list p { color: var(--ink-2); font-size: 15px; max-width: 40em; }

/* ---------- 报告示例 ---------- */
.showcase { padding: 64px 0 80px; border-top: 1px solid var(--line); }
.showcase-shot {
  display: block;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(23, 35, 61, 0.12);
}

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--card);
}
.site-foot-in {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .dl-cards { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-term { opacity: 1; transform: none; animation: none; }
  .t-caret { animation: none; }
  .dl-shot img, .dl-shot:hover img { transition: none; transform: none; }
}
