/* 52风流 · 设计系统
   来源：本地保存页 demo_style.css / demo_chunk.css / demo_mainchunk51.css 的计算样式
   （主题 #ec4899、卡片 175px 横排、封面 110×152、容器 1200px、页头 78px） */

:root {
  --theme: #ec4899;
  --theme-ink: #d92183;
  --theme-soft: #fdf1f7;
  --link: #c2185b;
  --bg: #f2f2f2;
  --surface: #fff;
  --surface-2: #f7f7f7;
  --ink: #1f2937;
  --body: #323639;
  --muted: #555d66;
  --muted-2: #666e78;
  --line: #e5e5e5;
  --line-2: #efeff5;
  --footer-ink: #6b6b6b;
  --on-theme: #fff;
  --theme-deep: #c11a72;
  --theme-shadow: rgba(217, 33, 131, .32);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-card: 8px;
  --radius-pill: 999px;
  --wrap: 1200px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, .1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 78px 0 96px;
  padding-bottom: 104px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.35; }
h1 { font-size: 24px; margin: 0 0 10px; }
h2 { font-size: 20px; margin: 0 0 8px; }
h3 { font-size: 17px; }

p { margin: 0 0 10px; }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  padding: 10px 16px; background: var(--theme-ink); color: var(--on-theme); border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--theme-ink); outline-offset: 2px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; width: 100%; }

/* 2. 页头 ---------------------------------------------------------------- */
.c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 15px;
  min-height: 78px; display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-part1 { color: var(--theme-ink); font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.brand-part2 {
  margin-left: 6px; padding: 3px 10px; border-radius: 5px;
  background: var(--theme-ink); color: var(--on-theme); font-size: 16px; font-weight: 600;
}

.nav-left { flex: 1 1 auto; min-width: 0; }
.nav-left ul { display: flex; flex-wrap: wrap; list-style: none; }
.nav-left a {
  display: block; padding: 8px 12px; font-size: 14px; color: var(--body);
  border-bottom: 2px solid transparent;
}
.nav-left a:hover { color: var(--theme-ink); text-decoration: none; }
.nav-left a[aria-current="page"] { color: var(--theme-ink); border-bottom-color: var(--theme); }

.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.site-search input {
  width: 200px; height: 34px; padding: 0 12px; font-size: 14px; color: var(--body);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit;
}
.site-search input:disabled { color: var(--muted-2); }
.site-search input::placeholder { color: var(--muted-2); }

.nav-toggle {
  display: none; height: 34px; padding: 0 12px; font-size: 14px; font-family: inherit;
  color: var(--body); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
}

.search-panel { display: none; background: var(--surface); border-top: 1px solid var(--line-2); }
.search-panel.is-open { display: block; }
.search-panel ul { list-style: none; padding: 8px 0 12px; }
.search-panel li { border-bottom: 1px solid var(--line-2); }
.search-panel a { display: block; padding: 8px 0; color: var(--body); font-size: 14px; }
.search-panel a:hover { color: var(--theme-ink); text-decoration: none; }
.search-status { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* 3. 抽屉导航 ------------------------------------------------------------ */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: 268px;
  padding: 18px 16px 28px; background: var(--surface); border-right: 1px solid var(--line);
  overflow-y: auto; transform: translateX(-100%); transition: transform .22s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer ul { list-style: none; margin: 0 0 6px; }
.drawer li a { display: block; padding: 7px 0; font-size: 14px; color: var(--body); }
.drawer li a:hover { color: var(--theme-ink); text-decoration: none; }
.drawer-label {
  margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.drawer-label:first-child { margin-top: 0; }

/* 4. 首页英雄区与筛选卡 -------------------------------------------------- */
.page-head { padding: 18px 0 6px; }
.page-head.hero { padding-top: 22px; }
.page-head p { color: var(--muted); max-width: 92ch; }
.page-head h1 { max-width: 30ch; }

.crumb { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.crumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; }
.crumb li { display: flex; gap: 6px; }
.crumb li:not(:last-child)::after { content: "/"; color: var(--muted-2); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--theme-ink); }

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.stat {
  flex: 1 1 130px; padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-card);
}
.stat b { display: block; font-size: 20px; color: var(--link); line-height: 1.3; }
.stat span { font-size: 13px; color: var(--muted); }

.filter-card {
  margin: 16px 0 4px; padding: 16px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-card);
}
.filter-row { display: flex; gap: 12px; align-items: flex-start; }
.filter-label {
  flex: 0 0 5rem; margin: 0; font-size: 14px; font-weight: 700; color: var(--ink);
  line-height: 32px;
}
.filter-fields { flex: 1 1 auto; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(7.2em, 1fr)); }
.filter-fields a {
  display: block; padding: 6px 8px; text-align: center; font-size: 13px; color: var(--body);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filter-fields a:hover { background: var(--theme-soft); border-color: var(--theme); text-decoration: none; }
.filter-fields a.is-active { color: var(--link); border-color: var(--theme); background: var(--theme-soft); font-weight: 600; }

.filter-toggle {
  display: none; margin: 12px auto 0; padding: 6px 16px; font-size: 13px; font-family: inherit;
  color: var(--theme-ink); background: var(--surface); border: 1px solid var(--theme);
  border-radius: var(--radius-pill); cursor: pointer;
}
.filter-toggle:hover { background: var(--theme-soft); }
.filter-badge { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* 5. 信息条目卡（复刻源站 C-InfoCard：175px 横排） ------------------------ */
.block { padding: 14px 0 6px; }
.block h2 { margin-bottom: 8px; }
.section-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); max-width: 96ch; }

.info-list { margin: 0 0 6px; }
.group-title { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.info-row { display: flex; flex-wrap: wrap; margin: 0 -5px; }

.info-item { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 5px 10px; }

.info-card {
  display: flex; min-height: 175px; height: 100%; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card);
  box-shadow: var(--shadow); transition: box-shadow .2s ease;
}
.info-card:hover { box-shadow: var(--shadow-hover); }

.info-cover {
  flex: 0 0 110px; width: 110px; margin: 7px 0 16px; height: 142px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 10px 8px; border-radius: var(--radius-sm); background: var(--theme-soft);
  border-right: 1px solid var(--line-2); overflow: hidden;
}
.info-tag {
  padding: 2px 7px; border-radius: var(--radius-sm); font-size: 11.5px; line-height: 1.6;
  color: var(--on-theme); background: var(--theme-ink);
}
.info-region {
  font-size: 17px; font-weight: 700; color: var(--link); line-height: 1.3;
  overflow-wrap: anywhere;
}

.info-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.info-title {
  margin: 0; padding: 14px 10px 6px 12px; font-size: 15px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.info-title a { color: var(--ink); }
.info-title a:hover { color: var(--theme-ink); text-decoration: none; }

.info-desc {
  flex: 1 1 auto; margin: 0; padding: 0 10px 6px 12px;
  font-size: 13px; line-height: 1.4rem; color: var(--muted-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.info-state {
  margin: 0; padding: 6px 10px 12px 12px; font-size: 13.5px; color: var(--muted-2);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  border-top: 1px solid var(--line-2);
}
.info-loc { color: var(--theme-ink); }
.info-extra { color: var(--muted-2); }

/* 6. 正文块 -------------------------------------------------------------- */
.prose {
  padding: 18px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
}
.prose > p:last-child { margin-bottom: 0; }
.prose h3 { margin: 18px 0 6px; font-size: 15px; }
.prose h3:first-child { margin-top: 0; }

.bullets { list-style: none; }
.bullets li {
  position: relative; padding-left: 14px; margin: 0 0 7px; font-size: 14.5px; color: var(--body);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--theme);
}

.facts { margin: 0; }
.fact { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { flex: 0 0 8.5em; font-size: 14px; font-weight: 700; color: var(--ink); }
.fact dd { margin: 0; flex: 1 1 auto; font-size: 14.5px; color: var(--body); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-card);
  background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); }
th { font-weight: 600; color: var(--ink); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.faq { border: 1px solid var(--line-2); border-radius: var(--radius-card); background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 12px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--theme-ink); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq-body { padding: 0 16px 12px; }
.faq-body p { margin: 0; font-size: 14.5px; color: var(--body); }

.links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; }
.links a {
  display: block; padding: 6px 12px; font-size: 13.5px; color: var(--link);
  background: var(--theme-soft); border: 1px solid var(--theme); border-radius: var(--radius-pill);
}
.links a:hover { background: var(--surface); text-decoration: none; }

/* 7. 帮助页签 ------------------------------------------------------------ */
.help-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.help-tab {
  padding: 8px 18px; font-size: 14px; font-family: inherit; cursor: pointer;
  color: var(--body); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.help-tab.is-active { color: var(--on-theme); background: var(--theme-ink); border-color: var(--theme-ink); }
.help-pane { padding: 18px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-card); }
.help-pane.is-hidden { display: none; }
.help-pane > :last-child { margin-bottom: 0; }

/* 8. 页脚 ---------------------------------------------------------------- */
.c-footer { margin-top: 26px; background: var(--surface); border-top: 1px solid var(--line-2); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 15px 6px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 20px;
}
.footer-brand-block { min-width: 0; }
.footer-brand { font-size: 17px; font-weight: 600; color: var(--ink); }
.footer-brief { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.footer-label { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.footer-group ul { list-style: none; }
.footer-group li { margin: 0 0 6px; }
.footer-group a { font-size: 13.5px; color: var(--footer-ink); }
.footer-copy {
  max-width: var(--wrap); margin: 18px auto 0; padding: 0 15px 22px;
  text-align: center; font-size: 12.5px; color: var(--muted-2);
}

/* 9. 底部寻芳 CTA（ink-dot-tap-plus-seal-ring） ------------------------- */
.site-cta {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 45; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 24px); padding: 12px 22px 13px;
  background: var(--theme-ink); color: var(--on-theme); font-size: 15px; font-weight: 600;
  border-radius: var(--radius-pill); box-shadow: 0 6px 18px var(--theme-shadow);
}
.site-cta:hover { text-decoration: none; background: var(--theme-deep); }
.cta-text { position: relative; z-index: 1; }

.site-cta::before {
  content: ""; position: absolute; left: 50%; bottom: 7px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--on-theme);
  animation: cta-ink-dot 2.8s cubic-bezier(.2, .75, .3, 1) infinite;
}
.site-cta::after {
  content: ""; position: absolute; inset: 3px; border-radius: var(--radius-pill);
  border: 1px solid var(--on-theme); opacity: .22;
  animation: cta-seal-ring 2.8s cubic-bezier(.2, .75, .3, 1) infinite;
}

@keyframes cta-ink-dot {
  0% { transform: translateY(-16px); opacity: 0; }
  34% { transform: translateY(0); opacity: 1; }
  46% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes cta-seal-ring {
  0% { opacity: .22; }
  34% { opacity: .55; }
  60% { opacity: .34; }
  100% { opacity: .22; }
}

/* 10. 响应式 ------------------------------------------------------------- */
@media (max-width: 1199px) {
  .info-item { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 991px) {
  .site-search input { width: 160px; }
  .nav-left a { padding: 8px 9px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  html.js .filter-card:not(.is-open) .filter-fields a:nth-child(n+7) { display: none; }
  .filter-toggle { display: block; }
}

@media (max-width: 767px) {
  body { padding-top: 60px; }
  .header-inner { min-height: 60px; gap: 10px; }
  .nav-left, .site-search { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  h1 { font-size: 21px; }
  h2 { font-size: 18px; }
  .page-head { padding-top: 12px; }
  .info-item { flex: 0 0 100%; max-width: 100%; }
  .filter-card { padding: 14px; }
  .filter-row { flex-direction: column; gap: 6px; }
  .filter-label { flex: none; line-height: 1.4; }
  .filter-fields { grid-template-columns: repeat(auto-fill, minmax(4.6em, 1fr)); width: 100%; }
  .prose, .help-pane { padding: 15px; }
  .fact { flex-direction: column; gap: 2px; }
  .fact dt { flex: none; }
  .site-cta { font-size: 14px; padding: 11px 18px 12px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stat { flex: 1 1 100%; }
  .info-cover { flex: 0 0 92px; width: 92px; }
  .info-region { font-size: 15px; }
}

/* 11. 无脚本降级 --------------------------------------------------------- */
html:not(.js) .site-search input { display: none; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .drawer { display: none; }
html:not(.js) .filter-toggle { display: none; }
html:not(.js) .help-pane.is-hidden { display: block; }
html:not(.js) .help-tabs { display: none; }

@media (max-width: 767px) {
  html:not(.js) .nav-left { display: block; }
  html:not(.js) .nav-left ul { flex-direction: column; }
  html:not(.js) .nav-left a { padding: 8px 2px; border-bottom: 1px solid var(--line-2); }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* 12. 降低动效 ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .site-cta::before { transform: translateY(0); opacity: 1; }
  .site-cta::after { opacity: .4; }
}
