﻿/* 一楼一凤 / 66feng.click —— 全站样式
   设计 token 来自当前域名输入目录的页面存档与原生样式表，并经参考站计算样式核对。
   浅色底方案，正文不小于 16px，所有交互元素有可见焦点。 */

:root {
  --brand: #EC4899;
  --brand-strong: #DB2777;
  --brand-ink: #BE185D;
  --focus: #FF3399;
  --focus-ring: rgba(255, 51, 153, .2);
  --brand-tint: #FDF2F8;
  --brand-line: #FBCFE8;

  --page: #F3F4F6;
  --surface: #FFFFFF;
  --line: #E5E7EB;
  --line-soft: #EFEFF5;

  --ink: #1F2937;
  --ink-2: #374151;
  --ink-3: #4B5563;
  --muted: #6B7280;
  --muted-2: #5A6472;

  --warn-ink: #B91C1C;
  --warn-bg: #FEF2F2;
  --warn-line: #FECACA;
  --warn-deep: #7F1D1D;
  --ok-ink: #15803D;
  --ok-bg: #F0FDF4;
  --ok-line: #BBF7D0;
  --ok-deep: #14532D;
  --line-input: #E0E0E6;

  --r-card: 3px;
  --r-box: 6px;
  --r-thumb: 4px;
  --r-pill: 9999px;

  --sh-card: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --sh-head: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);

  --container: 1280px;
  --head-h: 80px;
  --cta-space: 132px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: var(--cta-space);
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; }

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

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 80;
  background: var(--surface); color: var(--ink); padding: 10px 16px;
  border: 1px solid var(--line); border-radius: var(--r-box);
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ 报头 */

.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--head-h); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--sh-head);
}

.topbar__in {
  max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; gap: 12px;
}

.brand { display: flex; align-items: center; flex: 1 1 auto; justify-content: center; }
.brand img { width: 128px; height: 32px; display: block; }

.tnav { display: none; }

.hsearch { display: none; }

.round-btn {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-ink); color: #fff; font-size: 14px;
  border: 0; cursor: pointer;
}
.round-btn:hover { background: var(--brand-ink); color: #fff; text-decoration: none; box-shadow: var(--sh-card); }

.menu { flex: 0 0 auto; }
.menu__btn {
  width: 40px; height: 40px; border-radius: var(--r-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  list-style: none; background: var(--brand-tint); border: 1px solid var(--brand-line);
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn span { position: relative; display: block; width: 18px; height: 2px; background: var(--brand-ink); }
.menu__btn span::before,
.menu__btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--brand-ink);
}
.menu__btn span::before { top: -6px; }
.menu__btn span::after { top: 6px; }
.menu[open] .menu__btn span { background: transparent; }
.menu[open] .menu__btn span::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__btn span::after { top: 0; transform: rotate(-45deg); }

.menu__panel {
  position: absolute; left: 0; top: var(--head-h); width: 260px; max-height: calc(100vh - var(--head-h));
  overflow: auto; background: var(--surface); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-box) 0;
  box-shadow: 0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05);
  padding: 14px;
}
.msearch { display: flex; gap: 6px; }
.msearch input {
  flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px; font-size: 15px;
  border: 1px solid var(--line-input); border-radius: var(--r-card); color: var(--ink);
}
.msearch input:hover { border-color: var(--focus); }
.msearch input:focus { border-color: var(--focus); outline: 2px solid var(--focus-ring); outline-offset: 0; }
.msearch button,
.hsearch button {
  height: 34px; padding: 0 12px; border: 1px solid var(--brand-line); border-radius: var(--r-card);
  background: var(--brand-tint); color: var(--brand-ink); font-size: 15px; cursor: pointer;
}
.menu__nav { display: flex; flex-direction: column; margin: 10px 0 0; }
.menu__i {
  display: flex; align-items: center; min-height: 48px; padding: 12px 20px; margin: 0 -14px;
  font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.menu__i:hover { background: var(--brand-tint); color: var(--brand-ink); text-decoration: none; }
.menu__lb { margin: 14px 0 8px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ 版心 */

.wrap {
  max-width: var(--container); margin: 0 auto; padding: calc(var(--head-h) + 12px) 12px 12px;
}

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  margin-bottom: 12px;
}
.card__hd { padding: 16px 20px 0; }
.card__hd h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.card__bd { padding: 20px 24px; }

.sec { margin-bottom: 16px; }

/* 页头 */

.pagehead { margin-bottom: 16px; }
.pagehead__card { margin-bottom: 0; border-radius: var(--r-box); box-shadow: var(--sh-card); }
.crumbs { margin: 0 0 12px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.crumb i { font-style: normal; color: var(--line); }
.crumb span { color: var(--ink-3); }
.pagehead h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.lead { margin: 0; font-size: 16px; color: var(--ink-3); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--brand-ink); font-weight: 600; }

/* 正文 */

.sec h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.sec h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.sec h3:first-child { margin-top: 0; }
.sec p { margin: 0 0 12px; }
.sec p:last-child { margin-bottom: 0; }
.sec ul, .sec ol { margin: 0 0 12px; padding-left: 22px; }
.sec li { margin-bottom: 6px; }
.sec li:last-child { margin-bottom: 0; }
.tnote { font-size: 14px; color: var(--muted); }

.kv { margin: 0 0 14px; border: 1px solid var(--line-soft); border-radius: var(--r-card); overflow: hidden; }
.kv__row { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.kv__row:last-child { border-bottom: 0; }
.kv dt { flex: 0 0 84px; font-size: 15px; font-weight: 800; color: var(--ink-3); }
.kv dd { margin: 0; flex: 1 1 auto; font-size: 15px; color: var(--muted-2); }

.tw { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--brand-tint); color: var(--ink-2); font-weight: 600; }
td { color: var(--ink-3); }

.note {
  border: 1px solid var(--brand-line); background: var(--brand-tint); border-radius: var(--r-card);
  padding: 12px 14px; margin: 0 0 14px; font-size: 15px; color: var(--ink-3);
}
.note p { margin: 0; }
.note__t { font-weight: 600; color: var(--brand-ink); margin-bottom: 4px !important; }
.note--warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-deep); }
.note--warn .note__t { color: var(--warn-ink); }
.note--ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-deep); }
.note--ok .note__t { color: var(--ok-ink); }

/* 信息卡 */

.icards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.icard { min-width: 0; }
.icard__link {
  display: flex; align-items: stretch; gap: 16px; min-height: 135px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  color: var(--ink);
}
.icard__link:hover {
  text-decoration: none; border-color: var(--brand-line); box-shadow: var(--sh-card);
}
.icard__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.icard__t { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.icard__d { margin: 0; font-size: 15px; color: var(--muted-2); }
.icard__badge {
  flex: 0 0 100px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--brand-line); background: var(--brand-tint); border-radius: var(--r-thumb);
  color: var(--brand-ink); font-size: 14px; font-weight: 600; padding: 6px;
  overflow-wrap: anywhere;
}

/* 入口 chip */

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.chips--wrap { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; }
.chip {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 6px;
  font-size: 15px; color: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); background: var(--surface);
}
.chip:hover { color: var(--brand-ink); border-color: var(--brand-line); background: var(--brand-tint); text-decoration: none; }
.chip--sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }

/* FAQ 与目录链接 */

.faqs { display: flex; flex-direction: column; gap: 8px; }
.faq { border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 0 14px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 12px 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.faq__b { padding: 0 0 12px; font-size: 15px; color: var(--ink-3); }
.faq__b p { margin: 0; }

.tlinks { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tlink {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-card); color: var(--ink);
}
.tlink:hover { border-color: var(--brand-line); background: var(--brand-tint); text-decoration: none; }
.tlink__t { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.tlink__d { font-size: 14px; color: var(--muted); }

/* 两栏 */

.twocol { display: block; }
.twocol__side .card:last-child { margin-bottom: 12px; }

/* ------------------------------------------------------------ 固定 CTA */

.site-cta {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 70;
  width: calc(100vw - 24px); max-width: 560px;
  background: var(--surface); border: 1px solid var(--brand-line); border-radius: var(--r-box);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .3);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}
.site-cta__a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; color: var(--ink-2);
}
.site-cta__a:hover { text-decoration: none; color: var(--brand-ink); }
.site-cta__t { font-size: 17px; font-weight: 600; }
.site-cta__n { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.site-cta__latch {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--brand-line);
  animation: bell-press-plus-lamp-warm 3.4s cubic-bezier(.34, .8, .3, 1) infinite;
}
.site-cta__latch i {
  width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--brand-line);
  animation: bell-lamp-warm 3.4s cubic-bezier(.34, .8, .3, 1) infinite;
}

@keyframes bell-press-plus-lamp-warm {
  0%, 62%, 100% { transform: translateY(0); }
  72% { transform: translateY(2px); }
  84% { transform: translateY(0); }
}

@keyframes bell-lamp-warm {
  0%, 58%, 100% { background: var(--brand-line); }
  74%, 82% { background: var(--brand); }
}

/* ------------------------------------------------------------ 浮动圆钮 */

.floaters {
  position: fixed; right: 24px; bottom: calc(var(--cta-space) - 40px); z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
}
.fbtn {
  width: 40px; height: 40px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3);
  color: var(--ink-2); font-size: 16px; line-height: 1;
}
.fbtn:hover { color: var(--brand-ink); border-color: var(--brand-line); }

/* ------------------------------------------------------------ 页脚 */

.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot__in {
  max-width: var(--container); margin: 0 auto; padding: 28px 12px 12px;
  display: flex; flex-direction: column; gap: 20px;
}
.foot__brand a { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.foot__brand p { margin: 8px 0 0; font-size: 14px; color: var(--muted); max-width: 46em; }
.foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.foot__nav > div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot__t { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.foot__c { margin: 0; padding: 14px 12px 24px; text-align: center; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ 检索结果 */

.sres { display: flex; flex-direction: column; gap: 8px; }
.sres__i { font-size: 15px; color: var(--ink-3); }
.sres__e { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------ 断点 */

@media (min-width: 640px) {
  .icards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__in { flex-direction: row; justify-content: space-between; }
  .foot__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 480px; }
}

@media (min-width: 768px) {
  .twocol { display: flex; gap: 8px; align-items: flex-start; }
  .twocol__main { flex: 1 1 70%; min-width: 0; }
  .twocol__side { flex: 0 0 30%; min-width: 0; }
  .icard__badge { flex-basis: 104px; }
}

@media (min-width: 1024px) {
  .menu { display: none; }
  .brand { flex: 0 0 auto; justify-content: flex-start; }
  .tnav { display: flex; align-items: stretch; height: 100%; margin-left: 8px; }
  .tnav__i {
    display: flex; align-items: center; padding: 0 20px; font-size: 16px; color: var(--ink);
    border-bottom: 2px solid transparent;
  }
  .tnav__i:hover { color: var(--brand-ink); text-decoration: none; }
  .tnav__i.is-on { color: var(--brand-ink); border-bottom-color: var(--brand); }
  .hsearch { display: flex; gap: 6px; margin-left: auto; max-width: 320px; flex: 1 1 200px; }
  .hsearch input {
    flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px; font-size: 15px;
    border: 1px solid var(--line-input); border-radius: var(--r-card); color: var(--ink);
  }
  .hsearch input:hover { border-color: var(--focus); }
  .hsearch input:focus { border-color: var(--focus); outline: 2px solid var(--focus-ring); outline-offset: 0; }
  .round-btn { margin-left: 12px; }
  .icards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-cta { width: auto; min-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
