/* 91茶馆 — 左侧筛选栏 + 卡片流，洋红与茶绿 */

:root {
  --magenta: #b3155f;
  --magenta-deep: #8a0f48;
  --magenta-soft: #fdeaf1;
  --sage: #5d7f48;
  --sage-soft: #eef4e8;
  --ink: #2b2429;
  --ink-soft: #4f4449;
  --muted: #857a80;
  --line: #ecdfe4;
  --line-soft: #f4eaee;
  --page: #fffcfd;
  --panel: #fdf6f8;
  --notice: #fdf4e4;
  --notice-line: #eadcbb;
  --accent: #b3155f;
  --accent-2: #5d7f48;
  --accent-ink: #ffffff;
  --radius-md: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --cta-fill: #8a0f48;
  --cta-edge: #6d0b39;
  --cta-elevation: 0 10px 26px rgba(110, 20, 60, 0.24);
  --cta-rail: rgba(255, 255, 255, 0.18);
  --cta-sheen: rgba(255, 255, 255, 0.09);
  --rail: 232px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-bottom: 150px;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.78 var(--font);
}

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

a {
  color: var(--magenta-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dt,
dd {
  margin: 0;
}

button,
input {
  font: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--magenta-deep);
  color: #fff;
  border-radius: var(--radius-md);
}

.skip:focus {
  top: 12px;
}

/* 骨架：左栏 + 主列 */
.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 18px;
}

.rail {
  position: sticky;
  top: 16px;
  padding: 16px 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.brand-txt {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--magenta-deep);
}

.rail-cap {
  margin: 14px 0 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.rail-cities,
.rail-cols,
.rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rail-cities a,
.rail-links a {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
}

.rail-cols a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rail-cols a i {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.rail-cols a.cur,
.rail-cols a:hover {
  background: var(--magenta-soft);
  color: var(--magenta-deep);
  text-decoration: none;
}

.rail-cols a.cur i {
  color: var(--magenta);
}

/* 移动端横条 */
.strip {
  display: none;
}

.main {
  min-width: 0;
}

/* 报头 */
.mast {
  padding: 20px 22px 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--magenta-deep), #c82a74);
  color: #fff;
}

.b-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.78);
}

.mast h1 {
  font-size: 28px;
  line-height: 1.42;
  color: #fff;
}

.b-sub {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.crumb .sep {
  color: #cbb8c0;
}

/* 提醒 */
.notice {
  display: flex;
  gap: 9px;
  margin: 16px 0 4px;
  padding: 10px 13px;
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: 4px;
  font-size: 14px;
  color: #6a5629;
}

.notice b {
  flex: 0 0 auto;
  color: var(--magenta-deep);
}

/* 区块 */
.sec {
  margin-top: 26px;
}

.sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--magenta-soft);
}

.sec-h h2 {
  font-size: 19px;
  color: #3d1b2b;
}

.sec-h h2 a {
  color: #3d1b2b;
}

.sec-h span,
.sec-h a {
  font-size: 13px;
  color: var(--muted);
}

.sec-p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.sec-latest {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.sec-grid .sec {
  margin-top: 18px;
}

/* 标签胶囊 */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.pills.wide {
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 1px solid #e7d3db;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
}

.pill:hover {
  border-color: var(--magenta);
  background: var(--magenta-soft);
  text-decoration: none;
}

.pill i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.tagdesc {
  margin-top: 14px;
}

.tagdesc dt {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--magenta-deep);
}

.tagdesc dd {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 卡片流 */
.stream {
  margin-top: 4px;
}

.entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.entry-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-no {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #e3bfce;
  font-variant-numeric: tabular-nums;
}

.entry-col {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--sage);
}

.entry-main h3 {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 4px;
}

.entry-main h3 a {
  color: #3d1b2b;
}

.entry-main p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.entry-meta {
  display: flex;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.entry-meta a {
  color: var(--muted);
}

/* 帖子页 */
.post {
  margin-top: 4px;
}

.post-h {
  padding: 20px 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--magenta-deep), #c82a74);
  color: #fff;
}

.post-h h1 {
  font-size: 25px;
  line-height: 1.5;
  color: #fff;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.spec {
  flex: 1 1 200px;
  padding: 9px 12px;
  border-left: 2px solid var(--sage);
  background: var(--sage-soft);
  border-radius: 0 4px 4px 0;
}

.spec span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #5f6f52;
}

.spec b {
  font-size: 14px;
  font-weight: 600;
  color: #33402a;
}

.prose {
  max-width: 42em;
}

.prose p {
  margin: 0 0 17px;
  font-size: 17px;
  line-height: 1.95;
  color: #322a2e;
}

/* 编号列表 */
.numlist {
  margin-top: 12px;
  counter-reset: n;
}

.numlist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.numlist li:last-child {
  border-bottom: 0;
}

.li-no {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #cfa9ba;
}

.numlist a {
  font-size: 15px;
  line-height: 1.6;
  color: #3d1b2b;
}

.numlist em {
  display: block;
  grid-column: 2;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.numlist li > em {
  margin-top: 2px;
}

/* 用法三格 */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.use {
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 5px;
}

.use h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--magenta-deep);
}

.use p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 筛选 */
.filter {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin-top: 16px;
}

.filter input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  font-size: 15px;
}

.filter button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--magenta-deep);
  border-radius: 0 4px 4px 0;
  background: var(--magenta);
  color: #fff;
  cursor: pointer;
}

.filter button:hover {
  background: var(--magenta-deep);
}

.empty {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* 文档 */
.doc {
  margin-top: 18px;
  max-width: 44em;
}

.doc p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.idx-list {
  margin-top: 10px;
}

.idx-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
}

.idx-list a {
  color: #3d1b2b;
}

.idx-list span {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
}

/* 页脚 */
.foot {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 18px 0 26px;
}

.foot-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--magenta-deep);
}

.foot-note {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.foot-links a {
  font-size: 13px;
  color: var(--muted);
}

/* 响应式 */
@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .rail {
    display: none;
  }

  .strip {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--page);
    border-bottom: 1px solid var(--line);
    padding: 7px 0;
  }

  .strip-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 4px 18px;
    scrollbar-width: thin;
  }

  .strip-row a {
    flex: 0 0 auto;
    padding: 4px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: var(--ink-soft);
  }

  .strip-row a.on {
    background: var(--magenta);
    border-color: var(--magenta);
    color: #fff;
  }

  .strip-row.dim a {
    color: var(--muted);
    font-size: 12px;
    padding: 2px 9px;
  }

  .sec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .use-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 132px;
  }

  .wrap {
    padding: 0 14px;
  }

  .mast {
    padding: 16px 16px 15px;
  }

  .mast h1 {
    font-size: 22px;
  }

  .b-sub {
    font-size: 14px;
  }

  .entry {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 0;
  }

  .entry-no {
    font-size: 18px;
  }

  .entry-main h3 {
    font-size: 16px;
  }

  .post-h {
    padding: 16px;
  }

  .post-h h1 {
    font-size: 21px;
  }

  .spec {
    flex: 1 1 100%;
  }

  .prose p {
    font-size: 16px;
    line-height: 1.92;
  }

  .foot-in {
    padding: 16px 0 22px;
  }

  .foot-links {
    gap: 4px 12px;
  }
}

/* 底部固定条留白 */
body {
  padding-bottom: 150px !important;
}

@media (max-width: 640px) {
  body {
    padding-bottom: 132px !important;
  }
}
