/* 论相「查看三停十二宫标注」社交海报。结构照抄确认稿 lunxiang-high-fidelity #faceMap。 */
.face-map {
  --paper: #F7F1E6;
  --ink: #252019;
  --body: #5F574C;
  --gold: #B8914B;
  --gold-light: #D7B46E;
  --gold-deep: #7A5D2B;
  --seal: #A63D2F;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", sans-serif;
  --zhuan: "Shuowen Zhuan", serif;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(20, 16, 12, .46);
}
.face-map[hidden] { display: none !important; }
.fm-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.fm-scale { position: relative; flex: none; }
.fm-sheet {
  width: 390px;
  height: auto;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  cursor: default;
}
.fm-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.fm-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fm-lockup img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.fm-lockup strong {
  display: block;
  color: var(--ink);
  font: 600 17px/1.35 var(--sans);
  letter-spacing: 0;
}
.fm-lockup p {
  margin: 2px 0 0;
  color: var(--gold-deep);
  font: 400 12px/1.35 var(--sans);
  white-space: nowrap;
}
.fm-title {
  margin: 16px 0 0;
  color: var(--ink);
  font: 700 22px/1.35 var(--serif);
  letter-spacing: 0;
  text-align: center;
}
.fm-kicker {
  margin: 4px 0 12px;
  color: var(--gold-deep);
  font: 400 12px/1.5 var(--sans);
  letter-spacing: 0;
  text-align: center;
}
.fm-hero {
  position: relative;
  height: 448px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(184, 145, 75, .22);
}
.fm-mid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}
.fm-mid > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 46%;
}
.fm-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 241, 230, .94) 0, rgba(247, 241, 230, .78) 16%, rgba(247, 241, 230, .08) 26%, transparent 32%, transparent 68%, rgba(247, 241, 230, .08) 74%, rgba(247, 241, 230, .78) 84%, rgba(247, 241, 230, .94) 100%);
}
.fm-stop {
  position: absolute;
  left: 32%;
  right: 32%;
  z-index: 3;
  height: 0;
  border-top: 0.75px dashed rgba(166, 61, 47, .55);
  pointer-events: none;
}
.fm-call .n {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--seal);
  color: #fffdf8;
  font: 700 10px/1 var(--serif);
  box-shadow: 0 0 0 1px rgba(255, 253, 248, .9), 0 1px 4px rgba(166, 61, 47, .28);
}
.fm-leads {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fm-leads path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fm-leads .glow {
  stroke: rgba(166, 61, 47, .28);
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
}
.fm-leads .core {
  stroke: var(--seal);
  stroke-width: 0.58;
  stroke-dasharray: 4 4;
}
.fm-sides {
  position: absolute;
  inset: 12px 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px 0;
  pointer-events: none;
}
.fm-call {
  min-height: 0;
  padding: 7px 8px 8px;
  border: 1px solid rgba(184, 145, 75, .38);
  border-radius: 4px;
  background: rgba(255, 252, 245, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 4px 14px rgba(37, 32, 25, .08);
  pointer-events: auto;
}
.fm-call.is-1 { grid-column: 1; grid-row: 1; }
.fm-call.is-2 { grid-column: 1; grid-row: 2; }
.fm-call.is-3 { grid-column: 1; grid-row: 3; }
.fm-call.is-4 { grid-column: 3; grid-row: 1; }
.fm-call.is-5 { grid-column: 3; grid-row: 2; }
.fm-call.is-6 { grid-column: 3; grid-row: 3; }
.fm-call header {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.fm-call .n { flex: none; }
.fm-call b {
  min-width: 0;
  color: var(--ink);
  font: 600 13px/1.35 var(--serif);
}
.fm-gongs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0 0;
}
.fm-gongs em {
  flex: none;
  padding: 0 4px;
  border-radius: 2px;
  background: rgba(184, 145, 75, .12);
  color: var(--gold-deep);
  font: 400 10px/1.75 var(--sans);
  font-style: normal;
  white-space: nowrap;
}
.fm-gongs em.is-guan {
  background: rgba(166, 61, 47, .08);
  color: var(--seal);
}
.fm-call p:not(.fm-gongs) {
  margin: 5px 0 0;
  color: var(--body);
  font: 400 12px/1.5 var(--sans);
}
.fm-call p:empty { display: none; }
.fm-stops {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 20px;
}
.fm-stops article {
  padding: 12px 8px;
  border: 1px solid rgba(184, 145, 75, .28);
  border-radius: 10px;
  background: rgba(255, 253, 248, .94);
  text-align: center;
}
.fm-stops span {
  display: block;
  color: var(--seal);
  font: 600 13px/1.35 var(--serif);
}
.fm-stops em {
  display: block;
  color: var(--gold-deep);
  font: 400 12px/1.5 var(--sans);
  font-style: normal;
}
.fm-stops p {
  margin: 6px 0 0;
  color: var(--ink);
  font: 400 12px/1.5 var(--sans);
}
.fm-yun { margin: 0 0 20px; }
.fm-yun h3,
.fm-quote h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 600 15px/1.35 var(--serif);
}
.fm-yun-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fm-yun-grid article {
  padding: 12px 10px 10px;
  border: 1px solid rgba(184, 145, 75, .28);
  border-radius: 10px;
  background: rgba(255, 253, 248, .94);
}
.fm-yun-grid b {
  display: block;
  color: var(--ink);
  font: 600 13px/1.35 var(--serif);
}
.fm-bar {
  display: block;
  height: 3px;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(184, 145, 75, .18);
}
.fm-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.fm-bar--hou i { width: 100%; }
.fm-bar--wen i { width: 70%; }
.fm-bar--zheng i { width: 50%; }
.fm-bar--yang i { width: 30%; }
.fm-yun-grid p {
  margin: 6px 0 0;
  color: var(--body);
  font: 400 12px/1.5 var(--sans);
}
.fm-quote {
  margin: 0 0 8px;
  padding: 8px 4px 0;
  text-align: center;
}
.fm-quote .rule {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font: 700 18px/1.35 var(--serif);
}
.fm-quote .rule::before,
.fm-quote .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 145, 75, .35);
}
.fm-quote p {
  margin: 8px 0 0;
  color: var(--body);
  font: 400 12px/1.5 var(--sans);
}
.fm-quote .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.fm-foot { padding: 8px 0 0; }
.fm-foot-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 68px;
  gap: 8px;
  align-items: center;
}
.fm-foot-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.fm-foot strong {
  display: block;
  color: var(--ink);
  font: 700 17px/1.35 var(--serif);
}
.fm-foot .lead {
  margin: 4px 0 0;
  color: #5f574c;
  font: 400 11px/1.5 var(--sans);
  white-space: nowrap;
}
.fm-foot .url {
  margin: 2px 0 0;
  color: var(--gold-deep);
  font: 400 12px/1.5 var(--sans);
}
.fm-foot-cta {
  margin: 12px 0 0;
  color: #746b60;
  font: 400 12px/1.5 var(--sans);
  text-align: center;
}
.fm-foot .qr {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.fm-dock {
  position: relative;
  z-index: 2;
  flex: none;
  width: 100%;
  background: #fff;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.fm-dock-head {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 52px;
}
.fm-dock-head p {
  margin: 0;
  color: var(--ink);
  font: 600 17px/1.35 var(--sans);
  text-align: center;
}
.fm-dock-x {
  position: absolute;
  top: 4px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #5c5c5c;
}
.fm-dock-x i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f2f2;
}
.fm-dock-x svg { width: 14px; height: 14px; display: block; }
.fm-dock-panel { padding: 0 16px; }
.fm-save {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid #3C3834;
  border-radius: 14px;
  background: #fff;
  color: #3C3834;
  font: 500 17px/1.35 var(--sans);
}
.fm-save .dl {
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("assets/share/share-download.png?v=20260923dl1") center / contain no-repeat;
  mask: url("assets/share/share-download.png?v=20260923dl1") center / contain no-repeat;
}
.fm-wait {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247, 241, 230, .78);
  color: var(--ink);
  font: 500 15px/1.35 var(--sans);
}
.fm-wait[hidden] { display: none !important; }
.fm-wait i {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 2px solid rgba(166, 61, 47, .22);
  border-top-color: var(--seal);
  border-radius: 50%;
  animation: fm-spin .8s linear infinite;
}
@keyframes fm-spin {
  to { transform: rotate(360deg); }
}
