/* 兴趣 · three columns */
:root {
  --bg: #fff;
  --ink: #111;
  --muted: #6b6b6b;
  --line: #eee;
  --soft: #f5f5f5;
  --sans: "PingFang HK", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

.shell {
  display: flex;
  height: 100%;
  min-height: 100%;
  background: #fff;
}

.sidebar {
  width: 210px;
  flex: 0 0 210px;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 24px 14px 20px;
  overflow: auto;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0 0 20px;
}

.nav-label {
  font-size: 12px;
  color: #6b6b6b;
  margin: 0 0 8px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav a {
  display: block;
  text-decoration: none;
  color: #555;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid transparent;
  line-height: 1.35;
}

.nav a:hover { color: #111; background: #fafafa; }

.nav a.active {
  color: #111;
  background: #f5f5f5;
  border-left-color: #111;
}

.nav-title { display: block; font-size: 14px; }
.nav-sub { display: block; font-size: 12px; color: #6b6b6b; }
.nav a.active .nav-sub { color: #444; }

.mid {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  overflow-y: auto;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
}

#app { flex: 1 1 auto; }

.rail {
  width: 350px;
  flex: 0 0 350px;
  background: #fff;
  border-left: 1px solid #eee;
  overflow-y: auto;
  padding: 24px 20px 32px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
}

.search { flex: 1 1 180px; }

.search input {
  width: 100%;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
  color: #111;
  outline: none;
}

.search input:focus { border-color: #bbb; }

.sorts { display: flex; gap: 4px; }

.chip {
  appearance: none;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #444;
  font: inherit;
  font-size: 13px;
  padding: 5px 10px;
  cursor: pointer;
}

.chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.meta-count {
  margin-left: auto;
  font-size: 12px;
  color: #888;
}

.tweets { margin: 0; }

.tweet {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.tweet.ranked { padding-left: 28px; position: relative; }

.rank-no {
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 12px;
  color: #888;
  width: 20px;
}

.tweet-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.who strong { font-size: 14px; font-weight: 600; }
.handle { color: #888; font-size: 12px; margin-left: 6px; }

time {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.tweet-text {
  margin: 8px 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}

.tweet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 12px;
  color: #888;
}

.tweet-foot a {
  margin-left: auto;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tweet-foot a:hover { color: #555; }

.empty {
  padding: 28px 0;
  color: #888;
  font-size: 14px;
}

.foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
}


.rail-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 4px;
}
.rail-note {
  font-size: 12px;
  color: #6b6b6b;
  margin: 0 0 16px;
  line-height: 1.45;
}

.rail-sec { margin: 0 0 22px; }

.rail-sec h2 {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin: 0 0 8px;
}

.rail-sec p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #222;
}

.rail-sec ol,
.rail-sec ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13px;
  color: #333;
}

.rail-sec li { margin: 0 0 6px; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0 0 14px;
  font-size: 13px;
}

.links a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links a:hover { color: #555; }

.practice {
  padding: 10px 0 12px;
  border-bottom: 1px solid #eee;
}

.practice:first-child { border-top: 1px solid #eee; }

.practice-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.practice-no {
  font-size: 12px;
  color: #888;
  min-width: 1.4em;
}

.practice h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.field { margin: 5px 0 0; font-size: 13px; }
.field .lab {
  display: inline;
  font-size: 12px;
  color: #888;
  margin-right: 6px;
}
.field p { display: inline; margin: 0; color: #222; }

.src-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.src-list a {
  text-decoration: none;
  color: #333;
  background: #f5f5f5;
  padding: 2px 7px;
  font-size: 11px;
  border: 1px solid #eee;
}

.src-list a:hover { border-color: #ccc; }
.src-note { font-size: 12px; color: #6b6b6b; }

@media (max-width: 900px) {
  .shell { flex-direction: column; height: auto; min-height: 100%; }
  html, body { height: auto; min-height: 100%; }
  .sidebar {
    width: 100%;
    flex: none;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 14px 16px 10px;
    overflow: visible;
  }
  .brand { margin-bottom: 10px; font-size: 16px; }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .nav a {
    border-left: none;
    padding: 6px 0 8px;
    background: none;
  }
  .nav a:hover { background: none; }
  .nav a.active {
    background: none;
    border-left: none;
    border-bottom: 2px solid #111;
  }
  .nav-title, .nav-sub { display: inline; font-size: 14px; }
  .nav-sub { margin-left: 6px; }
  .mid {
    overflow: visible;
    padding: 20px 16px 24px;
  }
  .rail {
    width: 100%;
    flex: none;
    border-left: none;
    border-top: 1px solid #eee;
    overflow: visible;
    padding: 20px 16px 36px;
  }
  .meta-count { margin-left: 0; width: 100%; }
  .tweet.ranked { padding-left: 24px; }
  .tweet-foot a { margin-left: 0; }
}
