/* 梦雨楼 mengyulou.lol
   设计 token 与页面几何提取自源站本地存档页
   （bootstrap.css / bootstrap-bbs.css / index-dac40b89.css 与其内联样式） */

:root {
  --bg: #dee2e6;
  --surface: #f8f9fa;
  --surface-2: #ffffff;
  --surface-3: #eff1f3;

  --ink: #212529;
  --ink-2: #454d55;
  --muted: #5a6268;

  --rule: #e9ecef;
  --border: #dee2e6;

  --nav: #343a40;
  --nav-brand: #ffffff;
  --nav-ink: rgba(255, 255, 255, 0.62);
  --nav-ink-hover: rgba(255, 255, 255, 0.9);
  --nav-hairline: rgba(255, 255, 255, 0.12);
  --nav-hairline-strong: rgba(255, 255, 255, 0.28);
  --nav-hover: rgba(0, 0, 0, 0.2);
  --nav-current: rgba(0, 0, 0, 0.38);

  --accent: #1f4977;
  --accent-deep: #173659;
  --warm: #c62f40;
  --seal: #d53d38;
  --gold: #eca541;
  --gold-ink: #3d2c05;
  --info: #5bc0de;
  --info-ink: #073242;
  --ok: #198031;
  --gray: #6c757d;
  --white: #ffffff;
  --visited: #5a4a86;
  --focus: #0b2d52;

  --notice-bg: #d4edda;
  --notice-bd: #c3e6cb;
  --notice-ink: #155724;
  --notice-link: #0f4419;

  --head-grad-a: #e9ecef;
  --head-grad-b: #f8f9fa;

  --footer-ink: rgba(255, 255, 255, 0.72);
  --footer-ink-2: rgba(255, 255, 255, 0.6);
  --footer-ink-3: rgba(255, 255, 255, 0.5);
  --footer-hairline: rgba(255, 255, 255, 0.14);

  --cta: #b8232f;
  --cta-deep: #99131f;
  --cta-wash: #7d1520;
  --cta-line: #f3d0ba;
  --cta-shadow: rgba(120, 17, 29, 0.28);
  --cta-shadow-strong: rgba(120, 17, 29, 0.34);

  --radius: 0.25rem;
  --shadow-card: 2px 2px 3px rgba(173, 181, 189, 0.25);
  --font: "Helvetica Neue", Helvetica, "Microsoft Yahei", "Hiragino Sans GB",
    "WenQuanYi Micro Hei", "微软雅黑", "华文细黑", STHeiti, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-bottom: 4px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 1.6rem 0 0.6rem;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 1.2rem 0 0.5rem;
}

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- 容器与栅格 ---------- */

#body > .container {
  padding: 18px 15px 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-main,
.aside {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

@media (min-width: 992px) {
  .col-main {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .aside {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 0;
  }
}

/* ---------- 顶部导航 ---------- */

#header {
  background: var(--nav);
  position: relative;
  z-index: 1020;
}

.navbar {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 15px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.35rem 0;
  margin-right: 12px;
  color: var(--nav-brand);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--nav-brand);
  text-decoration: none;
}

.navbar-brand img {
  height: 28px;
  width: 28px;
  display: block;
}

.navbar-toggler {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nav-hairline-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--nav-brand);
  cursor: pointer;
}

.navbar-toggler:hover {
  background: var(--nav-hover);
}

.toggler-bars {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--nav-ink);
  font-size: 0.94rem;
  border-radius: var(--radius);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--nav-brand);
  background: var(--nav-hover);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--nav-brand);
  background: var(--nav-current);
}

.nav-list a:focus-visible {
  outline-color: var(--white);
}

@media (max-width: 991px) {
  .navbar {
    flex-wrap: wrap;
  }
  .nav-list {
    display: none;
    width: 100%;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.6rem;
  }
  .nav-list.is-open,
  html.no-js .nav-list {
    display: flex;
  }
  .nav-list a {
    padding: 0.6rem 0.5rem;
    border-top: 1px solid var(--nav-hairline);
  }
}

/* ---------- 卡片 ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.card-header {
  padding: 0.7rem 1.25rem;
  color: var(--ink-2);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(0deg, var(--head-grad-a), var(--head-grad-b));
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-header strong {
  color: var(--ink);
  font-weight: 600;
}

.card-body {
  padding: 1.25rem;
}

.card-body > :first-child {
  margin-top: 0;
}

.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-3);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
}

/* ---------- 公告条 ---------- */

.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--notice-bd);
  border-radius: var(--radius);
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-size: 0.94rem;
}

.alert a {
  color: var(--notice-link);
  text-decoration: underline;
}

/* ---------- 标签 ---------- */

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.5;
  border-radius: var(--radius);
  white-space: nowrap;
}

.badge-board {
  background: var(--accent);
  color: var(--white);
}
.badge-warm {
  background: var(--warm);
  color: var(--white);
}
.badge-seal {
  background: var(--seal);
  color: var(--white);
}
.badge-gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.badge-info {
  background: var(--info);
  color: var(--info-ink);
}
.badge-ok {
  background: var(--ok);
  color: var(--white);
}
.badge-gray {
  background: var(--gray);
  color: var(--white);
}
.badge-line {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--border);
}

/* ---------- 帖子列表 ---------- */

.threadlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.thread {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.thread:last-child {
  border-bottom: 0;
}

.thread:hover {
  background: var(--surface-2);
}

.thread.is-hidden {
  display: none;
}

.thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.subject {
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--accent);
}

.subject:visited {
  color: var(--visited);
}

.thread-note {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 选项卡 ---------- */

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tabs .tab {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-tabs .tab:hover {
  border-color: var(--border);
  text-decoration: none;
}

.nav-tabs .tab[aria-selected="true"] {
  color: var(--ink);
  background-image: linear-gradient(0deg, var(--head-grad-b), var(--white));
  border-color: var(--border);
  border-bottom-color: var(--head-grad-b);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: none;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .breadcrumb {
    display: flex;
  }
}

.breadcrumb li + li::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
}

/* ---------- 正文 ---------- */

.message {
  font-size: 16px;
  line-height: 1.75;
}

.message p {
  margin: 0 0 0.9rem;
}

.message > :last-child {
  margin-bottom: 0;
}

.message ul,
.message ol {
  margin: 0 0 0.9rem;
  padding-left: 1.3rem;
}

.message li {
  margin-bottom: 0.35rem;
}

.message strong {
  color: var(--ink);
}

.page-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.lead-in {
  font-size: 1.02rem;
  color: var(--ink-2);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

table.t_table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.t_table caption {
  caption-side: top;
  text-align: left;
  padding: 0.6rem 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
}

table.t_table th,
table.t_table td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

table.t_table thead th {
  background: var(--surface-3);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}

table.t_table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.entry-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.7;
}

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

.entry-name {
  font-weight: 600;
  color: var(--ink);
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.tabs-label {
  font-weight: 600;
  color: var(--ink);
}

.tabs-count {
  font-size: 0.84rem;
  color: var(--muted);
}

.faq-item {
  margin: 0 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-q {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.faq-a {
  margin: 0;
  line-height: 1.75;
}

.continue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- 侧栏 ---------- */

.aside .card-body {
  padding: 1rem 1.1rem;
}

.aside-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  text-align: center;
  color: var(--ink);
}

.aside-note {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--ink-2);
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.aside-list li {
  border-bottom: 1px solid var(--rule);
}

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

.aside-list a {
  display: block;
  padding: 0.5rem 0.1rem;
  color: var(--ink-2);
}

.aside-list a:hover,
.aside-list a:focus {
  color: var(--accent);
  background: var(--surface-2);
}

/* ---------- 页脚 ---------- */

#footer {
  background: var(--nav);
  color: var(--footer-ink);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  padding: 1.5rem 0 calc(1.5rem + 66px);
}

#footer a {
  color: var(--footer-ink);
}

#footer a:hover,
#footer a:focus {
  color: var(--white);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-brand {
  flex: 1 1 240px;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  color: var(--footer-ink-2);
}

.footer-col {
  flex: 0 1 auto;
  min-width: 132px;
}

.footer-col h2 {
  font-size: 0.9rem;
  color: var(--white);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.9;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--footer-hairline);
  color: var(--footer-ink-3);
  font-size: 0.84rem;
}

@media (max-width: 767px) {
  #footer {
    padding: 1.25rem 0 calc(1.25rem + 74px);
  }
}

/* ---------- 唯一底部寻芳 CTA ---------- */

.site-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 440px;
  max-width: calc(100vw - 24px);
  height: 58px;
  background: var(--cta);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px var(--cta-shadow);
  transition: background-color 0.18s ease-out, box-shadow 0.18s ease-out,
    transform 0.18s ease-out;
}

.site-cta > span {
  position: relative;
  z-index: 1;
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    130% 165% at 24% 62%,
    var(--cta-wash) 0%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(0.97);
  animation: rain-mark-soak 2.9s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: var(--cta-line);
  transform: scaleX(0);
  transform-origin: left center;
  animation: rain-line-draw 2.9s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes rain-mark-soak {
  0%,
  54% {
    opacity: 0;
    transform: scale(0.97);
  }
  68% {
    opacity: 0.3;
    transform: scale(1);
  }
  86%,
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes rain-line-draw {
  0%,
  60% {
    transform: scaleX(0);
    opacity: 1;
  }
  74% {
    transform: scaleX(1);
    opacity: 1;
  }
  90%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

.site-cta:hover,
.site-cta:focus {
  background: var(--cta-deep);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 22px var(--cta-shadow-strong);
}

.site-cta:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.site-cta:active {
  transform: translateX(-50%) scale(0.985);
}

@media (max-width: 767px) {
  .site-cta {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    max-width: none;
    height: 56px;
    font-size: 16px;
    border-radius: 8px;
  }
  .site-cta::after {
    left: 12px;
    right: 12px;
  }
  .site-cta:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta {
    transition: none;
  }
  .site-cta::before {
    animation: none;
    opacity: 0.18;
    transform: scale(1);
  }
  .site-cta::after {
    animation: none;
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ---------- 窄屏细调 ---------- */

@media (max-width: 767px) {
  #body > .container {
    padding: 12px 15px 0;
  }
  .card-body {
    padding: 1rem;
  }
  .card-header {
    padding: 0.6rem 1rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  .thread-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .alert {
    font-size: 0.9rem;
  }
  table.t_table {
    min-width: 400px;
  }
}

@media print {
  .site-cta {
    display: none;
  }
}
