/* 禁果乐园 qm3699.lol — 浅色论坛词表 */

:root {
  --brand: #9934b7;
  --brand-deep: #6c1992;
  --brand-ink: #6f099e;
  --panel: #f8eff8;
  --panel-soft: #fcf9fc;
  --line: #dfcdde;
  --line-soft: #eadfe9;
  --line-grey: #d6d6d6;
  --ink: #333333;
  --ink-soft: #4f4f4f;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-top: #f2f2f2;
  --notice: #fefee9;
  --notice-line: #e5dfb0;
  --accent: #9934b7;
  --accent-2: #c65a86;
  --accent-ink: #ffffff;
  --radius-md: 3px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --cta-fill: #6c1992;
  --cta-edge: #531272;
  --cta-elevation: 0 10px 26px rgba(74, 20, 96, 0.24);
  --cta-rail: rgba(255, 255, 255, 0.18);
  --cta-sheen: rgba(255, 255, 255, 0.09);
  --wp: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 150px;
  background: #fff linear-gradient(180deg, #fbf3fb 0, #ffffff 360px) no-repeat;
  color: var(--ink);
  font: 16px/1.75 var(--font-body);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-deep);
  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;
}

button,
input {
  font: inherit;
}

.wp {
  width: 100%;
  max-width: var(--wp);
  margin: 0 auto;
  padding: 0 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  border: 0;
}

.skip {
  position: absolute;
  left: 10px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius-md);
}

.skip:focus {
  top: 10px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* 顶栏 */
.topbar {
  background: var(--bg-top);
  border-bottom: 1px solid var(--line-grey);
  font-size: 13px;
  line-height: 28px;
  color: #444;
}

.tb-in {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.topbar a {
  color: #444;
  padding: 0 2px;
}

.pipe {
  color: #b5b5b5;
  margin: 0 5px;
}

/* 站头 */
.hd {
  background: transparent;
}

.hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
}

.logo img {
  display: block;
  width: 166px;
  height: 66px;
  object-fit: contain;
}

.hd-side {
  text-align: right;
}

.hd-line {
  margin: 0 0 2px;
  font-size: 15px;
  color: #4a4a4a;
}

.hd-line strong {
  color: var(--brand-deep);
  font-size: 17px;
}

.hd-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 主导航 */
.nv {
  background: var(--brand);
  border-top: 1px solid #a945c4;
  border-bottom: 1px solid var(--brand-deep);
}

.nv-in {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nv a {
  flex: 0 0 auto;
  padding: 8px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.nv a:hover {
  background: #872ea3;
  text-decoration: none;
}

.nv a.on {
  background: var(--brand-deep);
}

/* 搜索条 */
.scbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.sc-in {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.search {
  display: flex;
  flex: 1 1 auto;
  max-width: 470px;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbb6c9;
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.search button {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--brand-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.search button:hover {
  background: var(--brand-deep);
}

.hot {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
}

.hot span {
  color: #555;
  font-weight: 600;
}

/* 面包屑 */
.crumb {
  padding: 10px 0 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
}

.crumb a {
  color: #555;
}

.crumb .gt {
  color: #b3a6b2;
}

/* 提醒 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  padding: 8px 11px;
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #5b5230;
}

.notice strong {
  flex: 0 0 auto;
  color: #6b5a16;
}

/* 两栏 */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 12px;
  align-items: start;
}

.mn {
  min-width: 0;
}

.sd {
  min-width: 0;
}

/* 面板 */
.pane {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 10px;
}

.pane-h,
.group-h,
.sbox-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 4px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-radius: 2px 2px 0 0;
}

.pane-h h2,
.group-h h2,
.sbox-h h2 {
  font-size: 19px;
  color: var(--brand-ink);
  line-height: 1.45;
}

.pane-h a {
  font-size: 13px;
  color: #7a3a8c;
}

.pane-h span,
.group-h span {
  font-size: 13px;
  color: var(--muted);
}

/* 首页导语 */
.intro {
  padding: 16px 16px 14px;
}

.intro h1 {
  font-size: 26px;
  line-height: 1.4;
  color: #4b145e;
  margin-bottom: 8px;
}

.lede {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

.stats strong {
  color: var(--brand-deep);
  font-size: 18px;
}

/* 版块组 */
.group-b {
  padding: 10px;
}

.group-intro {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

table.board {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.board td {
  padding: 9px 8px;
  border-top: 1px dashed var(--line-soft);
  vertical-align: top;
}

table.board tr:first-child td {
  border-top: 0;
}

td.ic {
  width: 44px;
}

td.ic span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--brand-deep);
  font-size: 16px;
  font-weight: 700;
}

td.nm {
  width: auto;
}

td.nm > a {
  font-size: 16px;
  font-weight: 700;
  color: #7c2d92;
}

td.nm p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

td.ct {
  width: 52px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

td.last {
  width: 208px;
  font-size: 13px;
  line-height: 1.55;
}

td.last a {
  display: block;
  color: #7a3a8c;
}

td.last span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* 主题表 */
table.topics {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.topics td {
  padding: 10px;
  border-top: 1px dashed var(--line-soft);
  vertical-align: top;
}

table.topics tr:first-child td {
  border-top: 0;
}

td.tt {
  width: auto;
}

td.tt > a {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: #7c2d92;
}

td.tt p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

td.tc {
  width: 96px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 全部词表 */
.allgrid {
  columns: 2;
  column-gap: 18px;
  padding: 10px 12px 12px;
}

.allgrid li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  line-height: 1.55;
}

.allgrid li a {
  color: #6b2a80;
}

.allgrid li span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

/* 侧栏 */
.sbox {
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 10px;
  background: #fff;
}

.sbox-h {
  min-height: 32px;
}

.sbox-h h2 {
  font-size: 16px;
  color: var(--brand-deep);
}

.sbox-b {
  padding: 10px 12px;
}

.sbox-b p {
  font-size: 14px;
  line-height: 1.8;
  color: #4a4a4a;
}

.hotlist {
  padding: 6px 12px 10px;
  counter-reset: hot;
}

.hotlist li {
  counter-increment: hot;
  border-bottom: 1px dashed var(--line-soft);
}

.hotlist li:last-child {
  border-bottom: 0;
}

.hotlist a {
  display: block;
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b2a80;
}

.hotlist a::before {
  content: counter(hot);
  position: absolute;
  left: 0;
  top: 8px;
  width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  background: var(--brand);
  border-radius: 2px;
}

.slist {
  padding: 6px 12px 10px;
}

.slist li {
  border-bottom: 1px dashed var(--line-soft);
}

.slist li:last-child {
  border-bottom: 0;
}

.slist a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  color: #5f5f5f;
}

.slist a span:last-child {
  color: var(--muted);
  font-size: 12px;
}

/* 文章页 */
.thread {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  margin-bottom: 10px;
}

.th-h {
  padding: 13px 16px;
  background: var(--brand);
  border-bottom: 1px solid var(--brand-deep);
  border-radius: 2px 2px 0 0;
}

.th-h h1 {
  font-size: 25px;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 5px;
}

.th-meta {
  margin: 0;
  font-size: 13px;
  color: #f4e3f8;
}

.th-meta a {
  color: #fff;
  text-decoration: underline;
}

.th-b {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  align-items: stretch;
}

.pls {
  padding: 14px 12px;
  background: var(--panel-soft);
  border-right: 1px solid var(--line-soft);
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.pls-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
}

.pls-role {
  margin: 1px 0 5px;
  font-size: 12px;
  color: var(--muted);
}

.pls-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.plc {
  padding: 16px 20px 14px;
  min-width: 0;
}

table.fields {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 14px;
}

table.fields th,
table.fields td {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

table.fields th {
  width: 92px;
  background: var(--panel);
  color: #6d3a7b;
  font-weight: 600;
}

.post p {
  margin: 0 0 15px;
  font-size: 17px;
  line-height: 1.95;
  color: #333;
}

.post-foot {
  margin: 16px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

.back {
  margin: 4px 0 14px;
  font-size: 14px;
}

/* 标签页 */
.use-list {
  padding: 8px 14px 12px;
}

.use {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.use:last-child {
  border-bottom: 0;
}

.use h3 {
  font-size: 17px;
  color: #7c2d92;
  margin-bottom: 2px;
}

.use p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-soft);
  color: #7c2d92;
  font-size: 14px;
}

.chip span {
  color: var(--muted);
  font-size: 12px;
}

.tagnotes {
  padding: 0 14px 12px;
}

.tagnotes p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4a4a;
}

.tagnotes strong {
  color: #6d3a7b;
}

.linklist {
  padding: 6px 14px 10px;
}

.linklist li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.linklist li:last-child {
  border-bottom: 0;
}

.linklist a {
  font-size: 15px;
  color: #6b2a80;
}

.linklist span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 筛选 */
.filter {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
}

.filter form {
  display: flex;
  max-width: 520px;
}

.filter input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbb6c9;
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 15px;
}

.filter button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--brand-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.empty {
  margin: 0;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* 文档 */
.doc {
  padding: 18px;
}

.doc h1 {
  font-size: 26px;
  color: #4b145e;
  margin-bottom: 10px;
}

.doc p {
  font-size: 16px;
  line-height: 1.9;
  color: #3f3f3f;
}

/* 页脚 */
.ft {
  margin-top: 10px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.ft-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 2fr;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.ft-brand a {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-deep);
}

.ft-brand p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5f5f5f;
}

.ft-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ft-nav h2 {
  font-size: 14px;
  color: #4f3a55;
  margin-bottom: 4px;
}

.ft-nav li {
  margin-bottom: 2px;
}

.ft-nav a {
  font-size: 13px;
  color: #5f5f5f;
}

.ft-copy {
  padding-top: 10px;
  padding-bottom: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.ft-copy p {
  margin: 0;
}

/* 响应式 */
@media (max-width: 900px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .ft-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 132px;
  }

  .hd-in {
    align-items: flex-start;
  }

  .hd-side {
    text-align: left;
  }

  .hd-line {
    font-size: 14px;
  }

  .hd-line strong {
    font-size: 15px;
  }

  .sc-in {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .search {
    max-width: none;
  }

  .intro {
    padding: 14px 12px 12px;
  }

  .intro h1 {
    font-size: 23px;
  }

  td.last {
    display: none;
  }

  td.ic {
    width: 38px;
  }

  td.ct {
    width: 40px;
  }

  .allgrid {
    columns: 1;
  }

  .sd {
    grid-template-columns: minmax(0, 1fr);
  }

  .th-b {
    grid-template-columns: minmax(0, 1fr);
  }

  .pls {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 12px;
  }

  .avatar {
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 20px;
  }

  .pls-role {
    margin: 0;
  }

  .pls-note {
    display: none;
  }

  .plc {
    padding: 13px 12px;
  }

  .th-h {
    padding: 11px 12px;
  }

  .th-h h1 {
    font-size: 21px;
  }

  .post p {
    font-size: 16px;
    line-height: 1.9;
  }

  table.topics td.tc {
    display: none;
  }

  .ft-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* 底部固定条留白：覆盖注入块里的 96 / 72 */
body {
  padding-bottom: 150px !important;
}

@media (max-width: 680px) {
  body {
    padding-bottom: 132px !important;
  }
}
