:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff7f9;
  --text: #333333;
  --muted: #555555;
  --accent: #c81e4a;
  --accent-ink: #ffffff;
  --rose: #fd3564;
  --rose-border: #ffd5df;
  --rose-head: #fff0f4;
  --gold: #ffc94a;
  --gold-ink: #4a2a00;
  --cta: #b01040;
  --cta-ink: #ffffff;
  --cta-wash: rgba(80, 8, 28, 0.22);
  --cta-line: rgba(255, 210, 220, 0.35);
  --wp: 960px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Tahoma, sans-serif;
  --body-size: 16px;
  --h1-size: 26px;
  --h2-size: 18px;
}

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

html { overflow-y: scroll; }

body {
  margin: 0;
  background: 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; color: var(--rose); }
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; }
ul, ol { margin: 0 0 12px; padding-left: 1.2em; }

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

/* top bar */
.toptb {
  min-height: 38px;
  line-height: 38px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rose-border);
  font-size: 14px;
}
.toptb .wp { display: flex; justify-content: flex-end; gap: 12px; }
.toptb a { color: var(--muted); }
.toptb button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* header / logo band */
.hd {
  background:
    radial-gradient(circle at 8% 42%, rgba(253, 53, 100, 0.14) 0 22px, transparent 23px),
    radial-gradient(circle at 18% 70%, rgba(255, 182, 193, 0.35) 0 36px, transparent 37px),
    radial-gradient(circle at 78% 28%, rgba(253, 53, 100, 0.1) 0 48px, transparent 49px),
    radial-gradient(circle at 92% 80%, rgba(255, 213, 223, 0.7) 0 28px, transparent 29px),
    linear-gradient(#fff7f9, #ffffff 70%);
}
.hdc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  gap: 16px;
  padding: 8px 0 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rose);
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rose-border);
  background: #fff;
}
.brand-name {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--rose);
}
.hd-note {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  text-align: right;
}

/* magenta nav */
#nv {
  background: var(--rose);
  height: auto;
  min-height: 44px;
  border-radius: 4px 4px 0 0;
}
#nv ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}
#nv a {
  display: block;
  color: #fff;
  padding: 0 16px;
  height: 44px;
  line-height: 44px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}
#nv a:hover { background: #b01040; text-decoration: none; color: #fff; }
#nv li.a a {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}
#nv li.a a:hover { color: var(--gold-ink); background: #ffd56a; }

/* search + hot */
.scbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--rose-border);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: #f9f9f9;
}
.scbar form { display: flex; flex: 1 1 280px; gap: 0; 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: 42px;
  height: 36px;
  border: 0;
  background: var(--cta);
  color: var(--cta-ink);
  cursor: pointer;
  font-size: 16px;
}
.hot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  flex: 2 1 360px;
  font-size: 14px;
}
.hot b { color: var(--text); }
.hot a { color: var(--accent); white-space: nowrap; }

.banner {
  margin: 10px auto 0;
  border: 1px solid var(--rose-border);
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 40%;
}

/* portal three-col */
.portal {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) 270px;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--rose-border);
  background: var(--surface);
}
.portal > * { min-width: 0; }
.col-slide {
  border-right: 1px solid var(--rose-border);
  padding: 8px;
}
.slide-card {
  border: 1px solid var(--rose-border);
  background: var(--surface-2);
}
.slide-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.slide-card p {
  margin: 0;
  padding: 8px 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.col-feed {
  padding: 4px 10px 12px;
  border-right: 1px solid var(--rose-border);
}
.lead h2 { font-size: 18px; margin-bottom: 6px; }
.lead p { color: var(--muted); border-bottom: 1px dotted #c2c2c2; padding-bottom: 8px; }
.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted #c2c2c2;
  font-size: 16px;
}
.feed-list span { color: var(--muted); font-size: 14px; flex: none; }
.col-side { padding: 0; }
.side-h {
  height: 36px;
  line-height: 36px;
  padding: 0 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rose-border);
  color: var(--accent);
  font-size: 16px;
}
.side-list { list-style: none; padding: 8px 10px; margin: 0; }
.side-list li { padding: 6px 0; border-bottom: 1px dotted var(--rose-border); }

/* boards */
.board {
  margin-top: 10px;
  border: 1px solid var(--rose-border);
  background: var(--surface);
}
.board-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  background: var(--rose-head);
  border-bottom: 1px solid var(--rose-border);
  color: var(--accent);
}
.board-h h2 { font-size: 18px; }
.board-h span { color: #fe97af; font-size: 14px; }
.board-c { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.board-item h3 { font-size: 18px; margin: 0 0 4px; }
.board-item p { margin: 0; color: var(--muted); font-size: 16px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chips button {
  border: 1px solid var(--rose-border);
  background: var(--surface-2);
  color: var(--accent);
  padding: 8px 12px;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  border-radius: 3px;
}
.chips button[aria-pressed="true"],
.chips button:hover {
  background: var(--cta);
  color: var(--cta-ink);
  border-color: var(--cta);
}

.block {
  margin-top: 10px;
  border: 1px solid var(--rose-border);
  background: var(--surface);
}
.bm_h {
  padding: 8px 12px;
  min-height: 32px;
  line-height: 1.3;
  background: var(--rose-head);
  border-bottom: 1px solid #fbe3ea;
  color: var(--accent);
  font-weight: 700;
}
.bm_h h1 { font-size: 22px; margin: 0; color: var(--accent); }
.bm_c { padding: 14px; }
.bm_c h2 { margin: 18px 0 8px; }

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

.links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 12px;
  padding: 12px;
}
.links-grid a { color: var(--text); }

#pt {
  margin: 8px auto 4px;
  font-size: 14px;
  color: var(--muted);
}
#pt a { color: var(--accent); }

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.article { border: 1px solid var(--rose-border); background: #fff; }
.rail { border: 1px solid var(--rose-border); background: #fff; height: fit-content; }
.rail ul { list-style: none; padding: 10px 12px; margin: 0; }
.rail li { padding: 6px 0; border-bottom: 1px dotted var(--rose-border); }

.lane[hidden] { display: none !important; }

.empty {
  display: none;
  padding: 12px;
  color: var(--muted);
  border: 1px dashed var(--rose-border);
  margin-top: 8px;
}
.empty.show { display: block; }

#ft {
  padding: 16px 0 24px;
  border-top: 1px solid var(--rose-border);
  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: 6px;
  box-shadow: 0 8px 20px rgba(176, 16, 64, 0.28);
  overflow: hidden;
}
.site-cta:hover,
.site-cta:focus-visible {
  color: var(--cta-ink) !important;
  background: #8c0c32;
}
.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 160% at 28% 50%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: blush-silk-seep 2.8s cubic-bezier(.2, .7, .3, 1) infinite;
}
.site-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 8, 28, 0.18) 0%, transparent 68%);
  pointer-events: none;
  animation: bowl-press 3.1s cubic-bezier(.2, .7, .3, 1) infinite;
}
.site-cta span { position: relative; z-index: 1; }

@keyframes blush-silk-seep {
  0%, 55% { opacity: 0; transform: scale(0.95); }
  68% { opacity: 0.28; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes bowl-press {
  0%, 58% { transform: scale(1); opacity: 0.15; }
  70% { transform: scale(0.96); opacity: 0.28; }
  82%, 100% { transform: scale(1); opacity: 0.15; }
}

@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.12; transform: scale(1); }
}

@media (max-width: 768px) {
  .portal { grid-template-columns: 1fr; }
  .col-slide, .col-feed { border-right: 0; border-bottom: 1px solid var(--rose-border); }
  .board-c { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-name { font-size: 28px; }
  .hd-note { display: none; }
  .banner img { height: 120px; }
}

@media (max-width: 640px) {
  #nv a { padding: 0 10px; }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-cta,
  a.site-cta[data-site-cta="xunfang"] {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    min-height: 52px;
  }
  .hdc { min-height: 84px; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 24px; }
}
