:root {
  --bg: #faf6ed;
  --surface: #ffffff;
  --surface-2: #ffecec;
  --text: #333333;
  --muted: #555555;
  --accent: #8b2508;
  --accent-ink: #ffffff;
  --nav: #ba350f;
  --nav-ink: #ffffff;
  --pink-line: #ffcccc;
  --search-bg: #e8eff5;
  --cta: #8b2508;
  --cta-ink: #ffffff;
  --cta-wash: rgba(80, 20, 8, 0.22);
  --font: Tahoma, "Microsoft YaHei", "PingFang SC", SimSun, sans-serif;
}

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

html { overflow-y: scroll; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 6% 12%, rgba(186, 53, 15, 0.06) 0 40px, transparent 41px),
    radial-gradient(circle at 94% 8%, rgba(186, 53, 15, 0.05) 0 28px, transparent 29px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; color: var(--accent); font-weight: 700; }
h2 { font-size: 20px; line-height: 1.3; margin: 0; font-weight: 700; color: var(--accent); }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; font-weight: 700; color: var(--accent); }
p { margin: 0 0 12px; overflow-wrap: anywhere; }

.wp { width: min(960px, calc(100% - 24px)); margin: 0 auto; }

.toptb {
  height: 32px;
  line-height: 32px;
  background: #f2f2f2;
  border-bottom: 1px solid #e6e6e6;
  font-size: 16px;
  text-align: right;
}
.toptb .wp { display: flex; justify-content: flex-end; gap: 12px; }
.toptb a, .toptb button {
  color: var(--muted);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.hdc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 8px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 220px;
  height: 72px;
  object-fit: cover;
  object-position: left top;
}
.hd-note { color: var(--muted); font-size: 16px; max-width: 280px; text-align: right; }

#nv {
  background: var(--nav);
  min-height: 33px;
}
#nv ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0 8px; list-style: none; }
#nv a {
  display: block;
  color: var(--nav-ink);
  padding: 0 18px;
  height: 33px;
  line-height: 33px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
#nv a:hover { background: var(--accent); color: var(--nav-ink); text-decoration: none; }
#nv li.a a { background: var(--accent); color: var(--nav-ink); }

.notice {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff5f5;
  border: 1px solid var(--pink-line);
  color: var(--accent);
  font-weight: 700;
}

.scbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid var(--pink-line);
  border-top: 0;
  background: var(--search-bg);
}
.scbar form { display: flex; flex: 1 1 280px; min-width: 0; }
.scbar input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #ccc;
  border-right: 0;
  padding: 0 10px;
  font: inherit;
  background: #fff;
}
.scbar button[type="submit"] {
  width: 48px;
  height: 36px;
  border: 0;
  background: var(--cta);
  color: var(--cta-ink);
  cursor: pointer;
  font: inherit;
}

.banner { margin-top: 10px; border: 1px solid var(--pink-line); overflow: hidden; background: #fff; }
.banner img { width: 100%; height: 140px; object-fit: cover; object-position: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 10px;
  margin-top: 10px;
}
.panel { background: var(--surface); border: 1px solid var(--pink-line); }
.panel-h {
  padding: 6px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--pink-line);
  color: var(--accent);
  font-weight: 700;
}
.feed { list-style: none; margin: 0; padding: 8px 12px; }
.feed li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--pink-line);
}
.feed span { color: var(--muted); font-size: 16px; flex: none; }

.group { margin-top: 10px; border: 1px solid var(--pink-line); background: #fff; }
.group > summary,
.group-h {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 700;
  min-height: 36px;
}
.group > summary::-webkit-details-marker { display: none; }
.board-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px dotted #eee;
}
.mark {
  width: 72px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--pink-line);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.board-row p { margin: 0; color: var(--muted); }

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  margin: 10px auto 16px;
}
.article, .rail { background: #fff; border: 1px solid var(--pink-line); }
.bm_h {
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--pink-line);
  color: var(--accent);
}
.bm_h h1 { font-size: 22px; margin: 0; }
.bm_h h2 { font-size: 18px; }
.bm_c { padding: 14px; }
.bm_c h2 { margin: 18px 0 8px; }
#pt { margin: 8px auto 4px; font-size: 16px; color: var(--muted); }
.rail ul { list-style: none; margin: 0; padding: 10px 12px; }
.rail li { padding: 6px 0; border-bottom: 1px dotted var(--pink-line); }

.faq details { border-bottom: 1px dashed var(--pink-line); padding: 8px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.empty { display: none; padding: 12px; color: var(--muted); border: 1px dashed var(--pink-line); margin: 8px 0; }
.empty.show { display: block; }
.lane[hidden] { display: none !important; }

#ft {
  padding: 16px 0 24px;
  border-top: 1px solid #cdcdcd;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
#ft a { color: var(--muted); }
#ft .brand-link { color: var(--accent); font-weight: 700; }
#ft nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 8px; }

.site-cta,
a.site-cta[data-site-cta="xunfang"] {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--cta);
  color: var(--cta-ink) !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(139, 37, 8, 0.28);
  overflow: hidden;
}
.site-cta:hover,
.site-cta:focus-visible { background: #6e1c06; color: #fff !important; }
.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 160% at 30% 50%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: vermilion-pad-seep 2.7s cubic-bezier(.2, .7, .3, 1) infinite;
}
.site-cta::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 22px;
  height: 28px;
  margin-top: -14px;
  background: rgba(80, 20, 8, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  pointer-events: none;
  animation: ticket-clip 3s cubic-bezier(.2, .7, .3, 1) infinite;
}
.site-cta span { position: relative; z-index: 1; }

@keyframes vermilion-pad-seep {
  0%, 55% { opacity: 0; transform: scale(0.95); }
  68% { opacity: 0.28; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ticket-clip {
  0%, 58% { transform: scale(1); opacity: 0.2; }
  70% { transform: scale(0.96); opacity: 0.32; }
  82%, 100% { transform: scale(1); opacity: 0.2; }
}

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

@media (max-width: 768px) {
  .split, .article-wrap, .board-row { grid-template-columns: 1fr; }
  .hd-note { display: none; }
  .brand img { width: 180px; height: 60px; }
  .banner img { height: 110px; }
}

@media (max-width: 640px) {
  .site-cta,
  a.site-cta[data-site-cta="xunfang"] {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    min-height: 52px;
  }
  .hdc { min-height: 80px; }
}
