/* 轨迹助手下载站 — 手绘涂鸦视觉:暖纸底、虚线描边、马克笔三色点缀 */

:root {
  --paper: #f6f0e3;
  --paper-deep: #efe7d3;
  --ink: #2c2620;
  --ink-soft: #5a5044;
  --coral: #e2604c;
  --teal: #2f7f76;
  --yellow: #e3b23c;
  --line: rgba(44, 38, 32, 0.14);
  --rule-gap: 28px;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--rule-gap) - 1px),
    var(--line) calc(var(--rule-gap) - 1px),
    var(--line) var(--rule-gap)
  );
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px dashed var(--coral);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: var(--paper-deep);
  padding: 1px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.muted { color: var(--ink-soft); font-size: 0.9em; }

/* ---------- 顶部品牌 ---------- */
.site-header {
  border-bottom: 2px dashed var(--line);
  background: rgba(246, 240, 227, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  color: var(--teal);
  display: inline-flex;
  border: 2px dashed var(--teal);
  border-radius: 8px;
  padding: 6px;
  transform: rotate(-2deg);
}

.brand-text h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.tagline {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
  line-height: 1.4;
}

.badge {
  font-size: 12px;
  padding: 3px 10px;
  border: 2px dashed currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-coral { color: var(--coral); }

/* ---------- 主视觉 ---------- */
.hero { padding: 28px 0 8px; }

.hero-scene {
  position: relative;
  border: 2px dashed var(--ink-soft);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 8px;
}

.hero-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 胶带装饰 */
.tape-top::before,
.tape-corner::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 26px;
  background: rgba(227, 178, 60, 0.4);
  border-left: 1px dashed rgba(44, 38, 32, 0.25);
  border-right: 1px dashed rgba(44, 38, 32, 0.25);
  z-index: 2;
}

.tape-top::before {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.tape-corner { position: relative; }
.tape-corner::after {
  top: -12px;
  right: 24px;
  transform: rotate(4deg);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.link-quiet { font-size: 14px; }

/* ---------- 手绘感按钮 ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 34px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--coral);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover { text-decoration: none; box-shadow: 4px 4px 0 var(--teal); }

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--coral);
}

.btn-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.btn-small {
  flex-direction: row;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--teal);
}

.btn-small:active { box-shadow: 1px 1px 0 var(--teal); }

/* ---------- 区块与卡片 ---------- */
.section { padding: 34px 0 4px; }

.section-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-block;
  border-bottom: 4px solid var(--yellow);
  line-height: 1.5;
}

.card {
  background: rgba(255, 252, 245, 0.75);
  border: 2px dashed var(--ink-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.feature-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  border: 2px dashed currentColor;
  border-radius: 8px;
  transform: rotate(-2deg);
}

.feature:nth-child(2) .feature-icon { color: var(--coral); transform: rotate(2deg); }
.feature:nth-child(3) .feature-icon { color: var(--yellow); transform: rotate(1deg); }
.feature:nth-child(4) .feature-icon { color: var(--teal); transform: rotate(-1deg); }

.feature-icon svg { width: 22px; height: 22px; }

/* ---------- 版本信息 ---------- */
.version-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.version-list > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.version-list dt {
  flex: 0 0 5.5em;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
}

.version-list dd { margin: 0; }

.sha-details { margin-top: 14px; }

.sha-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.sha-details summary::before {
  content: "▸ ";
  color: var(--coral);
}

.sha-details[open] summary::before { content: "▾ "; }

.sha-body {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------- 列表 ---------- */
.notes-list, .steps-list {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 10px;
}

.steps-list li::marker { color: var(--coral); font-weight: 800; }
.notes-list li::marker { color: var(--teal); }

.card-foot { margin: 14px 0 0; }

/* ---------- 底部 ---------- */
.final-cta {
  text-align: center;
  padding-bottom: 30px;
}

.site-footer {
  border-top: 2px dashed var(--line);
  padding: 20px 0 34px;
  text-align: center;
  font-size: 14px;
}

.site-footer p { margin: 4px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-text h1 { font-size: 22px; }
  .grid-4 { grid-template-columns: 1fr; }
  .version-list > div { flex-direction: column; gap: 2px; }
  .btn { width: 100%; max-width: 340px; }
  .section-title { font-size: 20px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; box-shadow: 4px 4px 0 var(--coral); }
  .brand-mark, .feature-icon, .tape-top::before, .tape-corner::after { transform: none; }
}
