html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; background: #1b1d23; color: #c9ced8; font-family: Menlo, Consolas, "Microsoft YaHei", monospace; font-size: 14px; line-height: 1.7; }
a { color: #6cb6ff; }

.top { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 14px; background: #26282f; border-bottom: 1px solid #111; }
.dots { display: flex; gap: 6px; }
.dots i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i + i { background: #febc2e; }
.dots i + i + i { background: #28c840; }
.ttl { font-size: 12px; color: #8b919c; }

.win { display: flex; align-items: stretch; min-height: calc(100vh - 34px); }
.tree { flex: 0 0 230px; background: #21232a; border-right: 1px solid #111; padding: 8px 0; font-size: 13px; }
.tree-h { padding: 4px 16px 10px; text-transform: uppercase; color: #7a808b; font-size: 11px; letter-spacing: 1px; }
.tree summary { cursor: pointer; padding: 3px 14px; color: #dfe3ea; }
.leaf { display: block; padding: 2px 14px 2px 34px; color: #a9b0bc; text-decoration: none; }
.leaf:hover { background: #2c2f38; color: #fff; }

.ed { flex: 1 1 auto; min-width: 0; padding-bottom: 40px; }
.tabs { display: flex; background: #21232a; overflow-x: auto; }
.tab { padding: 7px 18px; font-size: 12.5px; color: #8b919c; border-right: 1px solid #111; white-space: nowrap; }
.tab.on { background: #1b1d23; color: #fff; border-top: 2px solid #e5a24a; }

.f { counter-reset: ln; padding: 18px 26px 6px 0; border-bottom: 1px dashed #2c2f38; }
.f h1, .f h2 { margin: 0 0 8px 56px; color: #e5a24a; font-weight: 600; }
.f h1 { font-size: 24px; }
.f h2 { font-size: 16px; }
.l { counter-increment: ln; position: relative; margin: 0; padding-left: 56px; }
.l:before { content: counter(ln); position: absolute; left: 0; width: 40px; text-align: right; color: #4c525e; }
.l b { color: #98c379; }

.cards { list-style: none; margin: 6px 0 10px 56px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.cards li { flex: 1 1 200px; display: flex; flex-direction: column; background: #23262e; border: 1px solid #30343e; border-radius: 6px; overflow: hidden; }
.cards img { width: 100%; height: 150px; object-fit: cover; background: #30343e; }
.cards b { padding: 8px 10px 0; color: #e8eaee; }
.cards em { padding: 2px 10px 10px; font-style: normal; font-size: 12.5px; color: #9aa1ad; }

.qa { margin: 0 0 12px 56px; }
.qa h3 { margin: 0; font-size: 14px; color: #c678dd; }
.qa p { margin: 2px 0 0; color: #b3b9c4; }

.st { display: flex; flex-wrap: wrap; gap: 18px; padding: 8px 16px; background: #e5a24a; color: #1b1d23; font-size: 12px; }

@media (max-width: 720px) {
  .win { flex-direction: column; }
  .tree { flex-basis: auto; border-right: 0; border-bottom: 1px solid #111; }
  .f { padding-right: 12px; }
  .f h1, .f h2, .cards, .qa { margin-left: 12px; }
  .l { padding-left: 34px; }
  .l:before { width: 24px; }
  .cards li { flex-basis: 140px; }
}
