/* aobapp.net - docs-console shell: fixed left rail + reading column */
:root {
  --ink: #0d211d;
  --ink-2: #13332c;
  --ink-3: #1d463c;
  --paper: #f4f1e9;
  --paper-2: #eae5d9;
  --line: #d3ccba;
  --gold: #b98d33;
  --gold-soft: #e4c67c;
  --text: #22201a;
  --text-soft: #5b5648;
  --rail-w: 264px;
  --radius: 4px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--ink-3); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--gold);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  font-size: 1.05rem;
  white-space: nowrap;
}
.topbar__brand:hover { color: var(--gold-soft); text-decoration: none; }
.topbar__brand img { width: 32px; height: 32px; border-radius: 3px; }

.topbar__meta {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gold-soft);
  letter-spacing: .08em;
  margin-left: auto;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(244,241,233,.45);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: .8rem;
  cursor: pointer;
}

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.rail {
  background: var(--ink-2);
  color: var(--paper-2);
  padding: 26px 0 40px;
  border-right: 1px solid rgba(0,0,0,.25);
}

.rail__label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: #7d9a8f;
  padding: 0 22px 10px;
}

.rail__list { list-style: none; margin: 0; padding: 0; }

.rail__list a {
  display: block;
  padding: 9px 22px 9px 24px;
  color: #cfd9d2;
  font-size: .93rem;
  border-left: 3px solid transparent;
}
.rail__list a:hover { background: rgba(255,255,255,.05); color: var(--gold-soft); text-decoration: none; }
.rail__list a.is-active {
  border-left-color: var(--gold);
  background: rgba(185,141,51,.14);
  color: #fff;
  font-weight: 600;
}

.rail__divider { height: 1px; background: rgba(255,255,255,.09); margin: 18px 22px; }

.rail__note {
  margin: 0 22px;
  font-size: .78rem;
  color: #8fa79d;
  line-height: 1.6;
}

/* ---------- main column ---------- */
.col { padding: 34px 40px 70px; min-width: 0; }

.crumbs,
.breadcrumb {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-soft);
  letter-spacing: .04em;
  margin: 0 0 18px;
}
.crumbs a { color: var(--ink-3); }
.crumbs span { color: #9a9484; margin: 0 6px; }

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
}

h2 {
  font-size: 1.28rem;
  line-height: 1.4;
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
}

h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--ink-3); }

p { margin: 0 0 14px; }

.lede {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: 26px;
}

/* ---------- section blocks ---------- */
.block { margin: 0 0 52px; }
.block > h2:first-child { margin-top: 0; }

/* status band: dense data strip, no cards */
.band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 46px;
}
.band__cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.band__cell:last-child { border-right: 0; }
.band__k {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}
.band__v { font-size: 1rem; font-weight: 600; color: var(--ink); }

/* split: image beside text, used once only */
.split {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 30px;
  align-items: center;
}
.split img { border-radius: var(--radius); border: 1px solid var(--line); }

/* numbered step strip */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.steps li {
  background: var(--paper);
  padding: 20px 18px;
}
.steps .n {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--gold);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 6px;
}
.steps strong { display: block; margin-bottom: 6px; color: var(--ink); }
.steps p { margin: 0; font-size: .92rem; color: var(--text-soft); }

/* reading flow: two-column article list, hairline separated */
.flow { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 36px; }
.flow li {
  break-inside: avoid;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}
.flow .cat {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--gold);
  display: block;
  margin-bottom: 3px;
}
.flow a { font-weight: 600; color: var(--ink); }
.flow p { margin: 4px 0 0; font-size: .9rem; color: var(--text-soft); }

/* dark app panel */
.panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
  gap: 28px;
  align-items: center;
}
.panel h2 { color: #fff; border-left-color: var(--gold-soft); margin-top: 0; }
.panel p { color: #b9c8c0; }
.panel img { border-radius: var(--radius); }
.panel__list { margin: 14px 0 0; padding: 0; list-style: none; }
.panel__list li {
  padding: 8px 0;
  border-bottom: 1px dotted rgba(244,241,233,.18);
  font-size: .92rem;
  color: #cfd9d2;
}
.panel__list li:last-child { border-bottom: 0; }

/* version timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 18px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline .v {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--ink-3);
  letter-spacing: .08em;
}
.timeline strong { display: block; color: var(--ink); margin: 2px 0 4px; }
.timeline p { margin: 0; font-size: .9rem; color: var(--text-soft); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 10px 0 0; font-size: .93rem; color: var(--text-soft); }

/* plain list of links */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 28px; }
.linklist li { padding: 7px 0; border-bottom: 1px dotted var(--line); }
.linklist a { font-weight: 500; }

/* contact band */
.contact-band {
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  padding: 24px 26px;
}
.contact-band dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.contact-band dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.contact-band dd { margin: 0; font-size: .93rem; color: var(--ink); }

/* ---------- article layout ---------- */
.article-head { border-bottom: 2px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .84rem;
  color: var(--text-soft);
}
.byline .who { color: var(--ink); font-weight: 600; }

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 268px;
  gap: 42px;
  align-items: start;
}

.prose { max-width: 72ch; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: .8rem; color: var(--text-soft); margin-top: 6px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  color: var(--text-soft);
  font-size: .95rem;
}

.aside {
  position: sticky;
  top: 84px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
}
.aside h2 {
  font-size: .78rem;
  font-family: var(--mono);
  letter-spacing: .14em;
  border-left: 0;
  padding-left: 0;
  margin: 0 0 10px;
  color: var(--text-soft);
  font-weight: 600;
}
.aside ul { list-style: none; margin: 0 0 12px; padding: 0; }
.aside li { padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: .9rem; }
.aside li:last-child { border-bottom: 0; }
.aside .aside__cat {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 2px;
}
.aside a { font-weight: 500; }

.backcat { margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }

/* ---------- category page ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cat-list img { border-radius: var(--radius); border: 1px solid var(--line); }
.cat-list h3 { margin: 0 0 4px; }
.cat-list h3 a { color: var(--ink); }
.cat-list p { margin: 0 0 6px; font-size: .92rem; color: var(--text-soft); }
.cat-list .date { font-family: var(--mono); font-size: .72rem; color: var(--text-soft); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: #a9bdb4;
  padding: 34px 40px 26px;
  font-size: .84rem;
  border-top: 2px solid var(--gold);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
  max-width: 1180px;
}
.site-foot h2 {
  font-size: .74rem;
  font-family: var(--mono);
  letter-spacing: .14em;
  color: var(--gold-soft);
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  font-weight: 600;
}
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: #cfd9d2; }
.site-foot a:hover { color: var(--gold-soft); }
.site-foot__legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: .74rem;
  color: #8fa79d;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .article-wrap { grid-template-columns: minmax(0,1fr); }
  .aside { position: static; }
  .panel { grid-template-columns: minmax(0,1fr); }
  .split { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 768px) {
  .menu-btn { display: inline-block; }
  .topbar__meta { display: none; }
  .shell { grid-template-columns: minmax(0,1fr); }
  .rail {
    display: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .rail.is-open { display: block; }
  .col { padding: 22px 16px 52px; }
  .band { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .band__cell:nth-child(2) { border-right: 0; }
  .band__cell:nth-child(1), .band__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0,1fr); }
  .flow { column-count: 1; }
  .linklist { grid-template-columns: minmax(0,1fr); }
  .contact-band dl { grid-template-columns: minmax(0,1fr); }
  .cat-list li { grid-template-columns: minmax(0,1fr); }
  .cat-list img { max-width: 100%; }
  .site-foot { padding: 26px 16px 20px; }
  .site-foot__grid { grid-template-columns: minmax(0,1fr); }
  h1 { font-size: 1.5rem; }
  img { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
