:root {
  --ink: #1e293b;
  --muted: #4b5c66;
  --line: #ececec;
  --card-line: #e4e4e7;
  --bg: #ffffff;
  --rose: #e11d48;
  --pink: #be185d;
  --pink-600: #be185d;
  --pink-700: #9d174d;
  --sky: #e0f2fe;
  --sky-ink: #0369a1;
  --amber-bg: #fffbeb;
  --amber-ink: #b45309;
  --pink-bg: #fdf2f8;
  --slate-pill: #f1f5f9;
  --blue-bar: #dbeafe;
  --blue-ink: #1e3a8a;
  --cta-face: #be185d;
  --cta-wash: #9d174d;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: 132px;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-600); }
button, input { font: inherit; }
h1 { font-size: 22px; line-height: 1.45; font-weight: 600; margin: 0 0 8px; color: #1e293b; }
h2 { font-size: 20px; line-height: 1.45; font-weight: 600; margin: 28px 0 10px; color: #1e293b; }
h3 { font-size: 17px; line-height: 1.45; font-weight: 600; margin: 20px 0 8px; color: #1e293b; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.2em; }
li { margin: 0 0 6px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 1200;
  background: #fff;
  padding: 8px 12px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  z-index: 999;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(225, 29, 72, 0.2);
  border-top-color: #e11d48;
  pointer-events: none;
}
.top-links {
  display: none;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  white-space: nowrap;
}
.top-links a { color: #334155; font-size: 15px; }
.top-links a.is-on { color: var(--pink-600); font-weight: 600; }
.search-wrap { position: relative; flex: 1; min-width: 0; max-width: 420px; }
.search-wrap input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #ececec;
  padding: 0 36px 0 16px;
  color: #1e293b;
  outline: none;
}
.search-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #4b5c66;
  cursor: pointer;
  padding: 4px;
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #be185d;
  color: #fff;
  cursor: pointer;
}
.btn-login:hover { background: #9d174d; color: #fff; }
.btn-post {
  display: none;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #9d174d;
  color: #fff;
  cursor: pointer;
}
.btn-post:hover { background: #831843; color: #fff; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 12px 24px;
}
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hero h1 { margin-bottom: 6px; }
.hero-kicker {
  color: #9f1239;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}
.hero-kicker span { color: #4b5c66; font-weight: 400; }
.hero-note { color: #4b5c66; font-size: 14px; margin: 0 0 10px; }

.filter-bar {
  position: sticky;
  top: 56px;
  z-index: 30;
  background: #fff;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #fff;
  color: #334155;
}
.pill-pink { border-color: #fbcfe8; background: #fdf2f8; color: #9d174d; }
.pill-amber { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.pill-on { background: #be185d; color: #fff; border-color: #be185d; }

.drawer {
  display: none;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
}
.drawer.is-open { display: block; }
.drawer-title { font-weight: 700; margin: 0 0 10px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
}
.chip:hover { background: #fce7f3; color: #9d174d; }
.chip-sky {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bae6fd;
  background: #e0f2fe;
  color: #0c4a6e;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.article-list { list-style: none; padding: 0; margin: 12px 0 0; }
.article-item { margin: 0 0 12px; }
.article-card {
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.article-card:hover { border-color: #d4d4d8; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); }
.card-row { display: flex; gap: 12px; align-items: flex-start; }
.card-main { min-width: 0; flex: 1; }
.card-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #27272a;
  margin-bottom: 8px;
}
.card-title:hover { color: #1d4ed8; }
.card-excerpt { display: block; color: #4b5c66; font-size: 14px; line-height: 1.6; margin: 8px 0 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: #4b5c66; font-size: 12px; }
.card-thumb {
  display: none;
  width: 112px;
  flex: 0 0 112px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fafafa;
}
.card-thumb img { width: 100%; height: 88px; object-fit: cover; }

.prose p, .prose li { color: #1e293b; }
.prose .muted, .muted { color: #4b5c66; }
.faq { margin: 16px 0; }
.faq details {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 8px;
  background: #fff;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }

.side { display: none; }
.side-card {
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 14px;
  background: #fff;
}
.side-card h2 { margin: 0 0 10px; font-size: 14px; }
.board-link {
  display: block;
  height: 50px;
  line-height: 50px;
  border-radius: 4px;
  color: #fff;
  font-size: 17px;
  padding: 0 16px;
  margin: 0 0 12px;
}
.board-link:hover { color: #fff; filter: brightness(0.96); }
.board-a { background: #6d28d9; }
.board-b { background: #b45309; }
.board-c { background: #c2410c; }

.echo-bar {
  display: flex;
  margin: 20px 0 8px;
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 8px;
  overflow: hidden;
}
.echo-bar a {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 13px;
  color: #1e3a8a;
}
.echo-bar a.is-on { background: #bfdbfe; font-weight: 600; }

.site-foot {
  text-align: center;
  color: #4b5c66;
  font-size: 14px;
  padding: 18px 12px 8px;
}
.site-foot a { color: #0c4a6e; }
.site-foot .brand-home { color: #1e293b; font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin: 8px 0; }

.dialog {
  border: 0;
  border-radius: 16px;
  padding: 20px;
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.dialog h2 { margin-top: 0; }
.dialog-close {
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 8px 14px;
  cursor: pointer;
}

.search-empty { display: none; color: #4b5c66; padding: 16px 0; }
.search-empty.is-on { display: block; }

.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: min(560px, calc(100vw - 24px));
  padding: 10px 22px;
  border-radius: 999px;
  background: #be185d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  isolation: isolate;
}
.site-cta span { position: relative; z-index: 2; }
.site-cta:hover { color: #fff; }
.site-cta[data-site-cta="xunfang"]::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 40%, rgba(157, 23, 77, 0.55), transparent 62%);
  animation: rose-ink-bloom 2.8s ease-in-out infinite;
  pointer-events: none;
}
.site-cta[data-site-cta="xunfang"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 18%;
  bottom: 18%;
  z-index: 1;
  border-radius: 999px;
  background: rgba(157, 23, 77, 0.28);
  animation: chip-press 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rose-ink-bloom {
  0%, 58%, 100% { opacity: 0.18; transform: scale(0.96); }
  22% { opacity: 0.72; transform: scale(1.06); }
}
@keyframes chip-press {
  0%, 58%, 100% { opacity: 0; transform: scale(1); }
  30% { opacity: 0.9; transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta[data-site-cta="xunfang"]::before,
  .site-cta[data-site-cta="xunfang"]::after {
    animation: none;
    opacity: 0.35;
    transform: none;
  }
}

@media (min-width: 768px) {
  .top-links { display: flex; }
  .btn-post { display: inline-flex; }
  .card-thumb { display: block; }
  .card-title { font-size: 16px; }
  h1 { font-size: 24px; }
}

@media (min-width: 1024px) {
  .layout { grid-template-columns: 2fr 1fr; align-items: start; }
  .side { display: block; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}
