/* teleskopizapiski — 独立版式（对照源站 in-the-sky.org 的「密集索引 + 数据条」观感重建）
   页头：深色夜蓝条 + 左品牌 + 横排紧凑导航
   首页：编号密集索引行 + 分类瓦片
   卡片：紧凑横行（编号 / 标题 / 摘要） */

:root {
  --ink: #16202e;
  --ink-soft: #45566b;
  --navy: #0e1a2b;
  --navy-soft: #1d2f47;
  --paper: #f7f6f2;
  --paper-2: #efece4;
  --line: #d8d3c7;
  --amber: #b4622c;
  --amber-soft: #f0e0d2;
  --radius: 3px;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 40;
}
.skip-link:focus { left: 8px; top: 8px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin: 0 0 .5em; }
h2 { font-size: 1.42rem; margin: 2.2em 0 .7em; padding-top: .6em; border-top: 2px solid var(--line); }
h3 { font-size: 1.12rem; margin: 0 0 .35em; }
h4 { font-size: .95rem; margin: 0 0 .6em; }

p { margin: 0 0 1em; }

/* ── 页头 ───────────────────────────── */
.site-header { background: var(--navy); color: #dfe6ef; }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 74px; padding-top: 12px; padding-bottom: 12px;
}
.brand { flex: 0 0 auto; max-width: 46%; }
.site-title { margin: 0; font-family: var(--serif); font-size: 1.32rem; letter-spacing: .01em; }
.site-title a { color: #fff; }
.site-tagline {
  margin: 2px 0 0; font-size: .78rem; line-height: 1.35;
  color: #93a5bb; max-width: 40ch;
}

.nav-primary { margin-left: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 18px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 5px 0; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: #c3cddb; border-bottom: 2px solid transparent;
}
.menu a:hover { color: #fff; border-bottom-color: var(--amber); text-decoration: none; }
.menu a.is-active { color: #fff; border-bottom-color: var(--amber); }

.menu-toggle, .menu-toggle-label { display: none; }

/* ── 主体 ───────────────────────────── */
.site-inner { padding: 34px 0 56px; min-height: 55vh; }

.hero { margin-bottom: 8px; }
.hero-kicker {
  margin: 0 0 .5em; font-size: .76rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber);
}
.page-intro {
  font-size: 1.08rem; color: var(--ink-soft);
  max-width: 68ch; margin: 0 0 1.2em;
}

.hero-figure { margin: 26px 0 6px; }
.hero-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.hero-figure figcaption { margin-top: 8px; font-size: .82rem; color: var(--ink-soft); }

.crumbs { font-size: .8rem; color: var(--ink-soft); margin: 0 0 10px; }
.more-link { margin-top: 4px; font-size: .92rem; }

/* ── 编号密集索引行（本站卡片形态） ─────────── */
.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas: "num title meta" ". excerpt excerpt";
  column-gap: 14px; row-gap: 2px;
  padding: 14px 6px 15px;
  border-bottom: 1px solid var(--line);
}
.row-card:hover { background: var(--paper-2); }
.row-card__num {
  grid-area: num; font-family: var(--serif); font-size: 1.05rem;
  color: var(--amber); padding-top: 1px;
}
.row-card__link {
  grid-area: title; font-family: var(--serif); font-size: 1.18rem;
  color: var(--ink); border-bottom: 1px solid transparent;
}
.row-card__link:hover { color: var(--amber); text-decoration: none; border-bottom-color: var(--amber); }
.row-card__meta {
  grid-area: meta; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); align-self: center;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.row-card__excerpt {
  grid-area: excerpt; margin: 0; font-size: .93rem;
  color: var(--ink-soft); max-width: 80ch;
}

/* ── 分类瓦片 ─────────────────────────── */
.cat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.cat-tile {
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--navy-soft);
  padding: 16px 18px 18px; border-radius: 0 0 var(--radius) var(--radius);
}
.cat-tile p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ── 参数条 ───────────────────────────── */
.meta-row {
  display: grid; gap: 0 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 20px 0 26px; padding: 14px 18px;
  background: var(--paper-2); border-left: 3px solid var(--navy-soft);
}
.meta-row__item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.meta-row__label { font-size: .82rem; color: var(--ink-soft); }
.meta-row__value { font-size: .9rem; font-weight: 500; text-align: right; }

/* ── 正文元素 ─────────────────────────── */
.site-inner ul, .site-inner ol { padding-left: 22px; }
.site-inner li { margin-bottom: .45em; }

.note-box {
  margin: 26px 0; padding: 14px 18px;
  background: var(--amber-soft); border-left: 3px solid var(--amber);
}
.note-box p { margin: 0; font-size: .95rem; }

.related { margin-top: 34px; }
.related-list { list-style: none; padding-left: 0; }
.related-list li {
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: .93rem; color: var(--ink-soft);
}

.legal-page { max-width: 74ch; }
.updated { font-size: .82rem; color: var(--ink-soft); }

.contact-card {
  padding: 16px 18px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--line);
}
.contact-card h2 { margin-top: 0; border-top: 0; padding-top: 0; font-size: 1.1rem; }
.contact-card p { margin: 0; }

/* ── 页脚 ───────────────────────────── */
.site-footer { background: var(--navy); color: #c3cddb; padding: 38px 0 26px; margin-top: 20px; }
.footer-inner {
  display: grid; gap: 26px;
  grid-template-columns: 1.6fr 1fr 1fr;
}
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { font-size: .88rem; max-width: 46ch; }
.footer-index ul { list-style: none; margin: 0; padding: 0; }
.footer-index li { margin-bottom: 5px; font-size: .88rem; }
.footer-index a { color: #c3cddb; }
.footer-index a:hover { color: #fff; }
.footer-legal {
  margin: 26px 0 0; padding-top: 16px;
  border-top: 1px solid var(--navy-soft);
  font-size: .8rem; color: #8fa0b6;
}

/* ── 移动端 ───────────────────────────── */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; min-height: 0; }
  .brand { max-width: 100%; }
  .nav-primary { margin-left: 0; width: 100%; }
  .menu-toggle-label {
    display: block; margin-left: auto; width: 40px; height: 40px;
    cursor: pointer; position: relative;
  }
  .menu-toggle-label span {
    display: block; height: 2px; width: 24px; background: #dfe6ef;
    margin: 7px auto;
  }
  .menu { display: none; flex-direction: column; gap: 0; width: 100%; }
  .menu-toggle:checked ~ .nav-primary .menu { display: flex; }
  .menu a { padding: 9px 0; border-bottom: 1px solid var(--navy-soft); }
  .row-card {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "num title" ". meta" ". excerpt";
  }
  .row-card__meta { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr; }
}
