/* 性息吧 · 静态内容站样式
   设计系统取自本地存档页（容器 1000px / 洋红主色 / 白色卡片 / 8-15px 圆角），
   浅色底、正文 16px、行高 1.65。 */

:root {
  --bg: #eae9e9;
  --surface: #ffffff;
  --surface-2: #f7f6f6;
  --text: #1a1a1a;
  --text-muted: #5f5c5c;
  --accent: #e0007e;
  --accent-deep: #c4006c;
  --accent-soft: #ff0090;
  --accent-ink: #ffffff;
  --line: #d7d4d4;
  --line-2: #e2e0e0;
  --warn: #f83439;
  --rule-on-accent: rgba(255, 255, 255, 0.2);
  --panel-top: #ff3aa4;
  --panel-bottom: #c4006c;
  --shadow-card: 0 2px 10px rgba(120, 60, 90, 0.1);
  --shadow-cta: 0 8px 20px rgba(120, 0, 70, 0.28);
  --cta-wash: rgba(150, 0, 84, 0.62);
  --cta-coaster: rgba(255, 255, 255, 0.34);
  --r-s: 5px;
  --r-m: 10px;
  --r-l: 15px;
  --wrap: 1000px;
  --cta-space: 106px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--cta-space) + env(safe-area-inset-bottom));
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a { color: var(--accent-deep); }

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

h1 { font-size: 26px; line-height: 1.35; margin: 0 0 10px; }
h2 { font-size: 20px; line-height: 1.4; margin: 0 0 10px; }
h3 { font-size: 17px; line-height: 1.45; margin: 0 0 8px; }

p { margin: 0 0 10px; }

ul, ol { margin: 0 0 10px; padding-left: 20px; }

:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--surface);
  color: var(--accent-deep);
  padding: 10px 16px;
  z-index: 90;
}

.skip:focus { left: 8px; top: 8px; }

.w { width: var(--wrap); margin: 0 auto; }

/* ---------------------------------------------------------------- 顶栏 */
.header { background-color: var(--surface); }

.header .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: var(--wrap);
  margin: 0 auto;
  padding: 16px 0;
  border-bottom: 0;
}

.header .logo {
  flex: 0 0 15%;
  min-width: 128px;
  max-width: 176px;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
}

.header .logo img { display: block; width: 100%; height: auto; max-height: 42px; object-fit: contain; }

.header .search {
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background-color: var(--surface);
}

.header .search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 6px 0;
  background-color: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
}

.header .search .s {
  flex: 0 0 auto;
  border: 0;
  padding: 7px 15px;
  border-radius: var(--r-s);
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.header .right { display: flex; flex-wrap: wrap; gap: 8px; }

.header .right .but {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-l);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.header .right .but:hover, .header .right .but:focus-visible {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.header .fgx { height: 1px; width: 100%; background-color: var(--accent-soft); }

/* 站内检索结果 */
.sres {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background-color: var(--surface);
  box-shadow: var(--shadow-card);
  max-height: 60vh;
  overflow-y: auto;
}

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

.sres li + li { border-top: 1px solid var(--line-2); }

.sres a { display: block; padding: 8px 6px; text-decoration: none; }

.sres a .st { display: block; font-weight: 700; color: var(--accent-deep); font-size: 16px; }

.sres a .sd { display: block; color: var(--text-muted); font-size: 14px; }

.sres .sempty { margin: 0; padding: 8px 6px; color: var(--text-muted); font-size: 15px; }

/* ------------------------------------------------------------ 图标栏 */
.nav {
  width: var(--wrap);
  margin: 8px auto 0;
  padding: 10px 0;
  background-color: var(--accent);
  border-radius: var(--r-m);
}

.nav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; text-align: center; }

.nav li { flex: 0 0 10%; min-width: 0; }

.nav a {
  display: block;
  padding: 2px 4px;
  border-radius: var(--r-s);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a img { display: block; width: 60px; height: 57px; margin: 0 auto; object-fit: contain; }

.nav a .t { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }

.nav a:hover, .nav a:focus-visible { background-color: var(--accent-deep); }

/* ---------------------------------------------------------- 顶部提示条 */
.ad {
  width: var(--wrap);
  margin: 8px auto 0;
  padding: 10px 14px;
  border-radius: var(--r-m);
  background-color: var(--accent);
  color: var(--accent-ink);
}

.ad p { margin: 0; font-size: 15px; line-height: 1.6; }

.ad strong { font-weight: 700; }

.ad a { color: var(--accent-ink); text-decoration: underline; }

/* ------------------------------------------------------------ 栏目条 */
.rmcs {
  width: var(--wrap);
  margin: 8px auto 0;
  padding: 4px 12px;
  border-radius: var(--r-m);
  background-color: var(--accent);
  color: var(--accent-ink);
}

.rmcs .row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-on-accent);
}

.rmcs .row:last-child { border-bottom: 0; }

.rmcs .title { flex: 0 0 68px; font-size: 14px; font-weight: 700; line-height: 1.9; }

.rmcs .lable { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }

.rmcs .lable a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-l);
  background-color: var(--surface);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rmcs .lable a:hover, .rmcs .lable a:focus-visible { background-color: var(--surface-2); }

/* ------------------------------------------------------- 标题栏 + 卡片 */
.title2 {
  width: var(--wrap);
  margin: 12px auto 10px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.title2 img { width: 25px; height: auto; }

.title2 .t { font-size: 19px; font-weight: 700; }

.title2 .more { margin-left: auto; font-size: 15px; }

.list2 {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.list2 .row {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  background-color: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}

.list2 .row:hover, .list2 .row:focus-within { transform: translateY(-2px); border-color: var(--accent-soft); }

.list2 .row .fmt {
  position: relative;
  height: 260px;
  border-radius: var(--r-s);
  overflow: hidden;
  background-image: linear-gradient(158deg, var(--panel-top) 0%, var(--panel-bottom) 100%);
  color: var(--accent-ink);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.list2 .row .fmt .term { font-size: 30px; font-weight: 700; line-height: 1.15; }

.list2 .row .fmt .sub { margin-top: 6px; font-size: 14px; line-height: 1.5; }

.list2 .row .fmt.soft {
  background-image: linear-gradient(158deg, var(--surface-2) 0%, var(--surface) 100%);
  color: var(--text);
  border: 1px solid var(--line-2);
}

.list2 .row .fmt.soft .term { color: var(--accent-deep); }

.list2 .row .fmt.soft .sub { color: var(--text-muted); }

.list2 .row .lb {
  position: absolute;
  top: 10px;
  right: -4px;
  z-index: 1;
  padding: 3px 13px;
  border-radius: 3px;
  background-color: var(--accent-deep);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.list2 .row .t { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.45; }

.list2 .row .note { margin-top: 4px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.list2 .row .but {
  display: block;
  margin: 8px auto 4px;
  padding: 4px 18px;
  border-radius: var(--r-s);
  background-color: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.list2 .row .but:hover, .list2 .row .but:focus-visible { background-color: var(--accent-deep); }

.list2 .row .f {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.list2 .row .f .dw { display: flex; align-items: center; gap: 4px; }

.list2 .row .f img { width: 15px; height: 15px; }

/* ------------------------------------------------------------- 白卡 */
.card {
  width: var(--wrap);
  margin: 10px auto 0;
  padding: 14px 16px;
  border-radius: var(--r-s);
  background-color: var(--surface);
}

.card > h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-deep);
}

.card ul li + li { margin-top: 4px; }

.crumb { width: var(--wrap); margin: 12px auto 0; color: var(--text-muted); font-size: 15px; }

.crumb a { text-decoration: none; }

.lede { font-size: 17px; }

/* 字段行：左标签 + 右说明 */
.rows { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.rows .r { flex: 1 1 300px; display: flex; gap: 8px; min-width: 0; }

.rows .r .k { flex: 0 0 76px; font-weight: 700; }

.rows .r .v { flex: 1 1 auto; min-width: 0; }

/* 两栏：左侧视觉块 + 右侧说明 */
.split { display: flex; flex-wrap: wrap; gap: 14px; }

.split .side {
  flex: 0 0 168px;
  min-height: 180px;
  padding: 12px;
  border-radius: var(--r-s);
  background-image: linear-gradient(158deg, var(--panel-top) 0%, var(--panel-bottom) 100%);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split .side .term { font-size: 26px; font-weight: 700; line-height: 1.2; }

.split .side .sub { font-size: 14px; }

.split .body { flex: 1 1 380px; min-width: 0; }

/* 条目列表（带小标题的段落组） */
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.entries .e { padding: 10px 12px; border-radius: var(--r-s); background-color: var(--surface-2); }

.entries .e h3 { color: var(--accent-deep); }

.entries .e p:last-child { margin-bottom: 0; }

.entries .e .tag { color: var(--text-muted); font-size: 14px; }

/* 表格 */
.tbl-wrap { overflow-x: auto; margin: 0 0 10px; }

.tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }

.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }

.tbl th { background-color: var(--accent); color: var(--accent-ink); font-size: 15px; }

.tbl td .k { font-weight: 700; color: var(--accent-deep); }

/* 步骤 */
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }

.steps li { position: relative; padding: 0 0 10px 38px; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

/* 提醒块 */
.notice {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background-color: var(--surface-2);
}

.notice h3 { color: var(--warn); }

.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin: 0; }

.faq dt { font-weight: 700; margin-top: 10px; }

.faq dd { margin: 4px 0 0; }

.inlinks { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }

.inlinks a {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background-color: var(--surface);
  font-size: 15px;
  text-decoration: none;
}

.inlinks a:hover, .inlinks a:focus-visible { border-color: var(--accent-soft); }

/* ---------------------------------------------------------- 首页提示浮层 */
.tanchuan {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--r-l);
  background-color: var(--surface);
  box-shadow: 0 10px 30px rgba(90, 0, 55, 0.3);
  max-height: 86vh;
  overflow-y: auto;
}

.tanchuan[hidden] { display: none; }

.tanchuan .t { font-size: 19px; font-weight: 700; text-align: center; color: var(--accent-deep); }

.tanchuan ol { padding-left: 20px; }

.tanchuan .but {
  display: block;
  width: 140px;
  margin: 8px auto 0;
  padding: 8px;
  border: 0;
  border-radius: var(--r-s);
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ------------------------------------------------------------- 页脚 */
.footer {
  width: var(--wrap);
  margin: 22px auto 0;
  padding: 16px 16px 20px;
  border-radius: var(--r-m);
  background-color: var(--surface);
  text-align: center;
}

.footer .fbrand a { font-size: 20px; font-weight: 700; color: var(--accent-deep); text-decoration: none; }

.footer .ftag { margin: 6px 0 10px; color: var(--text-muted); font-size: 14px; }

.footer .fgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }

.footer .fgrid a { font-size: 15px; }

/* --------------------------------------------------- 底部常驻寻芳 CTA */
.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(460px, calc(100vw - 28px));
  min-height: 60px;
  padding: 12px 22px;
  overflow: hidden;
  border-radius: var(--r-l);
  background-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-cta);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(120% 160% at 30% 50%, var(--cta-wash) 0%, rgba(150, 0, 84, 0) 70%);
  opacity: 0;
  animation: cta-counterlight 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 9px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--cta-coaster);
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  animation: cta-coaster 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.site-cta:hover, .site-cta:focus-visible { background-color: var(--accent-deep); }

.site-cta:active { box-shadow: 0 4px 12px rgba(120, 0, 70, 0.32); }

@keyframes cta-counterlight {
  0%, 52% { opacity: 0; transform: scale(0.96); }
  66% { opacity: 0.32; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes cta-coaster {
  0%, 58% { opacity: 0; transform: translateY(4px) scale(0.96); }
  72% { opacity: 0.5; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1010px) {
  .w, .header .top, .nav, .ad, .rmcs, .title2, .list2, .card, .crumb, .footer { width: calc(100% - 24px); }
  .list2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav li { flex: 0 0 20%; }
}

@media (max-width: 760px) {
  .list2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list2 .row .fmt { height: 180px; }
  .list2 .row .fmt .term { font-size: 24px; }
  .entries { grid-template-columns: minmax(0, 1fr); }
  .split .side { flex: 1 1 100%; min-height: 0; }
  .header .top { padding: 12px 0; }
  .header .logo { flex: 0 0 132px; }
}

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .header .top { flex-wrap: wrap; }
  .header .search { flex: 1 1 100%; order: 3; }
  .nav li { flex: 0 0 25%; }
  .rmcs .title { flex: 0 0 62px; }
  .rows .r { flex: 1 1 100%; }
  .site-cta {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 54px;
    padding: 10px 14px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before { animation: none; opacity: 0.18; transform: scale(1); }
  .site-cta::after { animation: none; opacity: 0.4; transform: translateY(0) scale(1); }
  .list2 .row { transition: none; }
  .list2 .row:hover, .list2 .row:focus-within { transform: none; }
}
