:root {
  --bg: #f0f2f5;
  --text: #303133;
  --muted: #909399;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
.layout { min-height: 100vh; }
.header {
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  padding: 14px 0 !important;
  height: auto !important;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  width: min(1120px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; gap: 12px; align-items: flex-start; }
.logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.brand h1 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 56ch;
}
.header-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.main {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 16px 0 40px !important;
}
.stats-row { margin-bottom: 4px; }
.stat-card { margin-bottom: 12px; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: #303133; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hint { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.block-card { margin-bottom: 14px; }
.card-title { font-weight: 600; }
.plain-list { margin: 0; padding-left: 1.2rem; line-height: 1.75; color: #606266; }
.lesson-tag {
  max-width: 100%;
  height: auto !important;
  white-space: normal;
  line-height: 1.5;
  padding: 8px 10px;
}
.list-head { margin: 18px 0 10px; }
.list-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.site-card {
  margin-bottom: 12px;
  cursor: pointer;
  min-height: 148px;
}
.site-top {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
}
.one {
  margin: 8px 0;
  color: #606266;
  font-size: 13px;
  line-height: 1.55;
  min-height: 2.4em;
}
.site-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.site-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.foot-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.drawer-lead { color: #606266; margin-top: 0; }
.sec {
  margin: 18px 0 8px;
  font-size: 15px;
  border-left: 3px solid #409eff;
  padding-left: 8px;
}
.mb { margin-bottom: 12px; }
.ext-tag { margin: 0 6px 6px 0; }
.small-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
  font-size: 12px;
}
.small-list code {
  background: #f5f7fa;
  padding: 1px 4px;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .brand h1 { font-size: 1.05rem; }
  .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
