:root {
  --bg: #fff2df;
  --paper: #fffaf3;
  --card: #ffffff;
  --ink: #201813;
  --muted: #857a70;
  --line: #e7d7bf;
  --gold: #c2953c;
  --red: #a94437;
  --blue: #3269a6;
  --shadow: 0 14px 36px rgba(68, 45, 25, 0.12);
  --wentian-safe-top: env(safe-area-inset-top, 0px);
  --wentian-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: #fff6ea;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  overscroll-behavior-y: auto;
  -webkit-font-smoothing: antialiased;
}

body.liuyao-caster-open {
  overflow: hidden;
}

button,
input,
select,
textarea { font: inherit; }

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  padding-top: var(--wentian-safe-top);
  padding-bottom: var(--wentian-safe-bottom);
}

.app-rail {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.rail-nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.screen-nav {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 330px);
  overflow: auto;
  margin-top: 18px;
  padding-right: 4px;
}

.rail-nav button,
.screen-nav button {
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 13px 14px;
  text-align: left;
}

.screen-nav button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
}

.rail-nav button.is-active,
.screen-nav button.is-active {
  background: #fff1dc;
  color: #201813;
}

.app-main {
  display: grid;
  place-items: start center;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100dvh;
  padding: 0;
  background: #fff6ea;
}

.topbar {
  display: none;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 22px;
}

.topbar p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: 0;
}

.view {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
}

.seo-fallback {
  display: none !important;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-card,
.panel,
.report-card,
.profile-card,
.chat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  background: linear-gradient(135deg, #9f3c35, #bb564c);
  color: white;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.hero-card p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 20px;
}

.report-list,
.stack {
  display: grid;
  gap: 14px;
}

.report-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
}

.report-card h3,
.profile-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.report-card p,
.profile-card p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.price {
  color: #9d271f;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fbf1e5;
  color: #9a6b33;
  font-size: 13px;
  font-weight: 700;
}

.primary-btn,
.ghost-btn,
.choice-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 16px;
}

.primary-btn {
  border-color: transparent;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.primary-btn.blue { background: var(--blue); }
.primary-btn.small { min-height: 38px; }

.ghost-btn,
.choice-btn {
  background: var(--paper);
  color: var(--ink);
}

.choice-btn.is-selected {
  border-color: var(--gold);
  background: #fff8e8;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.profile-card {
  padding: 16px;
}

.chat-card {
  display: grid;
  min-height: 620px;
  overflow: hidden;
}

.chat-head,
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.chat-input {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.chat-input input {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
}

.messages {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: #fff6ea;
}

.bubble {
  max-width: min(620px, 86%);
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.7;
}

.bubble.user {
  justify-self: end;
  background: #c5a66b;
  color: white;
}

.bubble.ai {
  justify-self: start;
  background: white;
  border: 1px solid var(--line);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 18px;
}

.plan strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.phone-wrap {
  display: flex;
  justify-content: center;
  width: var(--wentian-phone-layout-width, 100%);
  max-width: none;
  overflow: hidden;
  padding: 0;
}

.figma-phone {
  position: relative;
  flex: 0 0 auto;
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: #fff6ea;
  color: #201813;
  box-shadow: none;
  transform: scale(var(--wentian-phone-scale, 1));
  transform-origin: top center;
}

.figma-phone.converted {
  background: #fff6ea;
}

.figma-phone * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.figma-phone[data-node-id="screen-4"] [data-node-id^="source-bottom-"] {
  display: none;
}

.fig-text,
.fig-box,
.fig-line,
.fig-img,
.fig-click {
  position: absolute;
}

.fig-text {
  margin: 0;
  line-height: 1.28;
  white-space: pre-wrap;
  pointer-events: none;
}

html[lang="en"] .fig-text {
  line-height: 1.18;
}

html[lang="en"] [data-node-id="source-1-hero-title"] {
  width: 174px !important;
  font-size: 24px !important;
}

html[lang="en"] [data-node-id^="source-1-feature-title-"] {
  font-size: 17px !important;
}

html[lang="en"] [data-node-id^="source-1-feature-sub-"] {
  font-size: 11px !important;
}

html[lang="en"] [data-node-id="source-1-recommend-title"] {
  width: 180px !important;
  font-size: 20px !important;
}

html[lang="en"] [data-node-id="source-25-gender-text-0"],
html[lang="en"] [data-node-id="source-25-gender-text-1"] {
  font-size: 8px !important;
}

html[lang="en"] [data-node-id="source-31-stat-count-1"] {
  font-size: 16px !important;
}

html[lang="en"] [data-node-id^="yz42-gua-"],
html[lang="en"] [data-node-id^="yz44-gua-"] {
  font-size: 9px !important;
  line-height: 1.05 !important;
}

html[lang="en"] [data-node-id="wt15-paper"] {
  left: 82px !important;
  width: 226px !important;
}

html[lang="en"] [data-node-id="wt15-paper-title"] {
  left: 116px !important;
  width: 128px !important;
  font-size: 11px !important;
}

html[lang="en"] [data-node-id="wt15-poem"] {
  left: 112px !important;
  top: 254px !important;
  width: 166px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

html[lang="en"] [data-node-id="wt15-side-copy"] {
  left: 112px !important;
  top: 414px !important;
  width: 166px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

html[lang="en"] [data-node-id="wt15-seal"],
html[lang="en"] [data-node-id="wt15-seal-text"] {
  left: 262px !important;
}

.fig-click {
  border: 0;
  padding: 0;
  color: inherit;
  text-align: inherit;
  background: transparent;
}

.fig-img {
  display: block;
  object-fit: cover;
}

.yangzhai-direction-cross {
  position: absolute;
  display: block;
  z-index: 12;
  border: 1px solid rgba(205, 174, 126, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.96) 0 18%, rgba(255, 246, 231, 0.82) 19% 44%, rgba(222, 194, 150, 0.18) 45% 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.34), 0 8px 18px rgba(98, 58, 28, 0.08);
  color: #8a5a22;
  pointer-events: none;
}

.yangzhai-direction-cross .yz-cross-ring,
.yangzhai-direction-cross .yz-cross-line,
.yangzhai-direction-cross .yz-cross-dot,
.yangzhai-direction-cross .yz-dir {
  position: absolute;
  display: block;
}

.yangzhai-direction-cross .yz-cross-ring {
  inset: 18%;
  border: 1px solid rgba(194, 159, 103, 0.45);
  border-radius: 50%;
}

.yangzhai-direction-cross .yz-cross-line {
  background: linear-gradient(90deg, rgba(165, 74, 58, 0), rgba(165, 74, 58, 0.72), rgba(165, 74, 58, 0));
  pointer-events: none;
}

.yangzhai-direction-cross .yz-cross-line-ns {
  left: calc(50% - 1px);
  top: 15%;
  bottom: 15%;
  width: 2px;
  background: linear-gradient(180deg, rgba(165, 74, 58, 0), rgba(165, 74, 58, 0.74), rgba(165, 74, 58, 0));
}

.yangzhai-direction-cross .yz-cross-line-ew {
  top: calc(50% - 1px);
  left: 15%;
  right: 15%;
  height: 2px;
}

.yangzhai-direction-cross .yz-cross-dot {
  left: 50%;
  top: 50%;
  width: 9%;
  height: 9%;
  border-radius: 50%;
  background: #a94437;
  box-shadow: 0 0 0 4px rgba(255, 250, 243, 0.92);
  transform: translate(-50%, -50%);
}

.yangzhai-direction-cross .yz-dir {
  width: 28px;
  height: 18px;
  font-size: 13px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.9);
}

.yangzhai-direction-cross .yz-n { left: calc(50% - 14px); top: 5%; }
.yangzhai-direction-cross .yz-e { right: 4%; top: calc(50% - 9px); }
.yangzhai-direction-cross .yz-s { left: calc(50% - 14px); bottom: 5%; }
.yangzhai-direction-cross .yz-w { left: 4%; top: calc(50% - 9px); }

.yangzhai-direction-cross.is-compact .yz-dir {
  width: 22px;
  height: 14px;
  font-size: 10px;
  line-height: 14px;
}

.yangzhai-direction-cross.is-compact .yz-n,
.yangzhai-direction-cross.is-compact .yz-s {
  left: calc(50% - 11px);
}

.yangzhai-direction-cross[data-yangzhai-compass-cross] {
  --yangzhai-sight-reach-x: -133px;
  --yangzhai-sight-reach-y: -183px;
  transform: rotate(var(--yangzhai-luopan-rotation, 0deg));
  transform-origin: center;
  transition: transform 0.08s linear, border-color 0.16s ease, box-shadow 0.16s ease;
  will-change: transform;
}

.yangzhai-direction-cross[data-yangzhai-compass-cross].is-compass-active {
  border-color: rgba(169, 68, 55, 0.5);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42), 0 9px 20px rgba(98, 58, 28, 0.12);
}

.yangzhai-direction-cross[data-yangzhai-compass-cross].is-cardinal-aligned {
  border-color: rgba(93, 137, 96, 0.78);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.44),
    0 0 0 4px rgba(111, 158, 104, 0.14),
    0 10px 22px rgba(72, 105, 60, 0.16);
}

.yangzhai-direction-cross[data-yangzhai-compass-cross].is-compass-active .yz-cross-line-ns {
  top: var(--yangzhai-sight-reach-y);
  bottom: var(--yangzhai-sight-reach-y);
  width: 1px;
  left: calc(50% - 0.5px);
  background: linear-gradient(
    180deg,
    rgba(169, 68, 55, 0),
    rgba(169, 68, 55, 0.38) 18%,
    rgba(169, 68, 55, 0.58) 50%,
    rgba(169, 68, 55, 0.38) 82%,
    rgba(169, 68, 55, 0)
  );
}

.yangzhai-direction-cross[data-yangzhai-compass-cross].is-cardinal-aligned .yz-cross-line-ns {
  background: linear-gradient(
    180deg,
    rgba(93, 137, 96, 0),
    rgba(93, 137, 96, 0.52) 18%,
    rgba(93, 137, 96, 0.82) 50%,
    rgba(93, 137, 96, 0.52) 82%,
    rgba(93, 137, 96, 0)
  );
}

.yangzhai-direction-cross[data-yangzhai-compass-cross].is-compass-active .yz-cross-line-ew {
  left: var(--yangzhai-sight-reach-x);
  right: var(--yangzhai-sight-reach-x);
  height: 1px;
  top: calc(50% - 0.5px);
  background: linear-gradient(
    90deg,
    rgba(169, 68, 55, 0),
    rgba(169, 68, 55, 0.38) 18%,
    rgba(169, 68, 55, 0.58) 50%,
    rgba(169, 68, 55, 0.38) 82%,
    rgba(169, 68, 55, 0)
  );
}

.yangzhai-direction-cross[data-yangzhai-compass-cross].is-cardinal-aligned .yz-cross-line-ew {
  background: linear-gradient(
    90deg,
    rgba(93, 137, 96, 0),
    rgba(93, 137, 96, 0.52) 18%,
    rgba(93, 137, 96, 0.82) 50%,
    rgba(93, 137, 96, 0.52) 82%,
    rgba(93, 137, 96, 0)
  );
}

.yangzhai-compass-close-ui {
  display: none;
}

.view.is-yangzhai-compass-on .yangzhai-compass-open-ui {
  display: none;
}

.view.is-yangzhai-compass-on .yangzhai-compass-close-ui {
  display: block;
}

.yangzhai-compass-label {
  pointer-events: none;
}

.yangzhai-inline-compass-status {
  position: absolute;
  color: #7a6a58;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.yangzhai-inline-compass-status[data-tone="active"] {
  color: #8a3d32;
}

.yangzhai-inline-compass-status[data-tone="warn"] {
  color: #a94437;
}

.yangzhai-inline-compass-status[data-tone="ready"] {
  color: #5b8a5f;
}

.yangzhai-placement-prompt {
  position: absolute;
  z-index: 14;
  color: #8a7254;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.yangzhai-placement-prompt[data-tone="active"] {
  color: #8a5a22;
}

.yangzhai-placement-prompt[data-tone="ready"] {
  color: #4f8655;
}

.fig-card {
  background: #fff;
  border: 1px solid #e7d7bf;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fig-pill {
  border-radius: 999px;
}

.fig-home-indicator {
  display: none;
}

.converted-card {
  position: absolute;
  border: 1px solid #e7d7bf;
  border-radius: 14px;
  background: #fff;
}

.wentian-chart-input,
.wentian-chart-select {
  position: absolute;
  height: 40px;
  border: 0;
  background: transparent;
  color: #201813;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
  outline: 0;
}

.wentian-chart-input::placeholder {
  color: #948879;
}

.wentian-chart-select {
  border-radius: 12px;
  padding: 0 12px;
  background: #f7ead8;
  color: #514238;
  text-align: center;
  text-align-last: center;
}

.wentian-chart-toggle {
  position: absolute;
  width: 46px;
  height: 28px;
  cursor: pointer;
}

.wentian-chart-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wentian-chart-toggle span {
  position: absolute;
  inset: 3px 0;
  border-radius: 14px;
  background: #efe2d0;
  pointer-events: none;
}

.wentian-chart-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #e0d4c5;
  transition: transform .16s ease, background .16s ease;
}

.wentian-chart-toggle input:checked + span {
  background: #ead9bd;
}

.wentian-chart-toggle input:checked + span::after {
  transform: translateX(18px);
  background: #c2953c;
}

.wentian-chart-status {
  position: absolute;
  left: 24px;
  top: 804px;
  width: 342px;
  color: #9b7a3f;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.wentian-chart-status[data-tone="error"] {
  color: #a94437;
}

.wentian-chart-card {
  position: absolute;
  left: 18px;
  top: 142px;
  width: 354px;
  padding: 12px 14px;
  border: 1px solid #e5d6be;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 16px 36px rgba(89, 56, 28, 0.08);
}

.wentian-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid #eadfce;
}

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

.wentian-chart-row.stack {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.wentian-chart-row.two {
  justify-content: space-between;
}

.wentian-chart-label {
  flex: 0 0 auto;
  color: #2b251c;
  font-size: 15px;
  font-weight: 800;
}

.wentian-chart-label-wide {
  width: 100%;
}

.wentian-chart-label small {
  margin-left: 4px;
  color: #9b8f7f;
  font-size: 11px;
  font-weight: 500;
}

.wentian-chart-control,
.wentian-chart-card input,
.wentian-chart-card select {
  min-width: 0;
  height: 34px;
  border: 1px solid #e4d6c3;
  border-radius: 10px;
  background: #fffaf3;
  color: #2b251c;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.wentian-chart-card input,
.wentian-chart-card select {
  padding: 0 10px;
}

.wentian-chart-card input::placeholder {
  color: #a99e90;
}

.wentian-chart-name {
  flex: 1 1 auto;
  text-align: center;
}

.wentian-chart-segment {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #e3d2b8;
  border-radius: 12px;
  background: #f5ebdc;
}

.wentian-chart-segment button {
  height: 28px;
  min-width: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7a6a59;
  font-size: 13px;
  font-weight: 800;
}

.wentian-chart-segment button.active {
  background: #9e4738;
  color: #fffdf6;
  box-shadow: 0 5px 12px rgba(123, 49, 41, 0.16);
}

.wentian-chart-date-grid,
.wentian-chart-time-grid {
  display: grid;
  gap: 8px;
  width: 100%;
}

.wentian-chart-date-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.wentian-chart-time-grid {
  grid-template-columns: 1fr 1fr;
}

.wentian-chart-city-wrap {
  position: relative;
  width: 100%;
}

.wentian-chart-city-input {
  width: 100%;
  padding-right: 52px !important;
}

.wentian-chart-city-clear {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #9b8f7f;
  font-size: 12px;
}

.wentian-chart-city-dropdown {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: 42px;
  max-height: 156px;
  overflow-y: auto;
  border: 1px solid #e1d0b8;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 16px 34px rgba(65, 43, 23, 0.14);
}

.wentian-chart-city-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f0e6d8;
  background: transparent;
  color: #2b251c;
  font-size: 13px;
  text-align: left;
}

.wentian-chart-city-item:last-child {
  border-bottom: 0;
}

.wentian-chart-city-item span {
  color: #9b8f7f;
  font-size: 11px;
}

.wentian-chart-preview {
  min-height: 17px;
  color: #8d7d69;
  font-size: 11px;
  line-height: 1.45;
}

.wentian-chart-leap-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8d7d69;
  font-size: 12px;
  white-space: nowrap;
}

.wentian-chart-label-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wentian-chart-help-btn {
  flex: 0 0 auto;
  min-width: 0;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #e5c887;
  border-radius: 999px;
  background: #fff7df;
  color: #9b6c1f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wentian-chart-tst-help {
  margin: -2px 0 6px;
  padding: 10px 12px;
  border: 1px solid #ead8b8;
  border-radius: 12px;
  background: #fff9eb;
  color: #6f5d49;
  font-size: 11px;
  line-height: 1.5;
}

.wentian-chart-tst-help p {
  margin: 0 0 6px;
}

.wentian-chart-tst-help p:last-child {
  margin-bottom: 0;
}

.wentian-chart-tst {
  padding: 7px 10px;
  border: 1px solid #ecdcc2;
  border-radius: 12px;
  background: #fbf2df;
  color: #7d6a55;
  font-size: 11px;
  line-height: 1.35;
}

.wentian-chart-card .wentian-chart-toggle {
  position: relative;
  width: 46px;
  height: 28px;
}

.wentian-native-mingpan {
  position: absolute;
  left: 0;
  top: 106px;
  width: 390px;
  height: 486px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #201813;
}

.wentian-native-mingpan .fc-card {
  width: 390px;
  margin: 0;
  padding: 0;
  background: #f6ead9;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.wentian-native-mingpan .fc-grid-wrap {
  padding: 0 8px 6px;
}

.wentian-native-mingpan .fc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  border: 1px solid #e2cfb8;
  background: #e2cfb8;
}

.wentian-native-mingpan .fc-cell,
.wentian-native-mingpan .fc-center-panel {
  min-height: 0;
  overflow: hidden;
  background: #fffaf3;
}

.wentian-native-mingpan .fc-cell {
  position: relative;
  z-index: 1;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.wentian-native-mingpan .fc-cell.fc-ben {
  background: #ffe9de;
  box-shadow: inset 0 0 0 2px #a74437, 0 0 0 1px rgba(167, 68, 55, 0.18);
  transform: translateY(-1px);
}

.wentian-native-mingpan .fc-cell.fc-rel {
  background: #fff0d6;
}

.wentian-native-mingpan .fc-cell.fc-sanhe {
  background: #fff5cf;
  box-shadow: inset 0 0 0 2px #c0912d;
}

.wentian-native-mingpan .fc-cell.fc-dui {
  background: #eaf6f2;
  box-shadow: inset 0 0 0 2px #4b9a83;
}

.wentian-native-mingpan .fc-cell.fc-xiaolian {
  background:
    radial-gradient(circle at 84% 80%, rgba(210, 138, 49, .24), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 235, .98), rgba(255, 238, 207, .94)) !important;
  outline: 2px solid rgba(192, 120, 32, .9);
  outline-offset: -2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .78),
    inset 0 0 22px rgba(192, 120, 32, .18),
    0 0 0 1px rgba(192, 120, 32, .18);
}

.wentian-native-mingpan .fc-cell.fc-xiaolian > * {
  position: relative;
  z-index: 2;
}

.wentian-native-mingpan .fc-cell.fc-xiaolian.is-locating {
  animation: wentianFcXiaoLianCellPulse 1.7s ease-out 1;
}

.wentian-native-mingpan .fc-cell.fc-xiaolian.is-locating::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 1;
  border-radius: 6px;
  background: linear-gradient(115deg, transparent 0%, transparent 34%, rgba(255, 255, 255, .74) 48%, transparent 62%, transparent 100%);
  pointer-events: none;
  animation: wentianFcXiaoLianSweep 1.15s ease-out 1;
}

.wentian-native-mingpan .fc-cell.fc-xiaolian.is-locating::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 2px solid rgba(192, 120, 32, .96);
  border-radius: 6px;
  pointer-events: none;
  box-shadow:
    0 0 0 0 rgba(192, 120, 32, .34),
    inset 0 0 18px rgba(192, 120, 32, .18);
  animation: wentianFcXiaoLianRing 1.7s ease-out 1;
}

.wentian-native-mingpan .fc-xiaolian-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d99a3e, #a96018);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow:
    0 2px 8px rgba(117, 65, 16, .32),
    0 0 0 2px rgba(255, 255, 255, .55);
}

@keyframes wentianFcXiaoLianCellPulse {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  24% {
    filter: brightness(1.16) saturate(1.08);
    transform: scale(1.012);
  }
  58% {
    filter: brightness(1.06);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes wentianFcXiaoLianSweep {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }
  22% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}

@keyframes wentianFcXiaoLianRing {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(192, 120, 32, .3);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 10px rgba(192, 120, 32, 0);
  }
}

.wentian-native-mingpan .fc-sanfang-lines {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.wentian-native-mingpan .fc-sanfang-lines.is-empty {
  display: none;
}

.wentian-native-mingpan .fc-sanfang-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.wentian-native-mingpan .fc-sanfang-triangle,
.wentian-native-mingpan .fc-sanfang-opposite {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 6;
  vector-effect: non-scaling-stroke;
}

.wentian-native-mingpan .fc-sanfang-triangle {
  stroke: rgba(151, 82, 48, .30);
  stroke-width: .9;
  filter: drop-shadow(0 0 1px rgba(255, 250, 238, .38));
}

.wentian-native-mingpan .fc-sanfang-opposite {
  stroke: rgba(66, 52, 43, .24);
  stroke-width: .85;
}

.wentian-native-mingpan .fc-sanfang-line-sanhe {
  stroke: rgba(198, 144, 48, .62);
  stroke-width: 1.35;
}

.wentian-native-mingpan .fc-sanfang-line-triangle {
  stroke: rgba(128, 91, 170, .38);
  stroke-width: 1.1;
  stroke-dasharray: 5 4;
}

.wentian-native-mingpan .fc-sanfang-line-opposite {
  stroke: rgba(60, 139, 119, .52);
  stroke-width: 1.15;
  stroke-dasharray: 7 4;
}

.wentian-native-mingpan .fc-sanfang-point {
  fill: rgba(198, 144, 48, .76);
  stroke: rgba(255, 250, 238, .7);
  stroke-width: .4;
  vector-effect: non-scaling-stroke;
}

.wentian-native-mingpan .fc-sanfang-point.is-opposite {
  fill: rgba(60, 139, 119, .72);
}

.wentian-native-mingpan .fc-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  overflow: hidden;
}

.wentian-native-mingpan .fc-major-list,
.wentian-native-mingpan .fc-minor-list,
.wentian-native-mingpan .fc-shen-list,
.wentian-native-mingpan .fc-palace-info {
  display: flex;
  flex-direction: column;
}

.wentian-native-mingpan .fc-major-star {
  color: #201813;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.wentian-native-mingpan .fc-minor-list {
  align-items: flex-end;
  gap: 1px;
}

.wentian-native-mingpan .fc-minor-star {
  color: #7a6d60;
  font-size: 8.5px;
  line-height: 1.25;
  white-space: nowrap;
}

.wentian-native-mingpan .fc-cell-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2px;
}

.wentian-native-mingpan .fc-shen-list {
  color: #8f8173;
  font-size: 8px;
  line-height: 1.3;
}

.wentian-native-mingpan .fc-palace-info {
  flex: 1;
  align-items: center;
  margin-left: 2px;
}

.wentian-native-mingpan .fc-branch {
  color: #514238;
  font-size: 9.5px;
  line-height: 1.2;
}

.wentian-native-mingpan .fc-age {
  margin: 1px 0;
  color: #7a6d60;
  font-size: 8.5px;
  line-height: 1.2;
}

.wentian-native-mingpan .fc-palace-name {
  color: #201813;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  white-space: pre-line;
}

.wentian-native-mingpan .fc-cell-mutagen {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 2px;
}

.wentian-native-mingpan .fc-pal-mutagen {
  display: inline-block;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.35;
}

html[lang="en"] .wentian-native-mingpan .fc-cell {
  padding: 3px 4px;
}

html[lang="en"] .wentian-native-mingpan .fc-major-star {
  font-size: 8.6px;
  line-height: 1.08;
  max-width: 54px;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

html[lang="en"] .wentian-native-mingpan .fc-minor-star,
html[lang="en"] .wentian-native-mingpan .fc-shen-list span {
  font-size: 7px;
  line-height: 1.08;
  max-width: 46px;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

html[lang="en"] .wentian-native-mingpan .fc-pal-mutagen {
  padding: 1px 2px;
  font-size: 6px;
  line-height: 1.2;
}

html[lang="en"] .wentian-native-mingpan .fc-palace-info {
  font-size: 7px;
}

html[lang="en"] .wentian-native-mingpan .fc-palace-name {
  font-size: 8.8px;
  line-height: 1.05;
}

html[lang="en"] .wentian-native-mingpan .fc-branch,
html[lang="en"] .wentian-native-mingpan .fc-age {
  font-size: 7px;
  line-height: 1.05;
}

.wentian-native-mingpan .fc-pal-mutagen.fc-mutagen-lu {
  color: #2f8c72;
  background: #e6f4ea;
}

.wentian-native-mingpan .fc-pal-mutagen.fc-mutagen-quan {
  color: #6b3fa0;
  background: #f0e8f8;
}

.wentian-native-mingpan .fc-pal-mutagen.fc-mutagen-ke {
  color: #3269a6;
  background: #e8eef7;
}

.wentian-native-mingpan .fc-pal-mutagen.fc-mutagen-ji {
  color: #9d3329;
  background: #fcecea;
}

.wentian-native-mingpan .fc-center-panel {
  position: relative;
  z-index: 4;
  padding: 8px 9px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: visible;
}

.wentian-native-mingpan .fc-center-title {
  color: #201813;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
}

.wentian-native-mingpan .fc-center-meta,
.wentian-native-mingpan .fc-center-row,
.wentian-native-mingpan .fc-gua-row {
  display: flex;
  align-items: center;
  color: #7a6d60;
  font-size: 7.7px;
  line-height: 1.2;
}

.wentian-native-mingpan .fc-center-meta {
  justify-content: center;
  gap: 5px;
}

.wentian-native-mingpan .fc-center-name,
.wentian-native-mingpan .fc-center-val {
  color: #514238;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wentian-native-mingpan .fc-center-lbl {
  width: 38px;
  flex: 0 0 38px;
}

.wentian-native-mingpan .fc-center-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wentian-native-mingpan .fc-sizhu {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 3px;
}

.wentian-native-mingpan .fc-center-sizhu-row {
  align-items: flex-start;
}

.wentian-native-mingpan .fc-center-sizhu-row .fc-sizhu {
  flex: 1;
  justify-content: flex-start;
  margin-top: 0;
}

.wentian-native-mingpan .fc-sizhu-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-native-mingpan .fc-gua-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 2px;
  border-top: 1px solid rgba(226, 207, 184, .75);
}

.wentian-native-mingpan .fc-xiaolian-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 19px;
  margin-top: 1px;
  color: #8a7a69;
  font-size: 8px;
  font-weight: 800;
}

.wentian-native-mingpan .fc-xiaolian-control > summary {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.wentian-native-mingpan .fc-xiaolian-control summary::-webkit-details-marker {
  display: none;
}

.wentian-native-mingpan .fc-xiaolian-control b {
  min-width: 48px;
  height: 18px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 149, 60, .55);
  border-radius: 999px;
  background: #fff8ee;
  color: #514238;
  font-size: 9px;
  font-weight: 900;
}

.wentian-native-mingpan .fc-xiaolian-control i {
  width: 6px;
  height: 6px;
  border-right: 1px solid #c2953c;
  border-bottom: 1px solid #c2953c;
  transform: rotate(45deg) translateY(-2px);
}

.wentian-native-mingpan .fc-xiaolian-menu {
  position: absolute;
  right: 0;
  top: auto;
  bottom: calc(100% + 6px);
  z-index: 30;
  width: 98px;
  max-height: 106px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #e0c99d;
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 0 10px 22px rgba(75, 48, 22, .16);
}

.wentian-native-mingpan .fc-xiaolian-menu button {
  width: 100%;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #514238;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.wentian-native-mingpan .fc-xiaolian-menu button.is-selected {
  background: #f4e8d3;
  color: #9e4738;
}

.wentian-native-mingpan .fc-center-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2px 4px 0;
}

.wentian-native-mingpan .fc-center-btn {
  flex: 1;
  width: auto;
  height: 20px;
  border: 1px solid rgba(158, 71, 56, .55);
  border-radius: 10px;
  background: #fff8ee;
  color: #9e4738;
  font-size: 9px;
  font-weight: 900;
  line-height: 16px;
  cursor: pointer;
}

.wentian-native-mingpan .fc-center-btn:active {
  background: #f0dfcf;
  transform: translateY(1px);
}

.wentian-native-mingpan .wentian-fc-note {
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px solid #e7d7bf;
  color: #7a6d60;
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
}

.wentian-chat-profile-tag {
  position: absolute;
  left: 248px;
  top: 22px;
  z-index: 36;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 88px;
  height: 44px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(194, 149, 60, .34);
  border-radius: 15px 11px 11px 15px;
  background: linear-gradient(135deg, #fffdf8 0%, #fff4dc 100%);
  color: #4f3620;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(122, 82, 25, .12), inset 0 0 0 1px rgba(255, 255, 255, .62);
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.wentian-chat-profile-tag.is-context {
  cursor: pointer;
  pointer-events: auto;
}

.wentian-chat-profile-tag::after {
  position: absolute;
  right: -7px;
  top: 15px;
  width: 13px;
  height: 13px;
  border-top: 1px solid rgba(194, 149, 60, .34);
  border-right: 1px solid rgba(194, 149, 60, .34);
  background: #fff4dc;
  content: "";
  transform: rotate(45deg);
  box-shadow: 4px -4px 10px rgba(122, 82, 25, .06);
}

.wentian-chat-profile-tag:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(122, 82, 25, .10), inset 0 0 0 1px rgba(255, 255, 255, .62);
}

.wentian-chat-profile-tag.is-context:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(122, 82, 25, .10), inset 0 0 0 1px rgba(255, 255, 255, .62);
}

.wentian-chat-profile-tag.is-context .wentian-chat-profile-copy {
  margin-right: auto;
}

.wentian-chat-profile-tag:focus-visible {
  outline: 2px solid rgba(194, 149, 60, .62);
  outline-offset: 3px;
}

.wentian-chat-profile-seal {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cf9d33, #a87925);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(151, 105, 31, .18);
}

.wentian-chat-profile-seal::before {
  content: attr(data-profile-icon);
}

.wentian-chat-profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  line-height: 1;
}

.wentian-chat-profile-copy b {
  overflow: hidden;
  color: #201813;
  font-size: 12px;
  font-weight: 900;
  line-height: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wentian-chat-profile-copy small {
  margin-top: 2px;
  color: #a47a32;
  font-size: 9px;
  font-weight: 800;
  line-height: 10px;
  white-space: nowrap;
}

.wentian-chat-profile-caret {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: #8d6a30;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.wentian-chat-status {
  position: absolute;
  left: 100px;
  top: 102px;
  width: 190px;
  height: 24px;
  border-radius: 12px;
  background: rgba(224, 214, 199, .58);
  color: #8d8377;
  font-size: 11px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.wentian-chat-status[data-tone="ok"] {
  color: #5f8745;
}

.wentian-chat-status[data-tone="warn"] {
  color: #b78322;
}

.wentian-chat-status[data-tone="error"] {
  color: #a94437;
}

.wentian-chat-context-card {
  position: absolute;
  left: 22px;
  top: 132px;
  display: grid;
  gap: 4px;
  width: 346px;
  min-height: 78px;
  padding: 11px 13px;
  border: 1px solid rgba(194, 149, 60, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf1, #f5ead8);
  box-shadow: 0 7px 18px rgba(112, 79, 39, .08);
}

.wentian-chat-context-card span {
  color: #a97925;
  font-size: 11px;
  font-weight: 900;
}

.wentian-chat-context-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #241d18;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wentian-chat-context-card em {
  overflow: hidden;
  color: #7d7165;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wentian-chat-context-mask {
  position: absolute;
  inset: 0;
  z-index: 118;
  background: rgba(44, 34, 23, .22);
  backdrop-filter: blur(1px);
}

.wentian-chat-context-sheet {
  position: absolute;
  left: 18px;
  top: 456px;
  z-index: 119;
  box-sizing: border-box;
  width: 354px;
  max-height: 344px;
  overflow-y: auto;
  padding: 9px 12px 14px;
  border: 1px solid rgba(194, 149, 60, .28);
  border-radius: 20px 20px 16px 16px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(64, 43, 20, .22);
}

.wentian-chat-context-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #e6d8c1;
}

.wentian-chat-context-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wentian-chat-context-sheet header span {
  color: #241d18;
  font-size: 15px;
  font-weight: 900;
}

.wentian-chat-context-sheet header button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: #f5ead8;
  color: #9a6d2d;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
}

.wentian-chat-context-rows {
  display: grid;
  gap: 8px;
}

.wentian-chat-context-rows article {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fffaf1;
}

.wentian-chat-context-rows span {
  color: #a97925;
  font-size: 10px;
  font-weight: 900;
}

.wentian-chat-context-rows strong {
  color: #241d18;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.38;
}

.wentian-chat-log {
  position: absolute;
  left: 22px;
  top: 136px;
  width: 346px;
  height: 418px;
  overflow-y: auto;
  padding: 2px 2px 16px;
}

.wentian-chat-log.is-with-context {
  top: 224px;
  height: 330px;
}

.wentian-chat-log::-webkit-scrollbar {
  width: 3px;
}

.wentian-chat-log::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(194, 149, 60, .24);
}

.wentian-chat-msg {
  position: relative;
  width: fit-content;
  max-width: 292px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #e7d7bf;
  border-radius: 14px;
  background: #fff;
  color: #514238;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(74, 55, 32, .06);
}

.wentian-chat-msg p {
  margin: 0 0 9px;
}

.wentian-chat-msg p:last-child {
  margin-bottom: 0;
}

.wentian-chat-msg:not(.is-user):not(.is-system) {
  margin-left: 38px;
  border-radius: 4px 14px 14px;
}

.wentian-chat-msg:not(.is-user):not(.is-system)::before {
  position: absolute;
  left: -38px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: url("../images/wentian-prototype-assets/xu-dashi.jpg") center 18% / cover;
  content: "";
  box-shadow: 0 2px 7px rgba(70, 45, 25, .12);
}

.wentian-chat-msg.is-user {
  margin-right: 38px;
  margin-left: auto;
  border-color: rgba(194, 149, 60, .26);
  border-radius: 14px 4px 14px 14px;
  background: linear-gradient(180deg, #c9a14a, #bc8f34);
  color: #fff;
}

.wentian-chat-msg.is-user::after {
  position: absolute;
  right: -38px;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1d796, #c2953c);
  color: #6d4615;
  content: attr(data-avatar);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 7px rgba(70, 45, 25, .14);
}

.wentian-chat-msg.is-system {
  max-width: 342px;
  margin-right: auto;
  margin-left: auto;
  border-color: rgba(179, 58, 47, .18);
  background: #fff1ea;
  color: #a94437;
  text-align: center;
  box-shadow: none;
}

.wentian-chat-msg.is-pending {
  min-width: 156px;
  color: #6b5a47;
  background: #fffdf8;
}

.wentian-chat-thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.wentian-chat-thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2953c;
  opacity: .34;
  animation: wentian-thinking-dot 1s ease-in-out infinite;
}

.wentian-chat-thinking i:nth-child(2) {
  animation-delay: .14s;
}

.wentian-chat-thinking i:nth-child(3) {
  animation-delay: .28s;
}

.wentian-chat-thinking em {
  color: #7f715f;
  font-style: normal;
  font-weight: 800;
}

.wentian-chat-msg.is-typing::after {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: #bd8624;
  content: "";
  vertical-align: -2px;
  animation: wentian-type-caret .9s steps(1) infinite;
}

@keyframes wentian-type-caret {
  50% {
    opacity: 0;
  }
}

@keyframes wentian-thinking-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .34;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.wentian-chat-scroll-bottom {
  position: absolute;
  left: 144px;
  top: 548px;
  z-index: 68;
  height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(194, 149, 60, .32);
  border-radius: 14px;
  background: rgba(255, 253, 248, .96);
  color: #946b2d;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 26px;
  box-shadow: 0 8px 18px rgba(70, 45, 25, .12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.wentian-chat-scroll-bottom.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wentian-chat-chip {
  position: absolute;
  top: 704px;
  height: 34px;
  min-width: 82px;
  padding: 0 16px;
  border: 0;
  border-radius: 17px;
  background: #fff;
  color: #201813;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 34px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .05);
}

.wentian-chat-starters {
  position: absolute;
  left: 18px;
  top: 608px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 354px;
  max-height: 160px;
  overflow-y: auto;
  padding: 0 4px 5px;
  scrollbar-width: none;
  transition: max-height .2s ease;
}

.wentian-chat-starters.is-expanded {
  overflow: visible;
}

.wentian-chat-starters::-webkit-scrollbar {
  display: none;
}

.wentian-chat-faq-group {
  min-width: 0;
}

.wentian-chat-faq-group[open] {
  grid-column: 1 / -1;
}

.wentian-chat-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 31px;
  padding: 0 12px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff;
  color: #201813;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 31px;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .04);
}

.wentian-chat-faq-summary::-webkit-details-marker {
  display: none;
}

.wentian-chat-faq-summary small {
  color: #b8904b;
  font-size: 10px;
  font-weight: 700;
}

.wentian-chat-faq-group[open] .wentian-chat-faq-summary {
  border-color: rgba(194, 149, 60, .38);
  background: linear-gradient(135deg, #fffaf1, #f6eddf);
  box-shadow: 0 5px 14px rgba(150, 102, 38, .10);
}

.wentian-chat-faq-group[open] .wentian-chat-faq-summary small {
  color: #8f6b2f;
}

.wentian-chat-subtopics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid rgba(234, 223, 206, .9);
  border-radius: 15px;
  background: rgba(255, 252, 247, .96);
  box-shadow: 0 8px 20px rgba(112, 79, 39, .08);
}

.wentian-chat-starter {
  min-width: 0;
  height: 28px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff;
  color: #201813;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .04);
  cursor: pointer;
}

.wentian-chat-starter:active {
  transform: translateY(1px);
  background: #f7f0e5;
}

html[lang="en"] .wentian-chat-subtopics {
  gap: 5px;
  padding: 7px;
}

html[lang="en"] .wentian-chat-starter {
  height: auto;
  min-height: 30px;
  padding: 3px 6px;
  font-size: 9.2px;
  line-height: 1.12;
  white-space: normal;
}

.wentian-chat-field {
  position: absolute;
  left: 16px;
  top: 804px;
  width: 358px;
  height: 48px;
  min-height: 48px;
  max-height: 118px;
  border: 1px solid #ece2d4;
  border-radius: 24px;
  background: #fff;
  color: #201813;
  padding: 12px 58px 12px 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  outline: 0;
  overflow: hidden;
  resize: none;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .08);
}

.wentian-chat-field::placeholder {
  color: #b7ab9d;
}

.office-layout-scroll {
  position: absolute;
  left: 0;
  top: 96px;
  width: 390px;
  height: 748px;
  overflow-y: auto;
  padding: 0 18px 34px;
  box-sizing: border-box;
}

.office-layout-scroll::-webkit-scrollbar {
  width: 4px;
}

.office-layout-scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(194, 149, 60, .28);
}

.office-layout-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #eadfce;
  border-radius: 22px;
  background: rgba(255, 252, 246, .96);
  box-shadow: 0 16px 34px rgba(82, 53, 28, .08);
}

.office-layout-panel.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2b1d16 0%, #814537 52%, #c08b2f 100%);
  color: #fffaf3;
  border-color: rgba(255, 245, 225, .22);
}

.office-layout-panel.hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -12px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 233, 190, .16);
}

.office-layout-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 238, 203, .26);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  color: #f6d78f;
  background: rgba(255, 249, 239, .08);
}

.office-layout-title {
  margin: 14px 0 8px;
  color: #201813;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.office-layout-panel.hero .office-layout-title {
  color: #fffaf3;
}

.office-layout-copy {
  margin: 0;
  color: #76695e;
  font-size: 13px;
  line-height: 1.65;
}

.office-layout-panel.hero .office-layout-copy {
  color: rgba(255, 250, 243, .88);
}

.office-layout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.office-layout-step-chip,
.office-layout-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #eadbc6;
  background: #fff7ea;
  color: #8a5a22;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.office-layout-panel.hero .office-layout-step-chip {
  border-color: rgba(255, 238, 203, .24);
  background: rgba(255, 250, 243, .12);
  color: #fff2c8;
}

.office-layout-panel h3,
.office-layout-section-title {
  margin: 0 0 12px;
  color: #201813;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.office-layout-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.office-layout-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #efe4d4;
}

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

.office-layout-row-label {
  color: #2b251c;
  font-size: 14px;
  font-weight: 800;
}

.office-layout-row-label small,
.office-layout-note {
  color: #8f8173;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.office-layout-select,
.office-layout-text-button,
.office-layout-action-sheet button,
.office-layout-case-action,
.office-layout-button {
  appearance: none;
  width: 100%;
  min-height: 42px;
  border: 1px solid #e4d6c3;
  border-radius: 14px;
  background: #fffaf3;
  color: #2b251c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.office-layout-select,
.office-layout-text-button,
.office-layout-action-sheet button,
.office-layout-case-action,
.office-layout-button {
  padding: 0 14px;
}

.office-layout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.office-layout-button.primary {
  border-color: #9d4a37;
  background: linear-gradient(180deg, #b8503c, #963626);
  color: #fffaf3;
  box-shadow: 0 12px 24px rgba(150, 55, 40, .18);
}

.office-layout-button.secondary {
  border-color: #ddc59d;
  background: linear-gradient(180deg, #f0d28a, #c48d45);
  color: #201813;
}

.office-layout-button.ghost,
.office-layout-case-action {
  background: #fffdf8;
  color: #6f6254;
}

.office-layout-button.danger {
  border-color: rgba(159, 61, 46, .26);
  background: #fff4f1;
  color: #9f3d2e;
}

.office-layout-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

.office-layout-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.office-layout-toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.office-layout-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.office-layout-toggle-copy strong {
  color: #2b251c;
  font-size: 14px;
  font-weight: 800;
}

.office-layout-toggle-copy span {
  color: #8f8173;
  font-size: 12px;
  line-height: 1.45;
}

.office-layout-toggle-checkbox {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 28px;
}

.office-layout-toggle-checkbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.office-layout-toggle-checkbox span {
  position: absolute;
  inset: 3px 0;
  border-radius: 14px;
  background: #efe2d0;
}

.office-layout-toggle-checkbox span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #e0d4c5;
  transition: transform .18s ease, background .18s ease;
}

.office-layout-toggle-checkbox input:checked + span {
  background: #ead9bd;
}

.office-layout-toggle-checkbox input:checked + span::after {
  transform: translateX(18px);
  background: #c2953c;
}

.office-layout-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8ea;
  color: #8a5a22;
  font-size: 12px;
  line-height: 1.55;
}

.office-layout-status strong {
  color: #2b251c;
  font-size: 13px;
}

.office-layout-status[data-tone="ok"] {
  background: #f3fbf1;
  color: #48724f;
}

.office-layout-status[data-tone="warn"] {
  background: #fff7eb;
  color: #946b2d;
}

.office-layout-status[data-tone="error"] {
  background: #fff1ef;
  color: #9f3d2e;
}

.office-layout-status[data-tone="active"] {
  background: #f6f0e4;
  color: #7b5e2d;
}

.office-layout-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.office-layout-preview img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #eadbc6;
  background: #f7efe1;
  object-fit: cover;
}

.office-layout-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-layout-case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.office-layout-case {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: #fffdf8;
}

.office-layout-case-title {
  color: #2b251c;
  font-size: 15px;
  font-weight: 900;
}

.office-layout-case-meta {
  color: #8f8173;
  font-size: 12px;
}

.office-layout-case-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.office-layout-empty {
  padding: 18px 14px;
  border: 1px dashed #dfcba8;
  border-radius: 18px;
  background: #fffaf3;
  color: #8f8173;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.office-layout-guide-grid {
  display: grid;
  gap: 10px;
}

.office-layout-guide-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: #fffdf8;
}

.office-layout-guide-step i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #fff1dc;
  color: #9a681c;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.office-layout-guide-step strong {
  display: block;
  margin-bottom: 4px;
  color: #201813;
  font-size: 15px;
  font-weight: 900;
}

.office-layout-guide-step p {
  margin: 0;
  color: #76695e;
  font-size: 12px;
  line-height: 1.65;
}

.office-layout-video-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 188px;
  border: 1px dashed #dfcba8;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8f0e2, #fffaf2);
  color: #8a5a22;
  text-align: center;
}

.office-layout-video-slot strong {
  color: #201813;
  font-size: 17px;
  font-weight: 900;
}

.office-layout-action-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.office-layout-action-sheet button {
  min-height: 50px;
  background: #fffdf8;
}

.office-layout-action-sheet button.primary {
  border-color: #dfc79d;
  background: linear-gradient(180deg, #f3d48b, #c58c44);
  color: #201813;
}

.office-layout-summary-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2d1d17 0%, #6f3e2f 46%, #b88734 100%);
  color: #fffaf3;
}

.office-layout-summary-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -12px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 230, 186, .16);
}

.office-layout-summary-card h2,
.office-layout-summary-card h3,
.office-layout-summary-card p,
.office-layout-summary-card strong,
.office-layout-hex-hero {
  position: relative;
  z-index: 1;
}

.office-layout-summary-card h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.office-layout-summary-card p {
  margin: 0;
  color: rgba(255, 250, 243, .86);
  font-size: 13px;
  line-height: 1.65;
}

.office-layout-hex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
}

.office-layout-hex-image-wrap,
.office-layout-hex-lines-card {
  border: 1px solid rgba(255, 239, 204, .22);
  border-radius: 18px;
  background: rgba(255, 250, 243, .12);
  backdrop-filter: blur(6px);
}

.office-layout-hex-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 12px;
  overflow: hidden;
}

.office-layout-hex-image {
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(36, 16, 6, .24));
}

.office-layout-hex-image-empty {
  color: #fff2c8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.office-layout-hex-lines-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 10px;
}

.office-layout-hex-lines-card span {
  color: rgba(255, 242, 200, .86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.office-layout-hex-lines {
  display: grid;
  gap: 8px;
  width: 100%;
}

.office-layout-hex-lines i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #f3dd95;
  box-shadow: 0 0 0 1px rgba(255, 239, 204, .08);
}

.office-layout-hex-lines i.is-broken {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: transparent;
  box-shadow: none;
}

.office-layout-hex-lines i.is-broken b {
  display: block;
  border-radius: 999px;
  background: #f3dd95;
}

.office-layout-hex-lines i.is-gap {
  height: 2px;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 360px) {
  .office-layout-hex-hero {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 10px;
  }

  .office-layout-hex-lines-card {
    padding: 10px 8px;
  }

  .office-layout-hex-lines i.is-broken {
    gap: 10px;
  }
}

.office-layout-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.office-layout-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 239, 204, .22);
  background: rgba(255, 250, 243, .12);
  color: #fff2c8;
  font-size: 11px;
  font-weight: 800;
}

.office-layout-rich-card h4 {
  margin: 0 0 10px;
  color: #201813;
  font-size: 17px;
  font-weight: 900;
}

.office-layout-rich-card p,
.office-layout-rich-card li {
  color: #514238;
  font-size: 13px;
  line-height: 1.7;
}

.office-layout-rich-card ul {
  margin: 0;
  padding-left: 18px;
}

.office-layout-long p {
  margin: 0 0 12px;
}

.office-layout-long p:last-child {
  margin-bottom: 0;
}

.wentian-chat-field:disabled {
  color: #a79a8d;
}

.wentian-chat-send {
  position: absolute;
  left: 338px;
  top: 812px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #9f7330;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(111, 76, 23, .18);
}

.wentian-chat-send:disabled {
  background: #eadfce;
}

.wentian-archive-list {
  position: absolute;
  left: 24px;
  top: 308px;
  width: 342px;
  height: 422px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 4px 8px;
}

.wentian-archive-list::-webkit-scrollbar {
  width: 3px;
}

.wentian-archive-list::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(194, 149, 60, .32);
}

.wentian-archive-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  border: 1px solid #e7d7bf;
  border-radius: 18px;
  background: #fff;
  color: #201813;
  padding: 12px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(70, 45, 25, .07);
}

.wentian-archive-option.is-selected {
  border-color: #c2953c;
  box-shadow: 0 0 0 1px #c2953c inset, 0 5px 14px rgba(130, 91, 31, .08);
}

.wentian-archive-pick {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.wentian-archive-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #e7d3b5;
  border-radius: 26px;
  background: #fff0d6;
  color: #a47a32;
  font-size: 18px;
  font-weight: 800;
}

.wentian-archive-main,
.wentian-archive-check {
  min-width: 0;
}

.wentian-archive-main {
  display: grid;
  gap: 3px;
}

.wentian-archive-title-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.wentian-archive-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  color: #201813;
  font-size: 18px;
  font-weight: 800;
  line-height: 22px;
  white-space: normal;
  word-break: break-all;
}

.wentian-archive-badge,
.wentian-archive-gender,
.wentian-archive-tag {
  flex: 0 0 auto;
  height: 21px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

.wentian-archive-badge {
  width: 38px;
  background: #fff1ea;
  color: #a7372f;
}

.wentian-archive-gender {
  width: 28px;
  background: #f3ece3;
  color: #7a6d60;
}

.wentian-archive-tag {
  width: 52px;
  background: #f5efe3;
  color: #948879;
  font-size: 12px;
  font-weight: 500;
}

.wentian-archive-date {
  overflow: hidden;
  color: #8f8173;
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wentian-archive-pillars {
  overflow: hidden;
  color: #aca092;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wentian-archive-check {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid #e0d4c5;
  border-radius: 22px;
  color: #fff;
  background: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(247, 236, 213, .58);
}

.wentian-archive-option.is-selected .wentian-archive-check {
  border-color: #c2953c;
  background: #c2953c;
}

.wentian-archive-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 66px;
}

.wentian-archive-action {
  height: 42px;
  min-width: 56px;
  padding: 0 12px;
  border: 1px solid #ead8bd;
  border-radius: 21px;
  background: #fffaf2;
  color: #9b742e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(146, 104, 42, .07);
}

.wentian-archive-action.danger {
  order: -1;
  color: #a94437;
}

.wentian-archive-action.default {
  min-width: 70px;
  border-color: #d5c493;
  background: #fffdf5;
  color: #7b8a44;
}

.wentian-archive-action.cancel {
  color: #7d7164;
  background: #fffdf8;
}

.wentian-archive-action.is-confirming {
  border-color: #c85a4a;
  background: #fff1ee;
  color: #b53a2e;
  min-width: 78px;
}

.wentian-archive-exit,
.wentian-archive-confirm {
  position: absolute;
  top: 772px;
  height: 52px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
}

.wentian-archive-exit {
  left: 36px;
  width: 154px;
  border: 1px solid #c5a66b;
  background: #fff;
  color: #c2953c;
}

.wentian-archive-new-mini {
  position: absolute;
  left: 266px;
  top: 238px;
  width: 80px;
  height: 34px;
  border: 1px solid #e2c78e;
  border-radius: 17px;
  background: #fff;
  color: #a87828;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
}

.wentian-archive-confirm {
  left: 212px;
  width: 142px;
  border: 0;
  background: #c2953c;
  color: #fff;
  box-shadow: 0 7px 14px rgba(130, 91, 31, .14);
}

html[lang="en"] .wentian-archive-main {
  left: 72px;
  right: 42px;
  gap: 2px;
}

html[lang="en"] .wentian-archive-title-row {
  gap: 3px;
}

html[lang="en"] .wentian-archive-name {
  font-size: 15px;
  line-height: 18px;
}

html[lang="en"] .wentian-archive-badge,
html[lang="en"] .wentian-archive-gender,
html[lang="en"] .wentian-archive-tag {
  height: 18px;
  font-size: 10px;
  line-height: 18px;
}

html[lang="en"] .wentian-archive-gender {
  width: 22px;
}

html[lang="en"] .wentian-archive-tag {
  width: 38px;
}

html[lang="en"] .wentian-archive-date {
  font-size: 13px;
  line-height: 16px;
}

html[lang="en"] .wentian-archive-pillars {
  font-size: 10.5px;
  line-height: 13px;
}

html[lang="en"] .wentian-archive-exit,
html[lang="en"] .wentian-archive-confirm {
  font-size: 15px;
}

.wentian-hepan-head {
  position: absolute;
  left: 24px;
  top: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 342px;
}

.wentian-hepan-head strong {
  display: block;
  color: #25211d;
  font-size: 17px;
  font-weight: 900;
  line-height: 22px;
}

.wentian-hepan-head span {
  display: block;
  margin-top: 4px;
  color: #9a8f82;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.wentian-hepan-head b {
  color: #a79986;
  font-size: 12px;
  line-height: 20px;
}

.wentian-hepan-head b.is-ready {
  color: #9b742e;
}

.wentian-hepan-head b.is-error {
  color: #a94437;
}

.wentian-hepan-list {
  position: absolute;
  left: 22px;
  top: 180px;
  width: 346px;
  height: 510px;
  overflow-y: auto;
  padding: 0 2px 10px;
  scrollbar-width: none;
}

.wentian-hepan-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.wentian-hepan-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 126px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #efe3d0;
  border-radius: 18px;
  background: #fff;
  color: #25211d;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 10px 22px rgba(72, 48, 26, .08);
  overflow: hidden;
}

.wentian-hepan-option.is-selected {
  border-color: #d0a33c;
  box-shadow: 0 8px 18px rgba(153, 108, 34, .12);
}

.wentian-hepan-select {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.wentian-hepan-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  color: #bd8624;
  background: #f7ecd5;
  font-size: 13px;
  font-weight: 900;
}

.wentian-hepan-copy {
  min-width: 0;
}

.wentian-hepan-copy strong,
.wentian-hepan-copy em,
.wentian-hepan-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wentian-hepan-copy strong {
  color: #25211d;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
}

.wentian-hepan-copy em {
  margin-top: 2px;
  color: #b28b45;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 15px;
}

.wentian-hepan-copy small {
  margin-top: 2px;
  color: #8d857b;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.wentian-hepan-check {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid #d8cdbc;
  border-radius: 22px;
  background: #fffdf9;
  color: #bd8624;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(247, 236, 213, .58);
}

.wentian-hepan-option.is-selected .wentian-hepan-check {
  border-color: #c6962e;
  background: #c6962e;
  color: #fff;
  box-shadow: 0 6px 12px rgba(160, 112, 32, .18);
}

.wentian-hepan-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 56px;
}

.wentian-hepan-edit-time {
  position: static;
  min-width: 100px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ead2ad;
  border-radius: 21px;
  background: #fff8ed;
  color: #9b742e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(146, 104, 42, .08);
}

.wentian-hepan-actions {
  position: static;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.wentian-hepan-action {
  height: 42px;
  min-width: 56px;
  padding: 0 12px;
  border: 1px solid #ead2ad;
  border-radius: 21px;
  background: #fffaf2;
  color: #9b742e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(146, 104, 42, .07);
}

.wentian-hepan-action.danger {
  order: -1;
  color: #a94437;
}

.wentian-hepan-action.cancel {
  color: #7d7164;
  background: #fffdf8;
}

.wentian-hepan-action.is-confirming {
  border-color: #c85a4a;
  background: #fff1ee;
  color: #b53a2e;
  min-width: 78px;
}

.wentian-hepan-time-mask {
  position: absolute;
  inset: 0;
  z-index: 140;
  background: rgba(34, 25, 18, .34);
}

.wentian-hepan-time-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 141;
  display: grid;
  gap: 10px;
  padding: 18px 24px calc(24px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fffdf8;
  color: #25211d;
  box-shadow: 0 -18px 38px rgba(59, 36, 20, .2);
}

.wentian-hepan-time-handle {
  justify-self: center;
  width: 54px;
  height: 5px;
  border-radius: 5px;
  background: #e0d2bf;
}

.wentian-hepan-time-sheet strong {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 900;
  line-height: 26px;
}

.wentian-hepan-time-sheet p,
.wentian-hepan-time-sheet em,
.wentian-hepan-time-sheet b {
  margin: 0;
  font-style: normal;
}

.wentian-hepan-time-sheet p {
  color: #8d806f;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}

.wentian-hepan-time-sheet label {
  margin-top: 4px;
  color: #7e6f5f;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
}

.wentian-hepan-time-sheet input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #e5d5bf;
  border-radius: 13px;
  background: #fff;
  color: #25211d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.wentian-hepan-time-sheet em {
  color: #8d806f;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.wentian-hepan-time-sheet b {
  color: #a94437;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
}

.wentian-hepan-time-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.wentian-hepan-time-actions button {
  height: 44px;
  border: 1px solid #d6b463;
  border-radius: 13px;
  background: #fff;
  color: #9b742e;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
}

.wentian-hepan-time-actions button.primary {
  border-color: transparent;
  background: #d2a642;
  color: #fff;
}

.wentian-hepan-footer {
  position: absolute;
  left: 22px;
  top: 704px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  width: 346px;
}

.wentian-hepan-secondary,
.wentian-hepan-primary {
  height: 46px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
}

.wentian-hepan-secondary {
  border: 1px solid #d6b463;
  color: #9b742e;
  background: #fff;
}

.wentian-hepan-primary {
  border: 0;
  color: #fff;
  background: #d2a642;
  box-shadow: 0 8px 16px rgba(130, 91, 31, .14);
}

.wentian-hepan-primary:disabled {
  opacity: .45;
  box-shadow: none;
}

.wentian-hepan-footer p {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  min-height: 34px;
  border: 1px solid #ead8bd;
  border-radius: 17px;
  padding: 8px 12px;
  background: #fff8ed;
  color: #8d6c2c;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

.wentian-hepan-footer p.is-ready {
  border-color: rgba(123, 138, 68, .32);
  background: rgba(123, 138, 68, .08);
  color: #7b8a44;
}

.wentian-hepan-footer p.is-error {
  border-color: rgba(169, 68, 55, .32);
  background: rgba(169, 68, 55, .08);
  color: #a94437;
}

.wentian-hepan-result-panel {
  position: absolute;
  left: 24px;
  top: 96px;
  display: grid;
  gap: 12px;
  width: 342px;
  color: #201813;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.wentian-hepan-result-panel button {
  font-family: inherit;
}

.wentian-hepan-result-hero {
  min-height: 156px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 18%, rgba(244, 210, 147, .22) 0 18%, transparent 19%),
    linear-gradient(135deg, #251912 0%, #6e3026 54%, #b9852f 100%);
  box-shadow: 0 16px 32px rgba(77, 43, 22, .18);
}

.wentian-hepan-result-hero span,
.wentian-hepan-result-hero strong,
.wentian-hepan-result-hero em,
.wentian-hepan-result-hero p {
  display: block;
}

.wentian-hepan-result-hero span {
  color: #f4d293;
  font-size: 12px;
  font-weight: 900;
}

.wentian-hepan-result-hero strong {
  margin-top: 8px;
  color: #fffaf3;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.wentian-hepan-result-hero em {
  margin-top: 6px;
  color: #fff4df;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.wentian-hepan-result-hero p {
  margin: 12px 0 0;
  color: #eadcc7;
  font-size: 13px;
  font-weight: 800;
}

.wentian-hepan-result-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.wentian-hepan-result-pair article,
.wentian-hepan-chart-card,
.wentian-hepan-ai-card,
.wentian-hepan-report-card,
.wentian-hepan-result-card,
.wentian-hepan-result-grid article,
.wentian-hepan-advice-card,
.wentian-hepan-xu-card {
  border: 1px solid #eadfce;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(70, 45, 25, .06);
}

.wentian-hepan-result-pair article {
  min-width: 0;
  min-height: 98px;
  padding: 12px;
  border-radius: 16px;
}

.wentian-hepan-result-pair b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: #fff1dc;
  color: #a94437;
  font-size: 15px;
  font-weight: 900;
}

.wentian-hepan-result-pair span,
.wentian-hepan-result-pair strong,
.wentian-hepan-result-pair em,
.wentian-hepan-result-pair small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wentian-hepan-result-pair span {
  color: #a47726;
  font-size: 11px;
  font-weight: 900;
}

.wentian-hepan-result-pair strong {
  margin-top: 5px;
  color: #201813;
  font-size: 17px;
  font-weight: 900;
}

.wentian-hepan-result-pair em,
.wentian-hepan-result-pair small {
  margin-top: 5px;
  color: #807568;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.wentian-hepan-chart-section {
  display: grid;
  gap: 12px;
}

.wentian-hepan-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.wentian-hepan-section-head span,
.wentian-hepan-section-head b,
.wentian-hepan-chart-card header span,
.wentian-hepan-chart-card header strong,
.wentian-hepan-chart-card header em {
  display: block;
  font-style: normal;
  font-weight: 900;
}

.wentian-hepan-section-head span {
  color: #201813;
  font-size: 18px;
}

.wentian-hepan-section-head b {
  color: #9a8f82;
  font-size: 11px;
  text-align: right;
}

.wentian-hepan-chart-card {
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
}

.wentian-hepan-chart-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.wentian-hepan-chart-card header div {
  min-width: 0;
}

.wentian-hepan-chart-card header span {
  color: #a47726;
  font-size: 12px;
}

.wentian-hepan-chart-card header strong {
  margin-top: 4px;
  overflow: hidden;
  color: #201813;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wentian-hepan-chart-card header em {
  flex: 0 0 auto;
  max-width: 156px;
  margin-top: 2px;
  color: #807568;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.wentian-hepan-chart-card .wentian-native-mingpan {
  position: relative;
  left: auto;
  top: auto;
  width: calc(100% + 24px);
  height: auto;
  margin: 12px -12px -12px;
}

.wentian-hepan-chart-card .wentian-native-mingpan .fc-card {
  width: 100%;
  border-top: 1px solid #eadfce;
  background: #f6ead9;
}

.wentian-hepan-chart-card .wentian-native-mingpan .fc-cell {
  cursor: pointer;
}

.wentian-hepan-chart-card .wentian-native-mingpan .fc-cell.is-readonly {
  cursor: default;
  transform: none;
}

.wentian-hepan-chart-empty {
  margin-top: 12px;
  border: 1px solid #f0e3d0;
  border-radius: 14px;
  padding: 12px;
  background: #fffaf3;
  color: #7d7166;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.wentian-hepan-report-card,
.wentian-hepan-ai-card,
.wentian-hepan-result-card,
.wentian-hepan-advice-card,
.wentian-hepan-xu-card {
  padding: 15px 16px;
  border-radius: 18px;
}

.wentian-hepan-report-card span,
.wentian-hepan-advice-card span {
  color: #a47726;
  font-size: 12px;
  font-weight: 900;
}

.wentian-hepan-report-card strong {
  display: block;
  margin-top: 6px;
  color: #201813;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-hepan-ai-card {
  display: grid;
  gap: 10px;
  border-color: #d9b66a;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, .92), #fffdf8);
}

.wentian-hepan-ai-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wentian-hepan-ai-card header span,
.wentian-hepan-ai-card header b,
.wentian-hepan-ai-card em,
.wentian-hepan-ai-sections article span,
.wentian-hepan-ai-sections article small,
.wentian-hepan-ai-risk span {
  font-style: normal;
  font-weight: 900;
}

.wentian-hepan-ai-card header span {
  color: #a47726;
  font-size: 12px;
}

.wentian-hepan-ai-card header b {
  flex: 0 0 auto;
  min-width: 54px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff1dc;
  color: #9b742e;
  font-size: 11px;
  text-align: center;
}

.wentian-hepan-ai-card > strong {
  display: block;
  color: #201813;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.wentian-hepan-ai-card em {
  display: block;
  color: #8f3d30;
  font-size: 13px;
  line-height: 1.35;
}

.wentian-hepan-ai-card > p,
.wentian-hepan-ai-sections p,
.wentian-hepan-ai-risk {
  margin: 0;
  color: #695f55;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.wentian-hepan-ai-sections {
  display: grid;
  gap: 8px;
}

.wentian-hepan-ai-sections article {
  border-top: 1px solid #f0e3d0;
  padding-top: 9px;
}

.wentian-hepan-ai-sections article span {
  display: block;
  margin-bottom: 4px;
  color: #201813;
  font-size: 13px;
}

.wentian-hepan-ai-sections article small {
  display: block;
  margin-bottom: 5px;
  color: #a47726;
  font-size: 11px;
  line-height: 1.25;
}

.wentian-hepan-ai-sections p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.wentian-hepan-ai-risk {
  max-height: 82px;
  overflow: hidden;
  border-radius: 13px;
  padding: 10px 11px;
  background: rgba(169, 68, 55, .08);
}

.wentian-hepan-ai-risk span {
  display: block;
  margin-bottom: 3px;
  color: #a94437;
  font-size: 12px;
}

.wentian-hepan-ai-card.is-loading {
  border-color: #eadfce;
}

.wentian-hepan-ai-loading {
  display: grid;
  gap: 6px;
}

.wentian-hepan-ai-loading i {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eadfce, #fff8ed, #eadfce);
}

.wentian-hepan-ai-loading i:nth-child(2) {
  width: 82%;
}

.wentian-hepan-ai-loading i:nth-child(3) {
  width: 64%;
}

.wentian-hepan-ai-card.is-error {
  border-color: rgba(169, 68, 55, .28);
  background: #fff8f4;
}

.wentian-hepan-ai-card.is-error button {
  justify-self: start;
  height: 34px;
  border: 1px solid #d6b463;
  border-radius: 17px;
  padding: 0 14px;
  background: #fff;
  color: #9b742e;
  font-size: 12px;
  font-weight: 900;
}

.wentian-hepan-report-card p,
.wentian-hepan-advice-card p,
.wentian-hepan-result-grid p {
  margin: 8px 0 0;
  color: #695f55;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.wentian-hepan-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wentian-hepan-result-grid article {
  min-height: 132px;
  padding: 13px;
  border-radius: 16px;
}

.wentian-hepan-result-grid span {
  color: #8f3d30;
  font-size: 12px;
  font-weight: 900;
}

.wentian-hepan-result-card h3 {
  margin: 0 0 10px;
  color: #201813;
  font-size: 17px;
  font-weight: 900;
}

.wentian-hepan-result-dim {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  min-height: 54px;
  padding: 9px 0 12px;
  border-top: 1px solid #f0e3d0;
}

.wentian-hepan-result-dim:first-of-type {
  border-top: 0;
}

.wentian-hepan-result-dim strong,
.wentian-hepan-result-dim span,
.wentian-hepan-result-dim b {
  display: block;
}

.wentian-hepan-result-dim strong {
  color: #201813;
  font-size: 13px;
  font-weight: 900;
}

.wentian-hepan-result-dim span {
  margin-top: 4px;
  color: #7d7166;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.wentian-hepan-result-dim b {
  color: #a47726;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.wentian-hepan-result-dim i {
  position: absolute;
  left: 0;
  right: 46px;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b74e39 var(--hepan-score), #eadfce var(--hepan-score));
}

.wentian-hepan-result-card ul {
  margin: 0;
  padding-left: 18px;
  color: #695f55;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.wentian-hepan-result-card li + li {
  margin-top: 6px;
}

.wentian-hepan-advice-card {
  border-color: #d6b463;
  background: #fff1dc;
}

.wentian-hepan-xu-card {
  display: grid;
  gap: 10px;
  border-color: #d6b463;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 241, 220, .18), transparent 28%),
    linear-gradient(135deg, #241a14 0%, #6d2f25 58%, #b9852f 100%);
  box-shadow: 0 14px 28px rgba(77, 43, 22, .16);
}

.wentian-hepan-xu-card span,
.wentian-hepan-xu-card strong {
  display: block;
  font-weight: 900;
}

.wentian-hepan-xu-card span {
  color: #f4d293;
  font-size: 12px;
}

.wentian-hepan-xu-card strong {
  color: #fffaf3;
  font-size: 23px;
  line-height: 1.18;
}

.wentian-hepan-xu-card p {
  margin: 0;
  color: #eadcc7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.wentian-hepan-xu-card button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #fffaf3;
  color: #8f3d30;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(24, 15, 10, .16);
}

.wentian-hepan-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 56px;
}

.wentian-hepan-result-actions button {
  height: 46px;
  border: 1px solid #d6b463;
  border-radius: 13px;
  background: #fff;
  color: #9b742e;
  font-size: 14px;
  font-weight: 900;
}

.wentian-hepan-result-actions button.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #b74e39, #983323);
  color: #fffaf3;
  box-shadow: 0 10px 20px rgba(157, 51, 41, .16);
}

.wentian-language-option {
  position: absolute;
  width: 306px;
  height: 34px;
  border: 1px solid #e7d7bf;
  border-radius: 10px;
  background: #fff;
  color: #201813;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
}

.wentian-language-option.is-selected {
  border-color: #c2953c;
  box-shadow: 0 0 0 1px rgba(197, 164, 88, .35) inset;
}

.wentian-language-label,
.wentian-language-check {
  pointer-events: none;
}

.wentian-language-check {
  float: right;
  color: #9a681c;
  font-weight: 800;
}

.wentian-language-confirm {
  position: absolute;
  left: 220px;
  top: 666px;
  width: 108px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #c2953c;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.wentian-profile-input {
  position: absolute;
  height: 44px;
  border: 1px solid #e7d7bf;
  border-radius: 10px;
  background: #fff;
  color: #201813;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 44px;
  outline: 0;
}

.wentian-profile-input::placeholder {
  color: #aca092;
}

.wentian-profile-input:focus {
  border-color: #c2953c;
  box-shadow: 0 0 0 2px rgba(192, 154, 73, .12);
}

.wentian-archive-search-input {
  position: absolute;
  z-index: 70;
  border: 0;
  background: transparent;
  color: #201813;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.wentian-archive-search-input::placeholder {
  color: #ada59d;
}

.wentian-profile-list-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wentian-profile-list-layer .fig-click {
  pointer-events: auto;
}

html[lang="en"] .wentian-profile-input {
  padding: 0 10px;
  font-size: 13px;
}

.wentian-auth-input {
  position: absolute;
  height: 44px;
  border: 1px solid #e7d7bf;
  border-radius: 12px;
  background: #fffdf8;
  color: #201813;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 44px;
  outline: 0;
}

.wentian-auth-input::placeholder {
  color: #aca092;
}

.wentian-auth-input:focus {
  border-color: #c2953c;
  box-shadow: 0 0 0 2px rgba(192, 154, 73, .12);
}

.wentian-auth-tab {
  position: absolute;
  height: 38px;
  border: 1px solid #e7d7bf;
  border-radius: 19px;
  background: #fbf7ef;
  color: #8f857a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-auth-tab.is-active {
  border-color: #9f3d2e;
  background: #fff1ea;
  color: #9f3d2e;
  box-shadow: 0 8px 18px rgba(158, 61, 43, .10);
}

.wentian-invite-input {
  position: absolute;
  height: 38px;
  border: 1px solid #e6d7be;
  border-radius: 19px;
  background: #fffaf2;
  color: #25211d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  outline: 0;
  padding: 0 16px;
  text-transform: uppercase;
  box-sizing: border-box;
  z-index: 4;
}

.wentian-invite-input::placeholder {
  color: #b8a994;
  letter-spacing: 0;
}

.wentian-invite-input:focus {
  border-color: #bd8624;
  box-shadow: 0 0 0 3px rgba(189, 134, 36, .14);
}

.wentian-invite-status {
  position: absolute;
  min-height: 18px;
  color: #8f857a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  z-index: 4;
}

.wentian-invite-status[data-tone="ok"] {
  color: #5f8745;
}

.wentian-invite-status[data-tone="error"] {
  color: #a94437;
}

.wentian-profile-status {
  position: absolute;
  left: 36px;
  top: 645px;
  width: 318px;
  height: 22px;
  color: #9a681c;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

.wentian-profile-status[data-tone="error"] {
  color: #a94437;
}

.wentian-profile-status[data-tone="ok"] {
  color: #5f8745;
}

.converted-button {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: #b78322;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.converted-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.liuren-panel {
  position: absolute;
  left: 24px;
  top: 104px;
  width: 342px;
  color: #201813;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.liuren-hero-card {
  position: relative;
  isolation: isolate;
  height: 154px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(28, 15, 10, .90) 0%, rgba(59, 29, 20, .72) 47%, rgba(124, 70, 28, .34) 100%),
    url("../images/wentian-prototype-assets/liuren-flow-hero.jpg") center / cover no-repeat;
  box-shadow: 0 18px 34px rgba(77, 43, 22, 0.18);
}

.liuren-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(248, 208, 128, .23) 0 18%, transparent 38%),
    linear-gradient(180deg, rgba(255, 244, 219, .08) 0%, rgba(35, 18, 10, .12) 100%);
  opacity: .95;
}

.liuren-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(24, 16, 10, .78) 0%, rgba(24, 16, 10, .47) 48%, rgba(24, 16, 10, .06) 100%);
}

.liuren-hero-copy {
  position: absolute;
  left: 20px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 7px;
  color: #fffaf3;
}

.liuren-hero-copy span {
  color: #f1c46b;
  font-size: 12px;
  font-weight: 900;
}

.liuren-hero-copy strong {
  font-size: 25px;
  line-height: 1.1;
}

.liuren-hero-copy em {
  max-width: 220px;
  color: #eadcc7;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

html[data-wentian-language="en"] .liuren-hero-copy {
  right: 108px;
}

html[data-wentian-language="en"] .liuren-hero-copy strong {
  font-size: 22px;
  line-height: 1.03;
}

html[data-wentian-language="en"] .liuren-hero-copy em {
  max-width: 188px;
  font-size: 11px;
  line-height: 1.32;
}

.liuren-now-card,
.liuren-form-card,
.liuren-intent-card,
.liuren-result-card {
  border: 1px solid #e7d7bf;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 28px rgba(76, 48, 24, 0.08);
}

.liuren-intent-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px 16px;
}

.liuren-intent-card strong {
  font-size: 15px;
  font-weight: 900;
}

.liuren-intent-card span {
  color: #756d63;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.liuren-now-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  min-height: 78px;
  padding: 14px;
}

.liuren-preview {
  display: grid;
  gap: 3px;
}

.liuren-preview strong {
  color: #9d3329;
  font-size: 22px;
  line-height: 1;
}

.liuren-preview span,
.liuren-preview em,
.liuren-preview small {
  display: block;
  color: #817568;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.liuren-preview span {
  color: #9a681c;
  font-weight: 900;
}

.liuren-preview small {
  color: #9d9183;
}

.liuren-now {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #ead9bd;
  border-radius: 18px;
  background: #fff0d6;
  color: #9a681c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.liuren-form-card {
  display: block;
  margin-top: 12px;
  padding: 14px;
}

.liuren-form-card summary {
  cursor: pointer;
  color: #201813;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.liuren-form-card summary::-webkit-details-marker {
  display: none;
}

.liuren-form-card summary::after {
  content: "⌄";
  float: right;
  color: #9a681c;
}

.liuren-form-card[open] {
  display: grid;
  gap: 12px;
}

.liuren-form-card[open] summary::after {
  content: "⌃";
}

.liuren-form-card label {
  display: grid;
  gap: 7px;
  color: #6e6254;
  font-size: 12px;
  font-weight: 800;
}

.liuren-form-card input,
.liuren-form-card select {
  width: 100%;
  height: 42px;
  border: 1px solid #e4d6c3;
  border-radius: 12px;
  background: #fffaf3;
  color: #201813;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  outline: 0;
}

.liuren-form-card input:focus,
.liuren-form-card select:focus {
  border-color: #c2953c;
  box-shadow: 0 0 0 2px rgba(194, 149, 60, 0.13);
}

.liuren-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.liuren-start {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(180deg, #b74e39, #983323);
  color: #fffaf3;
  box-shadow: 0 14px 28px rgba(157, 51, 41, .20);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
}

.liuren-hand-board {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
  background-color: #fff8ed;
  background-image: url("../images/wentian-prototype-assets/liuren-hand-board.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  box-shadow: 0 14px 30px rgba(76, 48, 24, .10);
}

.liuren-hand-board img {
  display: block;
  width: 100%;
  height: auto;
}

.liuren-hand-board.is-revealed img {
  animation: liurenBoardBreathe 7.2s ease-in-out infinite;
  transform-origin: 46% 72%;
}

.liuren-palace-layer,
.liuren-palace-pulses,
.liuren-palace-button,
.liuren-palace-pulse {
  position: absolute;
  pointer-events: none;
}

.liuren-palace-layer,
.liuren-palace-pulses {
  inset: 0;
}

.liuren-palace-layer {
  z-index: 2;
}

.liuren-palace-pulses {
  z-index: 3;
}

.liuren-palace-button,
.liuren-palace-pulse {
  left: var(--x);
  top: var(--y);
  width: var(--badge-width);
  height: var(--badge-height);
  transform: translate(-50%, -50%);
}

.liuren-palace-button {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 47px;
  padding: 4px 3px 3px;
  border: 1px solid rgba(183, 145, 78, .52);
  border-radius: 999px 999px 16px 16px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .94) 0 14%, transparent 15%),
    linear-gradient(180deg, rgba(255, 253, 246, .92) 0%, rgba(247, 234, 205, .84) 100%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .66), inset 0 -5px 9px rgba(127, 86, 38, .05), 0 4px 8px rgba(77, 51, 24, .07);
  color: #251b14;
  isolation: isolate;
  overflow: visible;
  text-align: center;
}

.liuren-palace-button::before,
.liuren-palace-button::after,
.liuren-palace-pulse::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.liuren-palace-button::before {
  inset: 5px;
  z-index: -1;
  border: 1px solid rgba(142, 105, 55, .22);
  border-radius: inherit;
}

.liuren-palace-button::after {
  inset: -9px -8px -10px;
  z-index: -2;
  border-radius: 999px 999px 22px 22px;
  opacity: 0;
}

.liuren-palace-button i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(208, 168, 91, .26);
  color: #8c6425;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.liuren-palace-button strong,
.liuren-palace-button em {
  display: block;
  line-height: 1.04;
}

.liuren-palace-button strong {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
}

.liuren-palace-button em {
  margin-top: 1px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  color: #6d6259;
}

.liuren-hand-board.is-revealed .liuren-palace-button {
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.liuren-hand-board.is-revealed .liuren-palace-button i {
  color: var(--badge-accent);
}

.liuren-hand-board.is-revealed .liuren-palace-button::before {
  border-color: var(--badge-soft);
}

.liuren-hand-board.is-revealed .liuren-palace-button.is-final {
  animation: liurenFinalBadge 2.35s ease-in-out var(--liuren-final-delay) infinite;
}

.liuren-hand-board.is-revealed .liuren-palace-button.is-final::after {
  background: radial-gradient(ellipse, rgba(222, 174, 68, .32) 0 34%, transparent 68%);
  animation: liurenFinalBadgeAura 2.35s ease-in-out var(--liuren-final-delay) infinite;
}

.liuren-palace-pulse {
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 51px;
  padding: 4px 3px 3px;
  border: 2px solid var(--badge-accent);
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 255, 255, .98) 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 244, 207, .94) 0%, rgba(242, 191, 76, .64) 100%),
    radial-gradient(ellipse, var(--badge-glow) 0 36%, transparent 72%);
  box-shadow: 0 0 0 6px var(--badge-soft), 0 0 22px var(--badge-glow), inset 0 2px 7px rgba(255, 255, 255, .70);
  color: #251b14;
  opacity: 0;
  text-align: center;
  transform: translate(-50%, -50%) scale(.90);
  backface-visibility: hidden;
  will-change: opacity, transform;
  animation: liurenBadgePulse calc(var(--liuren-step-duration, .2s) + .10s) linear var(--pulse-delay) 1 both;
}

.liuren-palace-pulse i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 247, 219, .88);
  color: var(--badge-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.liuren-palace-pulse strong,
.liuren-palace-pulse em {
  display: block;
  line-height: 1.04;
}

.liuren-palace-pulse strong {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
}

.liuren-palace-pulse em {
  margin-top: 1px;
  color: #665546;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

@keyframes liurenBoardBreathe {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  42% {
    transform: translate(-1px, 1px) rotate(-.25deg);
  }

  70% {
    transform: translate(1px, -1px) rotate(.2deg);
  }
}

@keyframes liurenBadgePulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.90);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  72% {
    opacity: .95;
    transform: translate(-50%, -50%) scale(1.03);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.98);
  }
}

@keyframes liurenFinalBadge {
  0%,
  100% {
    border-color: #bd8b28;
    background:
      radial-gradient(circle at 50% 11%, rgba(255, 255, 255, .96) 0 16%, transparent 17%),
      linear-gradient(180deg, #fff5d7 0%, #f0c86e 100%);
    box-shadow: inset 0 2px 7px rgba(255, 255, 255, .68), inset 0 -8px 13px rgba(116, 76, 22, .09), 0 0 0 4px rgba(211, 164, 60, .12), 0 7px 14px rgba(160, 111, 30, .15);
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    border-color: #d8a23a;
    background:
      radial-gradient(circle at 50% 11%, rgba(255, 255, 255, .98) 0 16%, transparent 17%),
      linear-gradient(180deg, #fff8df 0%, #efc15f 100%);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, .72), inset 0 -8px 13px rgba(116, 76, 22, .10), 0 0 0 6px rgba(211, 164, 60, .16), 0 9px 18px rgba(160, 111, 30, .18);
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes liurenFinalBadgeAura {
  0%,
  100% {
    opacity: 0;
    transform: scale(.86);
  }

  50% {
    opacity: .86;
    transform: scale(1.12);
  }
}

.liuren-hand-a11y {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.liuren-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.liuren-path-item {
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid #eadfce;
  border-radius: 15px;
  background: rgba(255, 253, 248, .96);
  text-align: center;
  box-shadow: 0 8px 18px rgba(76, 48, 24, .06);
}

.liuren-path-item span,
.liuren-path-item strong,
.liuren-path-item em {
  display: block;
}

.liuren-path-item span {
  color: #9a681c;
  font-size: 11px;
  font-weight: 900;
}

.liuren-path-item strong {
  margin-top: 4px;
  color: #201813;
  font-size: 18px;
  line-height: 22px;
}

.liuren-path-item em {
  margin-top: 4px;
  color: #857a70;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.liuren-path-item.is-final {
  border-color: #c2953c;
  background: #fff7ec;
}

.liuren-process-card {
  margin-top: 12px;
  padding: 0;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 12px 24px rgba(76, 48, 24, .08);
  overflow: hidden;
}

.liuren-process-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.liuren-process-card[open] .liuren-process-head {
  border-bottom: 1px solid #efe3d0;
}

.liuren-process-head::-webkit-details-marker {
  display: none;
}

.liuren-process-head::after {
  content: "⌄";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 34px;
  color: #9a681c;
  font-size: 18px;
  font-weight: 900;
  transition: transform .18s ease;
}

.liuren-process-card[open] .liuren-process-head::after {
  transform: rotate(180deg);
}

.liuren-process-head span,
.liuren-process-step span {
  display: block;
  color: #9a681c;
  font-size: 11px;
  font-weight: 900;
}

.liuren-process-head strong {
  display: block;
  margin-top: 4px;
  color: #201813;
  font-size: 17px;
  line-height: 1.35;
}

.liuren-process-head em {
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: #fff1d9;
  color: #9a681c;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.liuren-process-list {
  display: grid;
  gap: 10px;
  padding: 12px 16px 14px;
}

.liuren-process-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.liuren-process-step i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #f3eadc;
  color: #9a681c;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.liuren-process-step strong,
.liuren-process-step em {
  display: block;
}

.liuren-process-step strong {
  margin-top: 3px;
  color: #302722;
  font-size: 14px;
  line-height: 1.45;
}

.liuren-process-step em {
  margin-top: 2px;
  color: #6e6254;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.liuren-process-step.is-final i,
.liuren-process-step.is-final em {
  color: #a94437;
}

.liuren-process-step.is-final i {
  background: #fff1ea;
}

.liuren-track {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.liuren-track-item {
  min-height: 58px;
  padding: 9px 6px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: #fffdf8;
  text-align: center;
}

.liuren-track-item em {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  border-radius: 9px;
  background: #f3eadc;
  color: #9a681c;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.liuren-track-item strong,
.liuren-track-item span {
  display: block;
}

.liuren-track-item strong {
  color: #201813;
  font-size: 15px;
  line-height: 20px;
}

.liuren-track-item span {
  margin-top: 3px;
  color: #9d9183;
  font-size: 11px;
  font-weight: 800;
}

.liuren-track-item.is-active {
  border-color: #9d3329;
  background: #fff1ea;
  box-shadow: 0 8px 18px rgba(157, 51, 41, 0.12);
}

.liuren-track-item.is-active.is-good {
  border-color: #5f8745;
  background: #f5f8ef;
}

.liuren-track-item.is-active strong {
  color: #9d3329;
}

.liuren-track-item.is-active.is-good strong {
  color: #4f8f5f;
}

.liuren-result-card {
  position: relative;
  margin-top: 12px;
  padding: 16px;
}

.liuren-result-card h3,
.liuren-result-card p {
  margin: 0;
}

.liuren-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.liuren-kicker {
  display: block;
  margin-bottom: 6px;
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuren-result-card h3 {
  color: #201813;
  font-size: 30px;
  line-height: 1;
}

.liuren-result-card h3 small {
  display: inline-grid;
  place-items: center;
  margin-left: 10px;
  min-width: 32px;
  height: 22px;
  border-radius: 12px;
  background: #fff0d6;
  color: #9a681c;
  font-size: 12px;
  vertical-align: middle;
}

.liuren-result-card.is-warn h3 small {
  background: #fff1ea;
  color: #a94437;
}

.liuren-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: #fff0d6;
  color: #9a681c;
  font-size: 24px;
  font-weight: 900;
}

.liuren-result-card.is-warn .liuren-seal {
  background: #fff1ea;
  color: #a94437;
}

.liuren-result-card.is-waiting .liuren-seal {
  background: #f3eadc;
  color: #9a681c;
}

.liuren-summary {
  margin-top: 16px !important;
  color: #4c433a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.liuren-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.liuren-tags span {
  padding: 5px 10px;
  border-radius: 12px;
  background: #fff7ec;
  color: #9a681c;
  font-size: 12px;
  font-weight: 800;
}

.liuren-detail {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #eadfce;
}

.liuren-detail strong {
  color: #201813;
  font-size: 13px;
}

.liuren-detail span {
  color: #6e6254;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.liuren-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.liuren-actions button {
  height: 46px;
  border: 1px solid #dccbb1;
  border-radius: 14px;
  background: #fffdf8;
  color: #6e6254;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.liuren-actions button.primary {
  border-color: #7b3129;
  background: linear-gradient(180deg, #b74e39, #983323);
  color: #fffaf3;
  box-shadow: 0 12px 22px rgba(157, 51, 41, 0.16);
}

.liuren-actions .liuren-ask-xu {
  grid-column: 1 / -1;
}

.liuren-actions .liuren-reset-action {
  grid-column: 1 / -1;
}

.liuren-actions button:disabled {
  opacity: .54;
}

.liuren-status {
  margin: 10px 0 0;
  color: #9b7a3f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.liuren-status[data-tone="ok"] {
  color: #5f8745;
}

.liuren-status[data-tone="error"] {
  color: #a94437;
}

.liuren-copy-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.liuyao-top-reset {
  position: absolute;
  right: 24px;
  top: 45px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 86px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ead9bd;
  border-radius: 16px;
  background: #fff8ec;
  color: #9a681c;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-top-reset span,
.liuyao-top-reset em {
  display: block;
  font-style: normal;
  line-height: 1;
}

.liuyao-top-reset span {
  color: #6a4b23;
}

.liuyao-top-reset em {
  padding-left: 7px;
  border-left: 1px solid #e5d4b9;
  color: #a67a34;
}

.liuyao-panel {
  position: absolute;
  left: 24px;
  top: 96px;
  width: 342px;
  color: #201813;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.liuyao-panel button,
.liuyao-panel textarea {
  font-family: inherit;
}

.liuyao-flow-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 104px;
}

.liuyao-flow-hero {
  min-height: 168px;
  padding: 22px 22px 18px;
  border: 1px solid #b88935;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(217, 179, 106, .16) 0 20%, transparent 21%),
    linear-gradient(145deg, #201813 0%, #24180f 62%, #3a2717 100%);
  box-shadow: 0 18px 36px rgba(69, 45, 21, .16);
}

.liuyao-flow-hero span,
.liuyao-flow-hero strong,
.liuyao-flow-hero em {
  display: block;
}

.liuyao-flow-hero span {
  color: #d8b265;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.liuyao-flow-hero strong {
  margin-top: 18px;
  color: #fffaf3;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.18;
}

.liuyao-flow-hero em {
  margin-top: 13px;
  color: #e2d2bc;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.48;
}

.liuyao-flow-steps {
  display: grid;
  grid-template-columns: 58px 1fr 58px 1fr 58px;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #e2d2b8;
  border-radius: 18px;
  background: rgba(255, 253, 248, .95);
}

.liuyao-flow-steps span {
  color: #9a805a;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.liuyao-flow-steps span.is-active {
  color: #231a12;
}

html[lang="en"] .liuyao-flow-steps {
  grid-template-columns: 72px minmax(8px, 1fr) 48px minmax(8px, 1fr) 58px;
  padding: 0 12px;
}

html[lang="en"] .liuyao-flow-steps span {
  font-size: 10.5px;
  line-height: 1.12;
}

.liuyao-flow-steps i {
  height: 1px;
  background: #d8c4a3;
}

.liuyao-hero {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 220, 132, .22) 0 18%, transparent 19%),
    linear-gradient(135deg, #201713 0%, #6d2b22 55%, #b9822e 100%);
  box-shadow: 0 16px 32px rgba(77, 43, 22, .18);
}

.liuyao-hero span,
.liuyao-hero strong,
.liuyao-hero em {
  display: block;
}

.liuyao-hero span {
  color: #f1c46b;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-hero strong {
  margin-top: 9px;
  color: #fffaf3;
  font-size: 27px;
  line-height: 1.14;
}

.liuyao-hero em {
  margin-top: 9px;
  color: #eadcc7;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.liuyao-coin-panel {
  margin-top: 0;
  padding: 18px 16px 16px;
  border: 1px solid #dcc9a9;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(76, 48, 24, .08);
}

.liuyao-coin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.liuyao-coin-panel-head span {
  color: #231a12;
  font-size: 16px;
  font-weight: 900;
}

.liuyao-coin-panel-head strong {
  color: #9a805a;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-coin-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(194, 149, 60, .22);
  border-radius: 16px;
  background: #fbf5eb;
}

.liuyao-coin-summary > div {
  min-width: 0;
}

.liuyao-coin-summary span,
.liuyao-coin-summary strong,
.liuyao-coin-summary em {
  display: block;
}

.liuyao-coin-summary span {
  color: #8b6428;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-coin-summary strong {
  margin-top: 3px;
  color: #201813;
  font-size: 17px;
  font-weight: 900;
}

.liuyao-coin-summary em {
  margin-top: 4px;
  overflow: hidden;
  color: #8a7454;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[lang="en"] .liuyao-coin-summary em {
  white-space: normal;
}

.liuyao-coin-summary .liuyao-coin-face-strip {
  grid-column: 1 / -1;
  margin: 0;
}

.liuyao-coin-summary button {
  min-width: 96px;
  height: 38px;
  border: 1px solid #231a12;
  border-radius: 999px;
  background: #231a12;
  color: #fffaf3;
  font-size: 13px;
  font-weight: 900;
}

.liuyao-coin-summary button:disabled {
  opacity: .55;
  border-color: #e0d2bb;
  background: #e7d9c1;
  color: #846c49;
}

.liuyao-caster-modal {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  width: 390px;
  height: 844px;
  padding: calc(18px + var(--wentian-safe-top)) 18px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(244, 198, 98, .24), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f7eddd 100%);
  color: #201813;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.liuyao-caster-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}

.liuyao-caster-head > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 243, .72);
  color: #2d2520;
  font-size: 32px;
  line-height: 1;
}

.liuyao-caster-head span,
.liuyao-caster-head strong {
  display: block;
}

.liuyao-caster-head span {
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-caster-head strong {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 900;
}

.liuyao-caster-head em {
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff3d9;
  color: #8b5d1d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-caster-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.liuyao-caster-reset {
  height: 28px;
  padding: 0 11px;
  border: 1px solid #dcc8a7;
  border-radius: 999px;
  background: rgba(255, 253, 248, .88);
  color: #8b5d1d;
  font-size: 11px;
  font-weight: 900;
}

.liuyao-caster-reset:disabled {
  opacity: .48;
}

.liuyao-caster-body {
  padding: 14px 12px 12px;
  border: 1px solid #e7d7bf;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 74%, rgba(94, 52, 21, .14), transparent 38%),
    linear-gradient(180deg, #fffaf1 0%, #f0dfc6 100%);
  box-shadow: 0 20px 36px rgba(76, 48, 24, .12);
}

.liuyao-caster-result {
  min-height: 178px;
  padding: 13px 14px;
  border: 1px solid #e7d7bf;
  border-radius: 20px;
  background: rgba(255, 253, 248, .78);
}

.liuyao-caster-result > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.liuyao-caster-result span {
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-caster-result strong {
  color: #201813;
  font-size: 13px;
  font-weight: 900;
}

.liuyao-coin-stage {
  position: relative;
  height: 170px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  outline: 0;
  perspective: 780px;
  transform-style: preserve-3d;
}

.liuyao-coin-stage::before {
  content: "";
  position: absolute;
  inset: 8px 8px 34px;
  border: 1px solid rgba(156, 107, 39, .18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 236, 178, .5), transparent 56%),
    radial-gradient(circle at 50% 100%, rgba(91, 50, 20, .16), transparent 42%),
    rgba(111, 65, 28, .08);
}

.liuyao-coin-stage::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 42px;
  left: 42px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(71, 42, 18, .18), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.liuyao-coin-stage.is-modal {
  height: 364px;
}

.liuyao-coin-stage.is-modal::before {
  inset: 118px 10px 54px;
  border-color: rgba(154, 104, 28, .2);
  background:
    radial-gradient(ellipse at 52% 66%, rgba(72, 42, 19, .2), transparent 35%),
    radial-gradient(ellipse at 50% 44%, rgba(255, 241, 196, .65), transparent 58%),
    linear-gradient(180deg, rgba(255, 250, 241, .3), rgba(137, 82, 34, .12));
}

.liuyao-coin-stage.is-modal::after {
  right: 28px;
  bottom: 78px;
  left: 28px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(59, 34, 15, .2), transparent 72%);
}

.liuyao-coin-stage:focus-visible::before,
.liuyao-coin-stage.is-prompting::before,
.liuyao-coin-stage.is-dragging::before {
  border-color: rgba(255, 231, 159, .58);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 232, 170, .62), transparent 62%),
    rgba(111, 65, 28, .12);
  box-shadow: 0 0 22px rgba(255, 218, 121, .22);
}

.liuyao-coin-stage.is-prompting::before {
  animation: liuyaoPromptPulse .9s ease-out both;
}

.liuyao-coin-stage.is-disabled {
  cursor: default;
}

.liuyao-coin-stage.is-disabled .liuyao-coin-token {
  opacity: .72;
  filter: saturate(.78);
  animation-play-state: paused;
}

.liuyao-coin-token {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 78px;
  height: 96px;
  transform-style: preserve-3d;
  animation: liuyaoCoinSettle 2.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.liuyao-coin-token::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 53px;
  width: 58px;
  height: 17px;
  border-radius: 50%;
  background: rgba(54, 32, 14, .22);
  filter: blur(7px);
  transform: rotate(-4deg);
}

.liuyao-coin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(74, 43, 16, .45);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 239, 160, .75), transparent 15%),
    radial-gradient(circle at 66% 72%, rgba(83, 45, 18, .28), transparent 28%),
    linear-gradient(145deg, #e8bc58 0%, #c1872a 38%, #8a5619 72%, #5d3714 100%);
  box-shadow:
    0 18px 28px rgba(89, 53, 20, .26),
    inset 0 0 0 5px rgba(255, 229, 143, .22),
    inset 0 0 0 10px rgba(83, 45, 18, .12);
  color: #4a2a12;
  font-size: 12px;
  font-weight: 900;
  font-family: "SimSun", "Songti SC", serif;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(var(--coin-rot, -8deg));
}

.liuyao-coin::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(78, 43, 15, .32);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(255, 232, 152, .26),
    0 0 0 1px rgba(255, 238, 174, .16);
}

.liuyao-coin::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 72%, rgba(65, 97, 61, .18), transparent 14%),
    radial-gradient(circle at 78% 22%, rgba(255, 244, 188, .22), transparent 12%),
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .18) 44%, transparent 52% 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.liuyao-coin-stage.is-tossing .liuyao-coin-token {
  animation: liuyaoCoinToss 1s cubic-bezier(.18, .78, .18, 1) both;
  animation-delay: calc(var(--d) * .35);
}

.liuyao-coin-stage.is-tossing .liuyao-coin {
  animation: liuyaoCoinFlip 1s cubic-bezier(.2, .78, .18, 1) both;
  animation-delay: calc(var(--d) * .35);
}

.liuyao-coin-stage.is-dragging .liuyao-coin-token {
  animation: none;
  filter: drop-shadow(0 18px 18px rgba(30, 13, 8, .22));
  transform: translateY(var(--pull-y)) rotate(var(--drag-rot)) scale(1.04);
  transition: transform .06s linear;
}

.liuyao-coin-stage.is-dragging .liuyao-coin-token:nth-of-type(2) {
  transform: translateY(var(--pull-y)) rotate(var(--drag-rot-neg)) scale(1.04);
}

.liuyao-coin-stage.is-ready .liuyao-coin {
  box-shadow: 0 16px 28px rgba(30, 13, 8, .28), 0 0 18px rgba(247, 199, 91, .28), inset 0 0 0 4px rgba(255, 244, 205, .3);
}

.liuyao-coin-token:nth-of-type(1) {
  left: 54px;
  top: 24px;
  --tx: -38px;
  --rot: 720deg;
  --coin-rot: -13deg;
}

.liuyao-coin-token:nth-of-type(2) {
  right: 50px;
  top: 32px;
  --tx: 38px;
  --rot: -760deg;
  --coin-rot: 9deg;
}

.liuyao-coin-token:nth-of-type(3) {
  left: 50%;
  bottom: 47px;
  margin-left: -39px;
  --tx: 0px;
  --rot: 680deg;
  --coin-rot: 2deg;
}

.liuyao-coin-stage.is-modal .liuyao-coin-token:nth-of-type(1) {
  left: 34px;
  top: 188px;
  --tx: -66px;
}

.liuyao-coin-stage.is-modal .liuyao-coin-token:nth-of-type(2) {
  left: 132px;
  top: 214px;
  right: auto;
  --tx: 0px;
}

.liuyao-coin-stage.is-modal .liuyao-coin-token:nth-of-type(3) {
  right: 34px;
  left: auto;
  top: 180px;
  bottom: auto;
  margin-left: 0;
  --tx: 66px;
}

.liuyao-coin.is-yin {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 238, 188, .56), transparent 15%),
    radial-gradient(circle at 70% 72%, rgba(68, 50, 34, .25), transparent 28%),
    linear-gradient(145deg, #d3b981 0%, #a98545 42%, #755634 76%, #4e3a25 100%);
  color: #3f3020;
}

.liuyao-coin-stage .liuyao-coin b {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(72, 41, 15, .58);
  border-radius: 4px;
  background: #5a3417;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .45),
    0 0 0 3px rgba(255, 225, 135, .15);
  transform: translate(-50%, -50%);
}

.liuyao-coin-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  margin-top: -6px;
  border: 1px solid rgba(154, 104, 28, .22);
  border-radius: 999px;
  background: rgba(255, 250, 243, .9);
  color: #7d551f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(76, 48, 24, .08);
}

.liuyao-coin-token.is-tail .liuyao-coin-mark {
  color: #665541;
}

.coin-glyph {
  position: absolute;
  z-index: 3;
  color: rgba(62, 34, 12, .82);
  font-style: normal;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 223, 136, .28);
}

.coin-glyph.is-top {
  top: 9px;
  left: 0;
  right: 0;
  text-align: center;
}

.coin-glyph.is-bottom {
  right: 0;
  bottom: 9px;
  left: 0;
  text-align: center;
}

.coin-glyph.is-right {
  right: 12px;
  top: 29px;
}

.coin-glyph.is-left {
  left: 12px;
  top: 29px;
}

.liuyao-swipe-cue {
  position: absolute;
  right: 36px;
  bottom: 5px;
  left: 36px;
  z-index: 2;
  height: 22px;
  border-radius: 11px;
  background: rgba(150, 92, 28, .13);
  color: #9a681c;
  font-size: 11px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 186, .18);
}

.liuyao-power-meter {
  position: absolute;
  right: 34px;
  bottom: 38px;
  left: 34px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(150, 92, 28, .13);
  box-shadow: inset 0 0 0 1px rgba(150, 92, 28, .1);
}

.liuyao-power-meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(var(--power-fill));
  transform-origin: left center;
  background: linear-gradient(90deg, #f4cf79, #fff2bd);
  transition: transform .08s linear;
}

.liuyao-force-label {
  position: absolute;
  right: 28px;
  top: 7px;
  z-index: 2;
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
  text-shadow: none;
}

.liuyao-coin-stage.is-modal .liuyao-force-label {
  right: auto;
  left: 28px;
}

.liuyao-coin-stage.is-ready .liuyao-swipe-cue {
  color: #3b2314;
  background: rgba(255, 226, 145, .92);
}

.liuyao-coin-stage.is-tossing .liuyao-swipe-cue {
  color: #fffaf3;
  background: rgba(255, 250, 243, .18);
}

.liuyao-coin-stage.is-disabled .liuyao-swipe-cue {
  color: #8d7d6c;
  background: rgba(150, 92, 28, .1);
}

.liuyao-coin-face-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.liuyao-coin-face-strip span {
  color: #8f8173;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-coin-face-strip.is-empty {
  justify-content: center;
}

.liuyao-coin-face-strip em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(154, 104, 28, .2);
  border-radius: 999px;
  background: #fffaf1;
  color: #8b5d1d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-coin-face-strip em.is-tail {
  color: #665541;
  background: #f5ecd9;
}

.liuyao-coin-face-strip i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(194, 149, 60, .16);
  font-style: normal;
  font-size: 10px;
}

.liuyao-caster-body .liuyao-coin-face-strip {
  justify-content: center;
  margin-top: 10px;
}

.liuyao-casting-status {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff4df;
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.liuyao-reset-confirm {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: start center;
  padding: calc(160px + var(--wentian-safe-top)) 24px 24px;
  background: rgba(32, 24, 19, .38);
}

.liuyao-reset-confirm-card {
  width: min(310px, 100%);
  padding: 20px;
  border: 1px solid #e7d7bf;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 22px 46px rgba(54, 32, 14, .22);
}

.liuyao-reset-confirm-card strong {
  display: block;
  color: #201813;
  font-size: 18px;
  font-weight: 900;
}

.liuyao-reset-confirm-card p {
  margin: 8px 0 16px;
  color: #756b60;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.liuyao-reset-confirm-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.liuyao-reset-confirm-card button {
  height: 42px;
  border: 1px solid #e0cfb5;
  border-radius: 999px;
  background: #fffaf3;
  color: #806124;
  font-size: 13px;
  font-weight: 900;
}

.liuyao-reset-confirm-card button.primary {
  border-color: #a54635;
  background: #a54635;
  color: #fffaf3;
}

.liuyao-question-card,
.liuyao-mode-card,
.liuyao-progress-card,
.liuyao-result-preview,
.liuyao-reading-card,
.liuyao-detail-card,
.liuyao-empty-card {
  border: 1px solid #e7d7bf;
  border-radius: 18px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 12px 28px rgba(76, 48, 24, .08);
}

.liuyao-question-card {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
}

.liuyao-question-card.liuyao-ask-card {
  gap: 10px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.liuyao-ask-head {
  margin: 0 -14px 2px;
  padding: 18px;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 220, 132, .24) 0 19%, transparent 20%),
    linear-gradient(135deg, #201713 0%, #6d2b22 56%, #b9822e 100%);
}

.liuyao-question-card .liuyao-ask-head strong {
  display: block;
  color: #fffaf3;
  font-size: 24px;
  line-height: 1.12;
}

.liuyao-question-card label,
.liuyao-question-card span,
.liuyao-mode-card > span,
.liuyao-reading-card span,
.liuyao-detail-card summary {
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.liuyao-section-title label,
.liuyao-section-title span {
  color: #231a12;
  font-size: 17px;
  font-weight: 900;
}

.liuyao-section-title > span,
.liuyao-section-title em {
  color: #9a805a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.liuyao-quota-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #e1d1b6;
  border-radius: 999px;
  background: #fffaf1;
  color: #8b6428;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.liuyao-quota-badge.is-empty {
  border-color: #efc9bd;
  background: #fff3ee;
  color: #a34436;
}

.liuyao-question-card textarea {
  width: 100%;
  min-height: 126px;
  resize: none;
  border: 1px solid #dcc9a9;
  border-radius: 18px;
  outline: 0;
  background: #fffdf8;
  color: #201813;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.liuyao-question-card.liuyao-ask-card textarea {
  min-height: 126px;
}

.liuyao-question-card textarea:focus {
  border-color: #c2953c;
  box-shadow: 0 0 0 2px rgba(194, 149, 60, .13);
}

.liuyao-question-status {
  margin: 0 2px;
  color: #8f867b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.liuyao-question-status[data-tone="ok"] {
  color: #3e7c55;
}

.liuyao-question-status[data-tone="error"] {
  color: #a34436;
}

.liuyao-question-status[data-tone="loading"] {
  color: #9a681c;
}

.liuyao-question-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.liuyao-question-review-row .liuyao-question-status {
  margin: 0 0 1px 2px;
  min-width: 0;
}

.liuyao-question-rule {
  justify-self: center;
  min-width: 260px;
  margin-top: -58px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f7efe1;
  color: #8b6428;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}

.liuyao-question-submit {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #231a12;
  border-radius: 18px;
  background: #231a12;
  color: #fffaf3;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(35, 26, 18, .14);
}

.liuyao-question-submit.is-approved {
  border-color: rgba(63, 124, 85, .28);
  background: #edf6ed;
  color: #3f7c55;
}

.liuyao-question-submit.is-rejected {
  border-color: rgba(163, 68, 54, .22);
  background: #fff3ee;
  color: #a34436;
}

.liuyao-question-submit:disabled {
  opacity: .72;
  box-shadow: none;
}

.liuyao-question-suggestions {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.liuyao-question-suggestions > span {
  color: #231a12;
  font-size: 15px;
  font-weight: 900;
}

.liuyao-question-suggestions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.liuyao-question-suggestions button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #ead9bd;
  border-radius: 17px;
  background: #fffdf8;
  color: #745731;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.liuyao-mode-card {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.liuyao-mode-card > div:not(.liuyao-section-title) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  border-radius: 23px;
  background: #eee3d1;
}

.liuyao-mode-card button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 19px;
  background: transparent;
  color: #8a7454;
  font-size: 13px;
  font-weight: 900;
}

.liuyao-mode-card button.is-active {
  background: #fffdf8;
  color: #231a12;
  border-color: #d7c4a3;
  box-shadow: 0 3px 8px rgba(69, 45, 21, .08);
}

.liuyao-manual-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e7d7bf;
  border-radius: 18px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 12px 28px rgba(76, 48, 24, .08);
}

.liuyao-manual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.liuyao-manual-head span,
.liuyao-manual-head strong {
  display: block;
}

.liuyao-manual-head span {
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-head strong {
  margin-top: 3px;
  color: #201813;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.liuyao-manual-head em {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 32px;
  border: 1px solid rgba(194, 149, 60, .34);
  border-radius: 999px;
  background: #fff3d8;
  color: #9a681c;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-manual-card > p {
  margin: -2px 0 0;
  color: #756d63;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.liuyao-manual-lines {
  display: grid;
  gap: 10px;
}

.liuyao-manual-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(231, 215, 191, .9);
  border-radius: 14px;
  background: #fffaf3;
}

.liuyao-manual-line.is-next {
  border-color: rgba(194, 149, 60, .52);
  box-shadow: 0 0 0 2px rgba(194, 149, 60, .1);
}

.liuyao-manual-line.is-complete {
  background: #fffdf8;
}

.liuyao-manual-current,
.liuyao-manual-done {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(231, 215, 191, .96);
  border-radius: 16px;
  background: #fffaf3;
}

.liuyao-manual-current-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.liuyao-manual-current-head strong,
.liuyao-manual-done strong {
  display: block;
  color: #201813;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.liuyao-manual-current-head span,
.liuyao-manual-done span {
  display: block;
  margin-top: 3px;
  color: #8f8173;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-current-head em {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  border: 1px solid rgba(194, 149, 60, .34);
  border-radius: 999px;
  background: #fff3d8;
  color: #9a681c;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-manual-status {
  color: #756d63;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.liuyao-manual-current .liuyao-manual-coin-pick button {
  height: 38px;
  border-radius: 12px;
  font-size: 15px;
}

.liuyao-manual-current-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.liuyao-manual-current-actions .liuyao-manual-clear,
.liuyao-manual-current-actions .liuyao-manual-confirm,
.liuyao-manual-undo {
  width: auto;
  height: 34px;
  border: 1px solid #ead9bd;
  border-radius: 12px;
  background: #f6efe4;
  color: #8f8173;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-current-actions .liuyao-manual-confirm {
  border-color: #c2953c;
  background: #c79a39;
  color: #fffaf3;
  box-shadow: 0 8px 16px rgba(194, 149, 60, .18);
}

.liuyao-manual-current-actions .liuyao-manual-confirm:disabled {
  border-color: #ead9bd;
  background: #f6efe4;
  color: #b9afa3;
  box-shadow: none;
}

.liuyao-manual-history {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.liuyao-manual-history > span {
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-history > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.liuyao-manual-history i {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f6efe4;
  color: #786b5f;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-manual-line-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 10px;
}

.liuyao-manual-line-title strong {
  color: #201813;
  font-size: 14px;
  font-weight: 900;
}

.liuyao-manual-line-title span {
  color: #8f8173;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-coins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.liuyao-manual-coin-pick {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px 7px 7px;
  border: 1px solid #ead9bd;
  border-radius: 13px;
  background: #fffdf8;
}

.liuyao-manual-coin-pick i {
  color: #8f8173;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.liuyao-manual-coin-pick span {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #f7efe4;
}

.liuyao-manual-coin-pick button {
  height: 30px;
  min-width: 0;
  border: 1px solid #ead9bd;
  border-radius: 10px;
  background: #fffdf8;
  color: #7c6e60;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-coin-pick button.is-active {
  border-color: #c2953c;
  background: #fff1cf;
  color: #8b5d1d;
  box-shadow: inset 0 0 0 1px rgba(194, 149, 60, .16);
}

.liuyao-manual-clear {
  align-self: end;
  width: 48px;
  height: 30px;
  border: 1px solid #ead9bd;
  border-radius: 10px;
  background: #f6efe4;
  color: #8f8173;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-card button:disabled {
  opacity: .48;
}

.liuyao-progress-card {
  margin-top: 0;
  padding: 16px;
  border-radius: 20px;
}

.liuyao-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.liuyao-progress-head strong {
  color: #201813;
  font-size: 18px;
  font-weight: 900;
}

.liuyao-progress-head span {
  color: #8f8173;
  font-size: 11px;
  font-weight: 700;
}

.liuyao-progress-head em {
  color: #8b6428;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-progress-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(226, 207, 176, .78);
  border-radius: 14px;
  background: #fffaf0;
}

.liuyao-progress-result div {
  min-width: 0;
}

.liuyao-progress-result span {
  display: block;
  color: #9a681c;
  font-size: 11px;
  font-weight: 900;
}

.liuyao-progress-result strong {
  display: block;
  overflow: hidden;
  color: #201813;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liuyao-progress-result em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #8f8173;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liuyao-progress-result b {
  grid-column: 1 / -1;
  color: #a4493c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-hex-stack {
  display: grid;
  gap: 7px;
}

.liuyao-line-row {
  display: grid;
  grid-template-columns: 42px 1fr 54px;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.liuyao-line-label,
.liuyao-line-meta {
  color: #8f8173;
  font-size: 12px;
  font-weight: 800;
}

.liuyao-line-meta {
  text-align: right;
}

.liuyao-line-row.is-moving .liuyao-line-meta {
  color: #a64032;
}

.liuyao-line-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-width: 154px;
  height: 10px;
}

.liuyao-line-visual i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: #201813;
}

.liuyao-line-visual.is-yin {
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.liuyao-line-visual.is-empty i {
  background: #e8ddce;
}

.liuyao-line-row.is-moving .liuyao-line-visual i {
  background: #a64032;
}

.liuyao-line-row.is-landing,
.liuyao-line-row.is-new {
  border-radius: 12px;
  background: rgba(255, 239, 190, .48);
}

.liuyao-line-row.is-landing .liuyao-line-visual i,
.liuyao-line-row.is-new .liuyao-line-visual i {
  animation: liuyaoLineLand .9s ease-out both;
}

.liuyao-line-row.is-landing .liuyao-line-meta,
.liuyao-line-row.is-new .liuyao-line-meta {
  color: #9a681c;
}

.liuyao-result-preview {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 18px 20px;
  border-color: #b88935;
  border-radius: 20px;
  background: #241b13;
  box-shadow: 0 16px 30px rgba(69, 45, 21, .14);
}

.liuyao-result-preview strong {
  color: #fffaf3;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.liuyao-result-preview p {
  margin: 0;
  color: #ddcdb7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.liuyao-result-preview::after {
  content: "";
  width: 82px;
  height: 2px;
  border-radius: 2px;
  background: #b88935;
}

.liuyao-result-preview button {
  height: 42px;
  margin-top: 2px;
  border: 1px solid #d9b36a;
  border-radius: 999px;
  background: #d9b36a;
  color: #241b13;
  font-size: 14px;
  font-weight: 900;
}

.liuyao-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.liuyao-actions.is-single {
  grid-template-columns: 1fr;
}

.liuyao-actions button,
.liuyao-empty-card button {
  height: 48px;
  border: 1px solid #dccbb1;
  border-radius: 15px;
  background: #fffdf8;
  color: #6e6254;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.liuyao-actions button.primary {
  border-color: #7b3129;
  background: linear-gradient(180deg, #b74e39, #983323);
  color: #fffaf3;
  box-shadow: 0 12px 22px rgba(157, 51, 41, .16);
}

.liuyao-actions button:disabled {
  opacity: .55;
}

.liuyao-result-panel {
  top: 96px;
}

.liuyao-result-hero {
  position: relative;
  min-height: 152px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2a211b, #7b3025 58%, #bd8a36);
  color: #fffaf3;
  box-shadow: 0 16px 32px rgba(77, 43, 22, .18);
}

.liuyao-result-hero span,
.liuyao-result-hero strong,
.liuyao-result-hero em,
.liuyao-result-hero b {
  display: block;
}

.liuyao-result-hero span {
  color: #f2cc82;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-result-hero strong {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.liuyao-result-hero em {
  margin-top: 10px;
  color: #eadcc7;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.liuyao-result-hero b {
  position: absolute;
  right: 18px;
  top: 20px;
  max-width: 122px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 243, .14);
  color: #ffe4a5;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.liuyao-result-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.liuyao-result-pair article {
  min-height: 224px;
  padding: 13px 12px;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(76, 48, 24, .07);
}

.liuyao-result-pair article.is-image-card {
  min-height: 328px;
}

.liuyao-result-pair article > span {
  color: #9a681c;
  font-size: 11px;
  font-weight: 900;
}

.liuyao-result-pair article > strong {
  display: block;
  margin: 5px 0 12px;
  color: #201813;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.liuyao-result-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0 10px;
}

.liuyao-result-card-title > strong {
  min-width: 0;
  color: #201813;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.liuyao-mini-hex {
  display: grid;
  flex: 0 0 44px;
  gap: 3px;
  padding-top: 1px;
}

.liuyao-mini-hex i {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: center;
  height: 3px;
}

.liuyao-mini-hex i.is-yin {
  grid-template-columns: 1fr 1fr;
}

.liuyao-mini-hex b {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #211a15;
}

.liuyao-mini-hex i.is-moving b {
  background: #a94a3b;
}

.liuyao-hex-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  background: #f8f0e4;
  object-fit: cover;
}

.liuyao-result-pair article > em {
  display: block;
  margin-top: 9px;
  color: #8c8275;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.liuyao-original-quote {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid #ead9bd;
  border-radius: 12px;
  background: #fff7e8;
}

.liuyao-original-quote b,
.liuyao-original-quote small {
  display: block;
}

.liuyao-original-quote b {
  color: #9a681c;
  font-size: 11px;
  font-weight: 900;
}

.liuyao-original-quote p {
  margin: 0;
  color: #3a3028;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.48;
  white-space: pre-line;
}

.liuyao-original-quote small {
  color: #9a9086;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.liuyao-hex-stack.is-compact {
  gap: 6px;
}

.liuyao-hex-stack.is-compact .liuyao-line-row {
  grid-template-columns: 30px 1fr 0;
  min-height: 22px;
}

.liuyao-hex-stack.is-compact .liuyao-line-label {
  font-size: 10px;
}

.liuyao-hex-stack.is-compact .liuyao-line-meta {
  display: none;
}

.liuyao-hex-stack.is-compact .liuyao-line-visual {
  min-width: 80px;
}

.liuyao-hex-stack.is-compact .liuyao-line-visual.is-yin {
  gap: 16px;
}

.liuyao-reading-card,
.liuyao-detail-card {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 14px 16px;
}

.liuyao-reading-card strong {
  color: #201813;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.liuyao-reading-card p,
.liuyao-detail-card p {
  margin: 0;
  color: #5f554c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.62;
}

.liuyao-reading-card.is-warm {
  border-color: #d6b463;
  background: #fff4df;
}

.liuyao-ai-card {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d7bd82;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8e8 0%, #fffdf8 58%, #f7ead5 100%);
  box-shadow: 0 12px 26px rgba(76, 48, 24, .08);
}

.liuyao-ai-card span {
  color: #9a681c;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-ai-card strong {
  color: #201813;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.liuyao-ai-card p {
  margin: 0;
  color: #6b6055;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.liuyao-ai-card button {
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #b74e39, #983323);
  color: #fffaf3;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(157, 51, 41, .16);
}

.liuyao-result-panel .liuyao-actions {
  grid-template-columns: 1fr;
}

.liuyao-detail-card summary {
  cursor: pointer;
  list-style: none;
}

.liuyao-detail-card summary::-webkit-details-marker {
  display: none;
}

.liuyao-detail-card summary::after {
  content: "⌄";
  float: right;
}

.liuyao-detail-card[open] summary::after {
  content: "⌃";
}

.liuyao-empty-card {
  display: grid;
  gap: 14px;
  padding: 28px 20px;
}

.liuyao-empty-card strong {
  font-size: 22px;
  font-weight: 900;
}

.liuyao-empty-card span {
  color: #756d63;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

@keyframes liuyaoCoinFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }

  45% {
    transform: translateY(-8px) rotateX(14deg) rotateY(178deg);
  }
}

@keyframes liuyaoCoinSettle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes liuyaoCoinToss {
  0% {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  38% {
    filter: blur(.2px);
    opacity: .98;
    transform: translate3d(var(--tx), var(--throw-y), 46px) scale(1.14);
  }

  66% {
    filter: blur(.4px);
    opacity: .94;
    transform: translate3d(calc(var(--tx) * .45), -22px, 20px) scale(.96);
  }

  100% {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes liuyaoCoinFlip {
  0% {
    transform: rotateX(58deg) rotateZ(var(--coin-rot, -8deg));
  }

  38% {
    transform: rotateX(670deg) rotateY(130deg) rotateZ(var(--rot));
  }

  66% {
    transform: rotateX(980deg) rotateY(220deg) rotateZ(calc(var(--rot) * 1.2));
  }

  100% {
    transform: rotateX(58deg) rotateZ(var(--coin-rot, -8deg));
  }
}

@keyframes liuyaoLineLand {
  0% {
    opacity: .35;
    transform: scaleX(.18);
    transform-origin: center;
    box-shadow: 0 0 0 rgba(194, 149, 60, 0);
  }

  54% {
    opacity: 1;
    transform: scaleX(1.04);
    box-shadow: 0 0 18px rgba(194, 149, 60, .38);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
    box-shadow: 0 0 0 rgba(194, 149, 60, 0);
  }
}

@keyframes liuyaoPromptPulse {
  0% {
    transform: scale(.96);
  }

  58% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.wentian-pay-qr {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(70, 45, 25, 0.08);
}

.wentian-pay-qr img,
.wentian-pay-qr canvas {
  width: 156px !important;
  height: 156px !important;
}

.wentian-pay-qr a {
  color: #9a3f31;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.wentian-chart-content-stack {
  position: absolute;
  left: 8px;
  top: 608px;
  width: 374px;
  display: grid;
  gap: 12px;
}

.wentian-chart-ai-panel {
  width: 100%;
  padding: 18px 10px 20px;
  border: 1px solid #e0dcd3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
  box-shadow: 0 8px 22px rgba(70, 45, 25, 0.08);
}

.wentian-chart-ai-head > span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #b88c33;
  font-size: 12px;
  font-weight: 900;
}

.wentian-chart-ai-head h2 {
  margin: 0;
  color: #201813;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-chart-ai-head p {
  margin: 10px 0 0;
  color: #817568;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.wentian-chart-ai-head p.is-error {
  color: #a64032;
}

.wentian-chart-param-panel {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 14px 12px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
  box-shadow: 0 8px 18px rgba(70, 45, 25, 0.06);
}

.wentian-param-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wentian-param-head span {
  color: #b88c33;
  font-size: 11px;
  font-weight: 900;
}

.wentian-param-head b {
  color: #251d18;
  font-size: 16px;
  font-weight: 900;
}

.wentian-param-kv,
.wentian-param-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.wentian-param-kv div,
.wentian-param-flow div {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f7efe3;
}

.wentian-param-flow div:first-child {
  grid-column: 1 / -1;
}

.wentian-param-kv span,
.wentian-param-flow span,
.wentian-param-pillars span {
  display: block;
  margin-bottom: 4px;
  color: #9b8061;
  font-size: 10px;
  font-weight: 900;
}

.wentian-param-kv b,
.wentian-param-flow b,
.wentian-param-pillars b {
  display: block;
  min-width: 0;
  color: #30241c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wentian-param-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.wentian-param-pillars div {
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid #eadfce;
  border-radius: 9px;
  background: #fff;
  text-align: center;
}

.wentian-param-details {
  border-top: 1px solid #eadfce;
  padding-top: 9px;
}

.wentian-param-summary-title {
  color: #7e3b2f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.wentian-param-details summary {
  cursor: pointer;
  color: #7e3b2f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.wentian-param-palace-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.wentian-param-palace-details .wentian-param-palace-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.wentian-param-palace-details .wentian-param-palace-list::-webkit-scrollbar {
  width: 0;
}

.wentian-param-palace-line {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8f1e8;
}

.wentian-param-palace-line b {
  grid-row: span 3;
  color: #a06c20;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.wentian-param-palace-line span {
  color: #8a7a69;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.wentian-param-palace-line strong {
  color: #251d18;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wentian-param-palace-line em {
  color: #74685c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wentian-yijing-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(199, 164, 75, .5);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(204, 146, 61, .18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0) 18%),
    linear-gradient(160deg, #171007 0%, #090603 58%, #261806 100%);
  box-shadow: 0 18px 34px rgba(36, 22, 8, .2);
}

.wentian-yijing-head {
  display: grid;
  gap: 8px;
}

.wentian-yijing-head span,
.wentian-yijing-reading span,
.wentian-yijing-master span {
  display: inline-flex;
  color: #d9bd61;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

.wentian-yijing-head h2 {
  margin: 0;
  color: #fff7df;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.06;
}

.wentian-yijing-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wentian-yijing-tabs button {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid rgba(226, 199, 103, .3);
  border-radius: 16px;
  padding: 10px 8px;
  background: rgba(17, 11, 5, .88);
  color: #d7c7a0;
  font-family: inherit;
  text-align: center;
}

.wentian-yijing-tabs button.is-active {
  border-color: #f0d987;
  background: linear-gradient(135deg, #d5b368 0%, #f0d987 100%);
  color: #241607;
  box-shadow: 0 12px 24px rgba(180, 130, 52, .26);
}

.wentian-yijing-tabs span {
  display: block;
  pointer-events: none;
  font-size: 16px;
  font-weight: 900;
}

.wentian-yijing-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 199, 103, .18);
  border-radius: 16px;
  background: rgba(247, 230, 182, .08);
}

.wentian-yijing-current span {
  color: #b89f72;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}

.wentian-yijing-current strong {
  color: #fff5d8;
  font-size: 16px;
  font-weight: 900;
}

.wentian-yijing-age-rail {
  grid-auto-columns: 76px;
  gap: 10px;
  padding: 2px 0 4px;
}

.wentian-yijing-age-rail button {
  position: relative;
  min-height: 64px;
  padding: 8px 8px 10px;
  border-radius: 16px;
  border-color: rgba(227, 199, 109, .24);
  background: rgba(10, 7, 3, .9);
  color: #d8c7a0;
}

.wentian-yijing-age-rail button strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.wentian-yijing-age-rail button span {
  display: block;
  margin-top: 5px;
  color: #a68f63;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
}

.wentian-yijing-age-rail button.is-active {
  border-color: #e6c96d;
  background: linear-gradient(180deg, rgba(235, 212, 124, .16), rgba(94, 68, 30, .34));
  color: #fff7e2;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(158, 112, 40, .22);
}

.wentian-yijing-age-rail button.is-active span {
  color: #ecd58e;
}

.wentian-yijing-card {
  display: grid;
  padding: 14px;
  border: 1px solid rgba(227, 199, 109, .34);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbf4e8 0%, #f4ead8 100%);
  box-shadow: 0 16px 32px rgba(58, 35, 12, .2);
}

.wentian-yijing-art {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  min-height: 266px;
  aspect-ratio: 1.25 / 1;
  border-radius: 18px;
  background: #ebe0cc;
  overflow: hidden;
}

.wentian-yijing-art img {
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  object-fit: contain;
}

.wentian-yijing-art .wentian-yijing-lines {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 72px;
  gap: 6px;
  border: 1px solid rgba(226, 199, 103, .46);
  border-radius: 14px;
  padding: 10px;
  background: rgba(13, 9, 3, .88);
}

.wentian-yijing-art .wentian-yijing-lines i {
  height: 5px;
  background: #f0d982;
}

.wentian-yijing-lines {
  display: grid;
  gap: 8px;
  width: 60px;
}

.wentian-yijing-lines i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #f0d982;
}

.wentian-yijing-lines i.is-broken {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: transparent;
}

.wentian-yijing-lines i.is-broken b {
  display: block;
  border-radius: 999px;
  background: #f0d982;
}

.wentian-yijing-lines i.is-gap {
  height: 2px;
  background: transparent;
}

.wentian-yijing-empty-lines {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(226, 199, 103, .46);
  border-radius: 50%;
  color: #f0d982;
  font-size: 26px;
  font-weight: 900;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.wentian-yijing-main h3 {
  margin: 4px 0 0;
  color: #251d18;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.06;
}

.wentian-yijing-main {
  display: grid;
  gap: 4px;
  padding: 2px 4px 4px;
}

.wentian-yijing-card-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wentian-yijing-card-kicker span {
  color: #b78f45;
  font-size: 13px;
  font-weight: 900;
}

.wentian-yijing-card-kicker b {
  color: #7a6036;
  font-size: 13px;
  font-weight: 900;
}

.wentian-yijing-reading,
.wentian-yijing-master {
  padding: 16px 16px 18px;
  border: 1px solid rgba(226, 199, 103, .48);
  border-radius: 18px;
  background: rgba(13, 9, 4, .94);
}

.wentian-yijing-reading p,
.wentian-yijing-master p,
.wentian-yijing-master-detail p {
  display: block;
  margin: 0;
  color: #eadfc8;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.78;
}

.wentian-yijing-reading p {
  color: #d8c8a6;
}

.wentian-yijing-master-detail p {
  color: #efe4cc;
  font-size: 14px;
}

.wentian-yijing-reading .wentian-mb-reading-lines,
.wentian-yijing-master-detail .wentian-mb-reading-lines {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.wentian-yijing-reading .wentian-mb-reading-lines p {
  color: #d8c8a6;
  font-size: 13px;
}

.wentian-yijing-master-head {
  display: grid;
  gap: 6px;
}

.wentian-yijing-master strong {
  color: #fff7df;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

.wentian-yijing-master-detail {
  margin-top: 12px;
  border-top: 1px solid rgba(226, 199, 103, .3);
  padding-top: 12px;
}

.wentian-chart-ai-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 82px;
  gap: 7px;
  margin: 16px 0 12px;
}

.wentian-chart-ai-actions button {
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
}

.wentian-chart-ai-primary {
  border: 0;
  background: #ad3b35;
  color: #fff;
}

.wentian-chart-ai-primary:disabled {
  background: #c7b69e;
}

.wentian-chart-ai-secondary {
  border: 1px solid #e2d5c2;
  background: #fffaf3;
  color: #8f3d30;
}

.wentian-chart-ai-pdf-status {
  min-height: 18px;
  margin: -6px 0 10px;
  color: #8f8173;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.wentian-chart-ai-pdf-status.is-ready {
  color: #8f6421;
}

.wentian-chart-ai-pdf-status.is-error {
  color: #a64032;
}

.wentian-chart-ai-meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 0 0 12px;
}

.wentian-chart-ai-meter i {
  height: 6px;
  border-radius: 999px;
  background: #eadfce;
}

.wentian-chart-ai-meter i.is-running {
  background: #c2953c;
}

.wentian-chart-ai-meter i.is-done {
  background: #9f3d2e;
}

.wentian-chart-ai-modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.wentian-chart-ai-modules button {
  min-height: 32px;
  height: auto;
  padding: 4px 3px;
  border: 1px solid #e5d8c6;
  border-radius: 9px;
  background: #fff;
  color: #725d48;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.12;
  white-space: normal;
}

.wentian-chart-ai-modules button.is-ready {
  border-color: #c9a55c;
  background: #fff4db;
  color: #8b4a2b;
}

.wentian-chart-ai-modules button:disabled {
  opacity: .62;
}

html[lang="en"] .wentian-chart-ai-actions {
  grid-template-columns: minmax(0, 1fr) 64px 76px;
  gap: 6px;
}

html[lang="en"] .wentian-chart-ai-actions button {
  font-size: 12px;
  line-height: 1.1;
}

html[lang="en"] .wentian-chart-ai-modules {
  gap: 5px;
}

html[lang="en"] .wentian-chart-ai-modules button {
  min-height: 34px;
  height: auto;
  padding: 3px 4px;
  font-size: 10px;
  line-height: 1.08;
  white-space: normal;
}

.wentian-chart-ai-pulse {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.wentian-chart-ai-pulse span {
  min-width: 0;
  padding: 9px 6px;
  border-radius: 10px;
  background: #f6efe4;
  color: #8f8173;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.wentian-chart-ai-pulse b {
  display: block;
  margin-bottom: 3px;
  color: #2c211a;
  font-size: 13px;
}

.wentian-chart-ai-final-board {
  display: grid;
  gap: 13px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(211, 174, 99, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(238, 202, 125, .17), transparent 30%),
    linear-gradient(180deg, #24160d 0%, #120b07 100%);
  color: #fff7ea;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, .08), 0 14px 28px rgba(52, 30, 12, .18);
}

.wentian-chart-ai-final-hero {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(230, 194, 116, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at right top, rgba(240, 204, 126, .16), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 240, .13), rgba(255, 250, 240, .04));
}

.wentian-chart-ai-final-hero span {
  color: #d8bb75;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.wentian-chart-ai-final-hero h3 {
  margin: 0;
  color: #fff9ee;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.12;
}

.wentian-chart-ai-final-hero p {
  margin: 0;
  color: rgba(244, 228, 201, .84);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.62;
}

.wentian-chart-ai-final-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.wentian-chart-ai-final-meta div {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(233, 196, 119, .14);
  border-radius: 13px;
  background: rgba(255, 250, 240, .075);
  color: rgba(244, 228, 199, .76);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.wentian-chart-ai-final-meta b {
  display: block;
  margin-bottom: 3px;
  color: #fff8ec;
  font-size: 14px;
  font-weight: 900;
}

.wentian-chart-ai-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wentian-chart-ai-final-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 164px;
  padding: 11px;
  border: 1px solid rgba(225, 192, 131, .26);
  border-radius: 16px;
  background:
    radial-gradient(circle at right top, rgba(240, 205, 130, .12), transparent 30%),
    rgba(255, 251, 244, .96);
  color: #24180f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .07);
}

.wentian-chart-ai-final-card.is-featured {
  border-color: rgba(224, 184, 105, .52);
  box-shadow: 0 12px 22px rgba(208, 152, 61, .16);
}

.wentian-chart-ai-final-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wentian-chart-ai-final-vol,
.wentian-chart-ai-final-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  font-weight: 900;
  line-height: 1;
}

.wentian-chart-ai-final-vol {
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8e4b0 0%, #d49a47 100%);
  color: #351f0d;
  font-size: 11px;
}

.wentian-chart-ai-final-tag {
  max-width: 78px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(214, 183, 130, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #917d67;
  font-size: 10px;
  text-overflow: ellipsis;
}

.wentian-chart-ai-final-card h3 {
  margin: 0;
  color: #24180f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-chart-ai-final-card p {
  margin: 0;
  color: #7a6958;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.wentian-chart-ai-final-card button {
  align-self: end;
  min-height: 34px;
  margin-top: auto;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d08a 0%, #cc9047 100%);
  color: #2d190d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

.wentian-chart-ai-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.wentian-chart-ai-menu button {
  min-width: 0;
  height: 46px;
  border: 1px solid #eadbc7;
  border-radius: 10px;
  background: #fff;
  color: #8d7d6d;
  font-family: inherit;
  text-align: center;
}

.wentian-chart-ai-menu button.is-ready {
  border-color: #d2ad61;
  background: #fff6df;
}

.wentian-chart-ai-menu b,
.wentian-chart-ai-menu span {
  display: block;
  pointer-events: none;
}

.wentian-chart-ai-menu b {
  color: #b88c33;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.wentian-chart-ai-menu span {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

html[lang="en"] .wentian-chart-ai-menu {
  gap: 5px;
}

html[lang="en"] .wentian-chart-ai-final-hero h3 {
  font-size: 20px;
}

html[lang="en"] .wentian-chart-ai-final-card {
  min-height: 188px;
}

html[lang="en"] .wentian-chart-ai-final-tag {
  max-width: 92px;
}

html[lang="en"] .wentian-chart-ai-final-card h3 {
  font-size: 15px;
}

html[lang="en"] .wentian-chart-ai-final-card p,
html[lang="en"] .wentian-chart-ai-final-card button {
  font-size: 11px;
}

html[lang="en"] .wentian-chart-ai-menu button {
  height: 58px;
  padding: 3px;
}

html[lang="en"] .wentian-chart-ai-menu b {
  font-size: 10px;
}

html[lang="en"] .wentian-chart-ai-menu span {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.05;
}

.wentian-chart-ai-list {
  display: grid;
  gap: 14px;
}

.wentian-chart-ai-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 18px 18px;
  border: 1px solid rgba(205, 168, 91, .42);
  border-radius: 22px;
  background:
    linear-gradient(145deg, #17100b 0%, #352017 48%, #130c09 100%);
  box-shadow: 0 22px 42px rgba(73, 47, 20, .23);
  color: #fff6dd;
}

.wentian-chart-ai-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.wentian-chart-ai-panel > * {
  position: relative;
  z-index: 1;
}

.wentian-chart-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.wentian-chart-ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #efd27b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-chart-ai-kicker i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #efd27b;
  box-shadow: 0 0 0 6px rgba(239, 210, 123, .12);
}

.wentian-chart-ai-head h2 {
  margin: 8px 0 0;
  color: #fff8e8;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.wentian-chart-ai-status {
  flex: 0 0 auto;
  min-width: 82px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(239, 210, 123, .46);
  border-radius: 999px;
  background: rgba(255, 243, 196, .08);
  color: #f8dc8b;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wentian-chart-ai-error {
  margin: -3px 0 12px;
  color: #ffd2c8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.wentian-chart-ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: center;
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(232, 195, 112, .34);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(91, 55, 33, .72), rgba(47, 32, 22, .68));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.wentian-chart-ai-hero-copy {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.wentian-chart-ai-hero strong {
  display: block;
  margin-bottom: 8px;
  color: #fff7e3;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.wentian-chart-ai-hero-title {
  margin-bottom: 0;
}

.wentian-chart-ai-hero p {
  margin: 0;
  color: rgba(255, 244, 218, .72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.wentian-chart-ai-coin {
  position: relative;
  isolation: isolate;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  border: 3px solid #f3cf77;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 252, 222, .54), transparent 24%),
    radial-gradient(circle at 68% 18%, rgba(255, 246, 198, .58) 0 4px, transparent 6px),
    radial-gradient(circle at 78% 68%, rgba(255, 236, 170, .36) 0 2px, transparent 4px),
    linear-gradient(145deg, #e0c06b, #bf7a40 82%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -14px 24px rgba(98, 50, 26, .16),
    0 0 0 8px rgba(241, 212, 125, .08),
    0 14px 30px rgba(185, 111, 66, .28),
    inset -10px -14px 18px rgba(103, 53, 15, .24),
    inset 7px 9px 14px rgba(255, 255, 255, .35);
  color: #1f1308;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.04;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  animation: wentianChartAiCoinGlow 2.8s ease-in-out infinite;
}

.wentian-chart-ai-coin::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 14%, rgba(255, 246, 196, .95) 20%, transparent 30%, transparent 54%, rgba(255, 218, 122, .76) 63%, transparent 74%, transparent);
  opacity: .9;
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 64% 100%);
  mask: radial-gradient(circle, transparent 0 62%, #000 64% 100%);
  mix-blend-mode: screen;
  animation: wentianChartAiCoinSpin 5.2s linear infinite;
}

.wentian-chart-ai-coin::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .62) 47%, rgba(255, 230, 154, .32) 53%, transparent 66%);
  transform: translateX(-120%) rotate(18deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: wentianChartAiCoinShine 2.6s ease-in-out infinite;
}

.wentian-chart-ai-coin:disabled {
  cursor: wait;
}

.wentian-chart-ai-coin.is-running:disabled {
  opacity: 1;
}

.wentian-chart-ai-coin-ring {
  position: absolute;
  inset: 5px;
  z-index: 2;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg,
      rgba(255, 246, 196, .98) 0 var(--decode-progress, 0deg),
      rgba(87, 61, 31, .38) var(--decode-progress, 0deg) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60% 72%, transparent 74% 100%);
  mask: radial-gradient(circle, transparent 0 58%, #000 60% 72%, transparent 74% 100%);
  filter: drop-shadow(0 0 9px rgba(241, 212, 125, .28));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wentian-chart-ai-coin-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(from -90deg, rgba(39, 27, 13, .72) 0 1.8deg, transparent 1.8deg 60deg);
}

.wentian-chart-ai-coin.has-progress .wentian-chart-ai-coin-ring,
.wentian-chart-ai-coin.has-progress em,
.wentian-chart-ai-coin.is-running .wentian-chart-ai-coin-ring,
.wentian-chart-ai-coin.is-running em,
.wentian-chart-ai-coin.is-complete .wentian-chart-ai-coin-ring,
.wentian-chart-ai-coin.is-complete em {
  opacity: 1;
  visibility: visible;
}

.wentian-chart-ai-coin.is-running .wentian-chart-ai-coin-ring {
  filter: drop-shadow(0 0 14px rgba(255, 225, 142, .5));
  animation: wentianChartAiProgressBreath 1.35s ease-in-out infinite;
}

.wentian-chart-ai-coin.is-complete .wentian-chart-ai-coin-ring {
  filter: drop-shadow(0 0 18px rgba(255, 225, 142, .62));
}

.wentian-chart-ai-coin span,
.wentian-chart-ai-coin b,
.wentian-chart-ai-coin em {
  position: relative;
  z-index: 3;
  display: block;
  color: #1b1209;
  text-shadow: 0 1px 0 rgba(255, 244, 196, .36);
}

.wentian-chart-ai-coin span {
  font-size: 14px;
}

.wentian-chart-ai-coin b {
  font-size: 30px;
}

.wentian-chart-ai-coin em {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
}

@keyframes wentianChartAiCoinGlow {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.14);
    transform: scale(1.03);
  }
}

@keyframes wentianChartAiCoinSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wentianChartAiCoinShine {
  0%,
  34% {
    opacity: 0;
    transform: translateX(-120%) rotate(18deg);
  }
  48% {
    opacity: .95;
  }
  72%,
  100% {
    opacity: 0;
    transform: translateX(120%) rotate(18deg);
  }
}

@keyframes wentianChartAiProgressBreath {
  0%,
  100% {
    opacity: .82;
  }
  50% {
    opacity: 1;
  }
}

.wentian-chart-ai-pulse {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.wentian-chart-ai-pulse span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(232, 195, 112, .3);
  border-radius: 999px;
  background: rgba(255, 247, 218, .06);
  color: #f4db94;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.wentian-chart-ai-pulse b {
  display: inline-block;
  margin: 0 4px 0 0;
  color: #fff7df;
  font-size: 18px;
  line-height: 1;
  vertical-align: -1px;
}

.wentian-chart-ai-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.wentian-chart-ai-actions button {
  height: 46px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
}

.wentian-chart-ai-primary {
  border: 1px solid rgba(239, 210, 123, .5);
  background: linear-gradient(180deg, #ffe8a8 0%, #c8923e 100%);
  color: #251506;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), 0 10px 20px rgba(0, 0, 0, .16);
}

.wentian-chart-ai-primary:disabled {
  border-color: rgba(239, 210, 123, .34);
  background: linear-gradient(180deg, #b8995a 0%, #796037 100%);
  color: rgba(255, 248, 226, .72);
}

.wentian-chart-ai-secondary {
  border: 1px solid rgba(239, 210, 123, .5);
  background: rgba(255, 244, 210, .05);
  color: #f2d68b;
}

.wentian-chart-ai-secondary:disabled {
  cursor: not-allowed;
  border-color: rgba(239, 210, 123, .28);
  background: rgba(255, 244, 210, .03);
  color: rgba(242, 214, 139, .48);
}

.wentian-chart-ai-shortcut {
  width: 100%;
  height: 52px;
  margin: 10px 0 0;
  border: 1px solid rgba(255, 226, 148, .82);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 251, 225, .72), transparent 24%),
    linear-gradient(180deg, #f6d985 0%, #e4b758 42%, #bf8433 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -10px 18px rgba(124, 70, 18, .16),
    0 12px 22px rgba(71, 39, 14, .22),
    0 0 0 1px rgba(255, 226, 148, .14);
  color: #43240e;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255, 248, 225, .45);
}

.wentian-chart-ai-shortcut:disabled {
  opacity: .72;
  cursor: wait;
}

.wentian-chart-ai-pdf-status {
  min-height: 0;
  margin: 8px 0 0;
  color: #f2d68b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.wentian-chart-ai-pdf-status:empty {
  display: none;
}

.wentian-chart-ai-pdf-status.is-ready {
  color: #f7df9c;
}

.wentian-chart-ai-pdf-status.is-error {
  color: #ffd2c8;
}

html[lang="en"] .wentian-chart-ai-actions {
  grid-template-columns: minmax(0, 1fr) 72px 86px;
  gap: 7px;
}

html[lang="en"] .wentian-chart-ai-actions button {
  font-size: 12px;
  line-height: 1.1;
}

.wentian-mb-chapter {
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(70, 45, 25, .05);
}

.wentian-mb-chapter.is-ready {
  border-color: #dcc08a;
}

.wentian-mb-overall-chapter,
.wentian-mb-overall-chapter.is-ready {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wentian-mb-overall-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #22150f 0%, #57261d 58%, #b77f28 100%);
  box-shadow: 0 14px 30px rgba(74, 43, 20, .22);
}

.wentian-mb-overall-hero::before {
  content: "壹";
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(255, 244, 216, .13);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.wentian-mb-overall-hero span,
.wentian-mb-overall-hero h3,
.wentian-mb-overall-hero b,
.wentian-mb-overall-hero p,
.wentian-mb-overall-hero button {
  position: relative;
}

.wentian-mb-overall-hero span {
  display: block;
  color: #f4d293;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-overall-hero h3 {
  max-width: 232px;
  margin: 10px 0 0;
  color: #fffaf3;
  font-size: 37px;
  font-weight: 900;
  line-height: 1.02;
}

.wentian-mb-overall-hero b {
  display: inline-flex;
  max-width: 100%;
  margin-top: 13px;
  border: 1px solid rgba(244, 210, 147, .45);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 243, .08);
  color: #ffe7b0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-overall-hero p {
  margin: 15px 0 0;
  color: #fff0d5;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
}

.wentian-mb-overall-hero button,
.wentian-mb-overall-empty button {
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid rgba(244, 210, 147, .48);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 250, 243, .1);
  color: #ffe7b0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-overall-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wentian-mb-overall-quick section {
  min-width: 0;
  border: 1px solid #e2ca8e;
  border-radius: 12px;
  padding: 10px 10px 9px;
  background: #fffdf8;
  box-shadow: 0 7px 16px rgba(80, 51, 25, .06);
}

.wentian-mb-overall-quick strong,
.wentian-mb-overall-quick span {
  display: block;
  overflow-wrap: anywhere;
}

.wentian-mb-overall-quick strong {
  color: #211812;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
}

.wentian-mb-overall-quick span {
  margin-top: 4px;
  color: #9b742e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
}

.wentian-mb-overall-sections {
  display: grid;
  gap: 10px;
}

.wentian-mb-overall-sections section,
.wentian-mb-overall-empty {
  border: 1px solid #e3cf9f;
  border-radius: 16px;
  padding: 15px 16px 14px;
  background: #fffdf9;
  box-shadow: 0 8px 20px rgba(83, 54, 26, .07);
}

.wentian-mb-overall-sections header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.wentian-mb-overall-sections header span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 10px;
  background: #251812;
  color: #f4d293;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-overall-sections h4 {
  margin: 0;
  color: #211812;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-mb-overall-sections p,
.wentian-mb-overall-empty p {
  margin: 0;
  color: #44382e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.wentian-mb-overall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.wentian-mb-overall-tags i {
  border: 1px solid #e1c585;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff2d8;
  color: #76551f;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-overall-risk {
  border: 1px solid #c2953c;
  border-radius: 16px;
  padding: 16px;
  background: #2a1811;
  box-shadow: 0 12px 25px rgba(55, 31, 17, .16);
}

.wentian-mb-overall-risk strong {
  display: block;
  color: #f4d293;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-overall-risk p {
  margin: 8px 0 0;
  color: #fff4df;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.wentian-mb-special-chapter,
.wentian-mb-special-chapter.is-ready {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wentian-mb-special-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #22150f 0%, #57261d 58%, #b77f28 100%);
  box-shadow: 0 14px 30px rgba(74, 43, 20, .22);
}

.wentian-mb-special-hero::before {
  content: "贰";
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(255, 244, 216, .13);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.wentian-mb-special-hero span,
.wentian-mb-special-hero h3,
.wentian-mb-special-hero b,
.wentian-mb-special-hero p,
.wentian-mb-special-hero button {
  position: relative;
}

.wentian-mb-special-hero span {
  display: block;
  color: #f4d293;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-special-hero h3 {
  max-width: 232px;
  margin: 10px 0 0;
  color: #fffaf3;
  font-size: 37px;
  font-weight: 900;
  line-height: 1.02;
}

.wentian-mb-special-hero b {
  display: inline-flex;
  max-width: 100%;
  margin-top: 13px;
  border: 1px solid rgba(244, 210, 147, .45);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 243, .08);
  color: #ffe7b0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-special-hero p {
  margin: 15px 0 0;
  color: #fff0d5;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
}

.wentian-mb-special-hero button {
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid rgba(244, 210, 147, .48);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 250, 243, .1);
  color: #ffe7b0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-special-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.wentian-mb-special-tabs button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #e2ca8e;
  border-radius: 12px;
  background: #fffdf8;
  color: #8a6325;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 7px 16px rgba(80, 51, 25, .05);
  cursor: pointer;
}

.wentian-mb-special-tabs button:active {
  transform: translateY(1px);
}

.wentian-mb-special-list {
  display: grid;
  gap: 10px;
}

.wentian-mb-special-list > section {
  position: relative;
  border: 1px solid #e3cf9f;
  border-radius: 16px;
  padding: 15px 16px 14px;
  background: #fffdf9;
  box-shadow: 0 8px 20px rgba(83, 54, 26, .07);
}

.wentian-mb-special-list > section:nth-child(4) {
  border-color: #d0aa63;
  background: linear-gradient(180deg, #fffdf9, #fff7e7);
}

.wentian-mb-special-list > section.is-focused {
  border-color: #c69237;
  box-shadow: 0 0 0 2px rgba(198, 146, 55, .16), 0 12px 26px rgba(83, 54, 26, .12);
}

.wentian-mb-special-list header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.wentian-mb-special-list header > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 10px;
  background: #251812;
  color: #f4d293;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-special-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wentian-mb-special-title-row b {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #dfc384;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff4dc;
  color: #9b742e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.wentian-mb-special-title-row h4 {
  min-width: 0;
  margin: 0;
  color: #211812;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-mb-special-list em {
  justify-self: end;
  border: 1px solid #e1c585;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff2d8;
  color: #76551f;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.wentian-mb-reading-lines {
  display: grid;
  gap: 8px;
}

.wentian-mb-reading-lines p {
  margin: 0;
  color: #44382e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.wentian-mb-special-list aside {
  margin-top: 11px;
  border: 1px solid #e1c585;
  border-radius: 13px;
  padding: 10px 11px;
  background: #fff2d8;
  color: #6e4b1d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.wentian-mb-special-list > section > button {
  min-height: 44px;
  margin-top: 11px;
  border: 1px solid #d8c7ad;
  border-radius: 13px;
  padding: 0 14px;
  background: #fffaf3;
  color: #8f3d30;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-luck-chapter,
.wentian-mb-luck-chapter.is-ready {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wentian-mb-luck-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #22150f 0%, #57261d 58%, #b77f28 100%);
  box-shadow: 0 14px 30px rgba(74, 43, 20, .22);
}

.wentian-mb-luck-hero::before {
  content: "叁";
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(255, 244, 216, .13);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.wentian-mb-luck-hero span,
.wentian-mb-luck-hero h3,
.wentian-mb-luck-hero b,
.wentian-mb-luck-hero p {
  position: relative;
}

.wentian-mb-luck-hero span {
  display: block;
  color: #f4d293;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-luck-hero h3 {
  max-width: 242px;
  margin: 10px 0 0;
  color: #fffaf3;
  font-size: 37px;
  font-weight: 900;
  line-height: 1.02;
}

.wentian-mb-luck-hero b {
  display: inline-flex;
  max-width: 100%;
  margin-top: 13px;
  border: 1px solid rgba(244, 210, 147, .45);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 243, .08);
  color: #ffe7b0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-luck-hero p {
  margin: 15px 0 0;
  color: #fff0d5;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
}

.wentian-mb-luck-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
  gap: 7px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wentian-mb-luck-rail::-webkit-scrollbar {
  display: none;
}

.wentian-mb-luck-rail button {
  display: grid;
  place-items: center;
  min-height: 66px;
  border: 1px solid #e2ca8e;
  border-radius: 16px;
  padding: 8px 6px;
  background: #fffdf8;
  color: #6b4b1c;
  font-family: inherit;
  text-align: center;
  box-shadow: 0 7px 16px rgba(80, 51, 25, .05);
}

.wentian-mb-luck-rail button.is-active {
  border-color: #251812;
  background: linear-gradient(180deg, #4a3a1c, #211812);
  color: #fff6db;
  box-shadow:
    0 9px 22px rgba(52, 31, 15, .18),
    inset 0 0 0 1px rgba(255, 238, 177, .22);
}

.wentian-mb-luck-rail span,
.wentian-mb-luck-rail strong,
.wentian-mb-luck-rail em {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.wentian-mb-luck-rail span {
  font-size: 14px;
  line-height: 1.05;
}

.wentian-mb-luck-rail strong {
  font-size: 15px;
  line-height: 1.15;
}

.wentian-mb-luck-rail em {
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff2d8;
  color: #8a6325;
  font-size: 14px;
  font-style: normal;
  line-height: 1.1;
}

.wentian-mb-luck-summary {
  border: 1px solid #d0aa63;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #fffdf9, #fff7e7);
  box-shadow: 0 8px 20px rgba(83, 54, 26, .07);
}

.wentian-mb-luck-summary span {
  display: block;
  color: #a27625;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-luck-summary h4 {
  margin: 7px 0 0;
  color: #211812;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-mb-luck-summary p {
  margin: 10px 0 0;
  color: #6f6254;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.wentian-mb-luck-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wentian-mb-luck-metrics section {
  min-width: 0;
  border: 1px solid #e3cf9f;
  border-radius: 12px;
  padding: 10px;
  background: #fffdf9;
}

.wentian-mb-luck-metrics b,
.wentian-mb-luck-metrics strong {
  display: block;
  overflow-wrap: anywhere;
}

.wentian-mb-luck-metrics b {
  color: #9b742e;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-luck-metrics strong {
  margin-top: 5px;
  color: #211812;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-mb-luck-list {
  display: grid;
  gap: 10px;
}

.wentian-mb-luck-list > section {
  border: 1px solid #e3cf9f;
  border-radius: 16px;
  padding: 15px 16px 14px;
  background: #fffdf9;
  box-shadow: 0 8px 20px rgba(83, 54, 26, .07);
}

.wentian-mb-luck-list > section.is-warn {
  border-color: #c2953c;
  background: #2a1811;
}

.wentian-mb-luck-list header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.wentian-mb-luck-list header span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 10px;
  background: #251812;
  color: #f4d293;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-luck-list h4 {
  margin: 0;
  color: #211812;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-mb-luck-list > section.is-warn h4 {
  color: #f4d293;
}

.wentian-mb-luck-list > section.is-warn .wentian-mb-reading-lines p {
  color: #fff4df;
  font-weight: 900;
}

.wentian-mb-luck-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wentian-mb-luck-actions button {
  min-height: 44px;
  border: 1px solid #d8c7ad;
  border-radius: 13px;
  padding: 0 12px;
  background: #fffaf3;
  color: #8f3d30;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-luck-actions button:last-child {
  border-color: #251812;
  background: #251812;
  color: #ffe7b0;
}

.wentian-mb-xiaolian-chapter,
.wentian-mb-xiaolian-chapter.is-ready {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #6d5728;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(214, 185, 89, .16), transparent 30%),
    radial-gradient(circle at 92% 56%, rgba(214, 185, 89, .12), transparent 35%),
    #090604;
  box-shadow: 0 18px 34px rgba(36, 22, 8, .2);
}

.wentian-mb-xiaolian-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1c1509 0%, #100b05 64%, #4a3717 100%);
}

.wentian-mb-xiaolian-hero::before {
  content: "肆";
  position: absolute;
  right: 18px;
  top: 8px;
  color: rgba(255, 231, 155, .13);
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

.wentian-mb-xiaolian-hero span,
.wentian-mb-xiaolian-hero h3 {
  position: relative;
}

.wentian-mb-xiaolian-hero span {
  display: block;
  color: #e4c567;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-xiaolian-hero h3 {
  max-width: 248px;
  margin: 10px 0 0;
  color: #fff7df;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.06;
}

.wentian-mb-xiaolian-age-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62px;
  gap: 7px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wentian-mb-xiaolian-age-rail::-webkit-scrollbar {
  display: none;
}

.wentian-mb-xiaolian-age-rail button {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(208, 177, 89, .42);
  border-radius: 15px;
  padding: 6px 5px;
  background: #151006;
  color: #e7cc70;
  font-family: inherit;
  text-align: center;
}

.wentian-mb-xiaolian-age-rail button.is-active {
  border-color: #f0dc8b;
  background: linear-gradient(180deg, #6a5b31, #2b2310);
  color: #fff7da;
  box-shadow: 0 0 20px rgba(232, 207, 105, .28);
}

.wentian-mb-xiaolian-age-rail span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.wentian-mb-xiaolian-age-rail span {
  font-size: 16px;
  line-height: 1.05;
}

.wentian-mb-xiaolian-summary,
.wentian-mb-xiaolian-read {
  border: 1px solid rgba(199, 164, 75, .55);
  border-radius: 18px;
  background: rgba(50, 41, 23, .88);
}

.wentian-mb-xiaolian-summary {
  padding: 18px;
}

.wentian-mb-xiaolian-summary span,
.wentian-mb-xiaolian-read b {
  display: block;
  color: #e2c767;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-xiaolian-summary h4 {
  margin: 8px 0 0;
  color: #fff8ea;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.12;
}

.wentian-mb-xiaolian-summary p,
.wentian-mb-xiaolian-read p {
  margin: 12px 0 0;
  color: #d6c9a9;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.wentian-mb-xiaolian-triggers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wentian-mb-xiaolian-triggers section {
  min-width: 0;
  border: 1px solid rgba(199, 164, 75, .45);
  border-radius: 16px;
  padding: 13px 10px;
  background: rgba(18, 12, 4, .96);
}

.wentian-mb-xiaolian-triggers b,
.wentian-mb-xiaolian-triggers strong {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.wentian-mb-xiaolian-triggers b {
  color: #d7bb61;
  font-size: 14px;
}

.wentian-mb-xiaolian-triggers strong {
  margin-top: 9px;
  color: #fff7e5;
  font-size: 17px;
  line-height: 1.18;
}

.wentian-mb-xiaolian-read {
  padding: 17px 18px;
  background: rgba(12, 8, 3, .96);
}

.wentian-mb-xiaolian-list {
  display: grid;
  gap: 12px;
}

.wentian-mb-xiaolian-list > section {
  border: 1px solid #d9bf7d;
  border-radius: 18px;
  padding: 17px 18px 15px;
  background: #f7efdd;
}

.wentian-mb-xiaolian-list header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.wentian-mb-xiaolian-list header span {
  color: #b38a2f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.wentian-mb-xiaolian-list h4 {
  margin: 0;
  color: #21180d;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.14;
}

.wentian-mb-xiaolian-list .wentian-mb-reading-lines p {
  color: #514430;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.72;
}

.wentian-mb-xiaolian-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.wentian-mb-xiaolian-tags i {
  border-radius: 999px;
  padding: 5px 10px;
  background: #ead9a8;
  color: #765817;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-xiaolian-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wentian-mb-xiaolian-actions button {
  min-height: 44px;
  border: 1px solid rgba(226, 197, 103, .46);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(36, 27, 10, .95);
  color: #f0d982;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-xiaolian-actions button:last-child {
  border-color: #e7c95e;
  background: #e7c95e;
  color: #1b1205;
}

.wentian-mb-curve-chapter,
.wentian-mb-curve-chapter.is-ready {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #6d5728;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 185, 89, .15), transparent 30%),
    radial-gradient(circle at 92% 44%, rgba(199, 127, 53, .12), transparent 34%),
    #080502;
  box-shadow: 0 18px 34px rgba(36, 22, 8, .2);
}

.wentian-mb-curve-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px 96px;
  min-height: 184px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b1408 0%, #0d0904 66%, #3f2d12 100%);
}

.wentian-mb-curve-hero::before {
  content: "卷5";
  position: absolute;
  left: 18px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid #806f36;
  border-radius: 50%;
  background: #282313;
  color: #f7e7ad;
  font-size: 22px;
  font-weight: 900;
}

.wentian-mb-curve-hero span,
.wentian-mb-curve-hero h3 {
  position: relative;
}

.wentian-mb-curve-hero span {
  display: block;
  color: #d9bd61;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-hero h3 {
  margin: 8px 0 0;
  color: #fff7df;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
}

.wentian-mb-curve-hero.is-pending {
  min-height: 172px;
  background: linear-gradient(135deg, #1a1207 0%, #0b0804 68%, #2b2110 100%);
}

.wentian-mb-curve-hero.is-pending::before {
  content: "AI";
  color: #1b1205;
  background: linear-gradient(145deg, #f4df82, #be8d36);
  box-shadow: 0 12px 28px rgba(221, 184, 83, .2);
}

.wentian-mb-curve-pending-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(226, 199, 103, .34);
  border-radius: 16px;
  background: rgba(255, 247, 224, .06);
}

.wentian-mb-curve-pending-card span {
  color: #d9bd61;
  font-size: 13px;
  font-weight: 900;
}

.wentian-mb-curve-pending-card h4 {
  margin: 0;
  color: #fff7df;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.wentian-mb-curve-pending-card p {
  margin: 0;
  color: #cabc96;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.wentian-mb-curve-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(226, 199, 103, .34);
  border-radius: 999px;
  background: #0e0a04;
}

.wentian-mb-curve-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #bca66c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-tabs button.is-active {
  background: #e6c95f;
  color: #181005;
}

.wentian-mb-curve-chart,
.wentian-mb-curve-verify {
  border: 1px solid rgba(199, 164, 75, .52);
  border-radius: 18px;
  background: rgba(13, 9, 3, .98);
}

.wentian-mb-curve-chart {
  padding: 14px 12px;
}

.wentian-mb-curve-chart header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 4px 8px;
}

.wentian-mb-curve-chart header b {
  color: #fff7df;
  font-size: 17px;
  font-weight: 900;
}

.wentian-mb-curve-chart header span {
  color: #d9bd61;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-chart svg {
  display: block;
  width: 100%;
  height: 218px;
}

.wentian-mb-curve-chart .grid {
  stroke: rgba(226, 199, 103, .14);
  stroke-width: 1;
}

.wentian-mb-curve-chart .area {
  fill: rgba(204, 130, 49, .18);
}

.wentian-mb-curve-chart .line {
  fill: none;
  stroke: #d79c3f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wentian-mb-curve-chart circle {
  fill: #7db278;
  stroke: #080502;
  stroke-width: 5;
}

.wentian-mb-curve-chart circle.current {
  fill: #f0d76f;
}

.wentian-mb-curve-chart circle.warn {
  fill: #d07447;
}

.wentian-mb-curve-chart .axis {
  fill: #8f8060;
  font-size: 14px;
  font-weight: 800;
}

.wentian-mb-curve-chart .label {
  fill: #fff6dc;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-nodes {
  display: grid;
  gap: 9px;
}

.wentian-mb-curve-nodes section {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(199, 164, 75, .42);
  border-radius: 15px;
  padding: 11px;
  background: rgba(25, 17, 6, .95);
}

.wentian-mb-curve-nodes b {
  color: #d9bd61;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-nodes strong {
  display: block;
  color: #fff7df;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
}

.wentian-mb-curve-nodes p {
  margin: 4px 0 0;
  color: #d7c7a0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.wentian-mb-curve-nodes em {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 199, 103, .35);
  border-radius: 50%;
  background: #241b09;
  color: #f1d878;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.wentian-mb-curve-list {
  display: grid;
  gap: 12px;
}

.wentian-mb-curve-list > section {
  border: 1px solid #d9bf7d;
  border-radius: 18px;
  padding: 16px 17px 15px;
  background: #f7efdd;
}

.wentian-mb-curve-list header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wentian-mb-curve-list header span {
  color: #b38a2f;
  font-size: 16px;
  font-weight: 900;
}

.wentian-mb-curve-list h4 {
  margin: 0;
  color: #21180d;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.16;
}

.wentian-mb-curve-list .wentian-mb-reading-lines p {
  color: #514430;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.72;
}

.wentian-mb-curve-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.wentian-mb-curve-tags i {
  border-radius: 999px;
  padding: 5px 10px;
  background: #ead9a8;
  color: #765817;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.wentian-mb-curve-verify {
  padding: 16px;
}

.wentian-mb-curve-verify h4 {
  margin: 0;
  color: #fff7df;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.16;
}

.wentian-mb-curve-verify > p {
  margin: 8px 0 0;
  color: #d2c39b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.wentian-mb-curve-verify-grid {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.wentian-mb-curve-verify-grid section {
  display: grid;
  row-gap: 12px;
  border: 1px solid rgba(199, 164, 75, .38);
  border-radius: 16px;
  padding: 14px;
  background: #181006;
}

.wentian-mb-curve-verify-grid section > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.wentian-mb-curve-verify-grid b {
  color: #e4c567;
  font-size: 16px;
  font-weight: 900;
}

.wentian-mb-curve-verify-grid span {
  color: #bca66c;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-verify-grid strong {
  display: block;
  color: #fff7df;
  font-size: 16px;
  font-weight: 900;
}

.wentian-mb-curve-verify-grid p {
  margin: 0;
  color: #d7c7a0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.82;
}

.wentian-mb-curve-verify-grid nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.wentian-mb-curve-verify-grid nav button {
  min-height: 44px;
  min-width: 0;
  border: 1px solid rgba(226, 199, 103, .38);
  border-radius: 999px;
  padding: 0 8px;
  background: transparent;
  color: #ecd281;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-verify-grid nav button.is-active {
  background: rgba(226, 199, 103, .16);
  color: #fff0b8;
}

.wentian-mb-curve-result {
  border-left: 3px solid #e6c95f;
  border-radius: 10px;
  padding: 12px;
  background: rgba(226, 199, 103, .08);
  color: #e8d49a !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
}

.wentian-mb-curve-result[data-tone="strong"] {
  border-left-color: #7db278;
}

.wentian-mb-curve-result[data-tone="caution"] {
  border-left-color: #d07447;
}

.wentian-mb-curve-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wentian-mb-curve-actions.is-single {
  grid-template-columns: 1fr;
}

.wentian-mb-curve-actions button {
  min-height: 44px;
  border: 1px solid rgba(226, 199, 103, .46);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(36, 27, 10, .95);
  color: #f0d982;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve-actions button:last-child {
  border-color: #e7c95e;
  background: #e7c95e;
  color: #1b1205;
}

.wentian-mb-advice-chapter,
.wentian-mb-advice-chapter.is-ready {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(199, 164, 75, .55);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 9%, rgba(205, 149, 61, .22), transparent 28%),
    linear-gradient(145deg, #110b04 0%, #080502 58%, #251806 100%);
  box-shadow: 0 18px 34px rgba(36, 22, 8, .22);
}

.wentian-mb-advice-hero {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  border-radius: 18px;
  padding: 22px 18px 20px 96px;
  background: linear-gradient(135deg, #241707 0%, #0b0703 68%, #4a2b0d 100%);
}

.wentian-mb-advice-hero::before {
  content: "卷6";
  position: absolute;
  left: 18px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid #806f36;
  border-radius: 50%;
  background: #2a2312;
  color: #f7e7ad;
  font-size: 22px;
  font-weight: 900;
}

.wentian-mb-advice-hero span,
.wentian-mb-advice-hero h3 {
  position: relative;
}

.wentian-mb-advice-hero span {
  display: block;
  color: #d9bd61;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-advice-hero h3 {
  margin: 8px 0 0;
  color: #fff7df;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
}

.wentian-mb-advice-focus {
  display: grid;
  gap: 12px;
}

.wentian-mb-advice-focus section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(199, 164, 75, .44);
  border-radius: 16px;
  padding: 14px;
  background: #f7efdd;
}

.wentian-mb-advice-focus b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1d1306;
  color: #e8cc70;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-advice-focus strong {
  display: block;
  margin-bottom: 8px;
  color: #24190d;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
}

.wentian-mb-advice-focus .wentian-mb-reading-lines {
  display: grid;
  gap: 7px;
}

.wentian-mb-advice-focus .wentian-mb-reading-lines p {
  margin: 0;
  color: #514430;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.72;
}

.wentian-mb-advice-plan {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(226, 199, 103, .42);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 10, 4, .98);
}

.wentian-mb-advice-plan header {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.wentian-mb-advice-plan header span {
  color: #d9bd61;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-advice-plan header b {
  color: #fff7df;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-mb-advice-plan div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 14px;
  padding: 12px;
  background: rgba(226, 199, 103, .08);
}

.wentian-mb-advice-plan strong {
  color: #f0d982;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-advice-plan p {
  margin: 0;
  color: #d7c7a0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.wentian-mb-advice-actions button {
  min-height: 44px;
  width: 100%;
  border: 1px solid #e7c95e;
  border-radius: 14px;
  background: #e7c95e;
  color: #1b1205;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

button.wentian-mb-rebatch-btn.wentian-mb-rebatch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1.5px solid #9d7a3f !important;
  border-radius: 999px !important;
  padding: 0 22px;
  background: linear-gradient(180deg, #fffefd 0%, #fff9ef 100%) !important;
  color: #6f471d !important;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 1px 0 rgba(125, 89, 40, .08), inset 0 0 0 1px rgba(255, 255, 255, .7);
}

button.wentian-mb-rebatch-btn.wentian-mb-rebatch-btn::before {
  content: "↻";
  display: inline-block;
  color: #6f471d;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.wentian-mb-chapter-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: start;
  margin-bottom: 12px;
}

.wentian-mb-chapter-head > span {
  color: #b88c33;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.wentian-mb-chapter-head h3 {
  margin: 0 0 6px;
  color: #251d18;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.wentian-mb-chapter-head p {
  margin: 0;
  color: #8f8173;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.wentian-mb-chapter-head button,
.wentian-mb-topic-grid button {
  min-height: 32px;
  height: auto;
  padding: 5px 6px;
  border: 1px solid #d8c7ad;
  border-radius: 9px;
  background: #fffaf3;
  color: #8f3d30;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.12;
  white-space: normal;
}

html[lang="en"] .wentian-mb-chapter-head {
  grid-template-columns: 32px minmax(0, 1fr) 82px;
  gap: 7px;
}

html[lang="en"] .wentian-mb-chapter-head > span {
  font-size: 10px;
  line-height: 1.2;
}

html[lang="en"] .wentian-mb-chapter-head h3 {
  font-size: 13px;
  line-height: 1.15;
}

html[lang="en"] .wentian-mb-chapter-head button,
html[lang="en"] .wentian-mb-topic-grid button {
  height: auto;
  min-height: 34px;
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
}

.wentian-mb-detail-list {
  display: grid;
  gap: 9px;
}

.wentian-mb-detail-list section,
.wentian-mb-advice section,
.wentian-mb-topic-grid section {
  border-radius: 10px;
  background: #f8f1e8;
}

.wentian-mb-detail-list section {
  padding: 11px 12px;
}

.wentian-mb-detail-list h4 {
  margin: 0 0 6px;
  color: #3c2b22;
  font-size: 13px;
  font-weight: 900;
}

.wentian-mb-detail-list p,
.wentian-mb-topic-grid p,
.wentian-mb-advice p,
.wentian-mb-curve p {
  margin: 0;
  color: #675b50;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.58;
}

.wentian-mb-topic-grid {
  display: grid;
  gap: 9px;
}

.wentian-mb-topic-grid section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

html[lang="en"] .wentian-mb-topic-grid section {
  grid-template-columns: 56px minmax(0, 1fr) 54px;
}

.wentian-mb-topic-grid span {
  color: #9f6d22;
  font-size: 13px;
  font-weight: 900;
}

.wentian-mb-topic-grid section.is-ready {
  background: #fff4dd;
}

.wentian-mb-curve {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8f1e8;
}

.wentian-mb-curve strong {
  display: block;
  margin-bottom: 5px;
  color: #2f221b;
  font-size: 14px;
  font-weight: 900;
}

.wentian-mb-curve svg {
  display: block;
  width: 100%;
  height: 108px;
}

.wentian-mb-curve .area {
  fill: rgba(194, 149, 60, .18);
}

.wentian-mb-curve .line {
  fill: none;
  stroke: #9f3d2e;
  stroke-width: 4;
  stroke-linecap: round;
}

.wentian-mb-curve circle {
  fill: #c2953c;
}

.wentian-mb-curve circle.warn {
  fill: #9f3d2e;
}

.wentian-mb-curve-kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.wentian-mb-curve-kv span {
  padding: 8px 4px;
  border-radius: 8px;
  background: #fffaf3;
  color: #7f6d5f;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.wentian-mb-advice {
  display: grid;
  gap: 9px;
}

.wentian-mb-advice section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 12px;
}

html[lang="en"] .wentian-mb-advice section {
  grid-template-columns: 56px minmax(0, 1fr);
}

.wentian-mb-advice b {
  color: #9f3d2e;
  font-size: 13px;
  font-weight: 900;
}

.wentian-pdf-export-host {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 794px;
  min-height: 1123px;
  pointer-events: none;
}

.wentian-pdf-report {
  width: 794px;
  min-height: 1123px;
  padding: 34px 38px;
  box-sizing: border-box;
  background: #fbf7ef;
  color: #2c211a;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.wentian-pdf-report *,
.wentian-pdf-report *::before,
.wentian-pdf-report *::after {
  box-sizing: border-box;
}

.wentian-pdf-head {
  padding-bottom: 20px;
  border-bottom: 2px solid #d8c4a2;
}

.wentian-pdf-head span {
  display: block;
  color: #a87928;
  font-size: 16px;
  font-weight: 900;
}

.wentian-pdf-head h1 {
  margin: 10px 0 8px;
  color: #201813;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
}

.wentian-pdf-head p {
  margin: 0;
  color: #786b60;
  font-size: 15px;
  font-weight: 700;
}

.wentian-pdf-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.wentian-pdf-meta div,
.wentian-pdf-basic-card,
.wentian-pdf-text-card {
  border: 1px solid #eadcc8;
  border-radius: 12px;
  background: #fffdf9;
}

.wentian-pdf-meta div {
  padding: 12px 14px;
}

.wentian-pdf-meta b,
.wentian-pdf-basic-card b,
.wentian-pdf-text-card strong {
  display: block;
  color: #9b6c25;
  font-size: 13px;
  font-weight: 900;
}

.wentian-pdf-meta span {
  display: block;
  margin-top: 5px;
  color: #30251d;
  font-size: 14px;
  font-weight: 800;
}

.wentian-pdf-section {
  margin-top: 24px;
  break-inside: avoid;
}

.wentian-pdf-section h2 {
  margin: 0 0 12px;
  color: #2c211a;
  font-size: 22px;
  font-weight: 900;
}

.wentian-pdf-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wentian-pdf-basic-card {
  min-height: 70px;
  padding: 12px 14px;
  break-inside: avoid;
}

.wentian-pdf-basic-card span {
  display: block;
  margin-top: 7px;
  color: #30251d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.wentian-pdf-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 132px;
  border: 2px solid #d2b98b;
  background: #ead8ba;
  gap: 1px;
}

.wentian-pdf-palace,
.wentian-pdf-center {
  background: #fffdf9;
}

.wentian-pdf-palace {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  break-inside: avoid;
}

.wentian-pdf-palace:nth-child(odd) {
  background: #fff7e7;
}

.wentian-pdf-palace header,
.wentian-pdf-palace footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.wentian-pdf-palace header strong,
.wentian-pdf-palace > b,
.wentian-pdf-palace footer strong {
  color: #201813;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.wentian-pdf-palace header span,
.wentian-pdf-palace footer span {
  color: #8b7a6a;
  font-size: 11px;
  font-weight: 800;
}

.wentian-pdf-palace p {
  margin: 0;
  color: #72665a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.wentian-pdf-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.wentian-pdf-center h3 {
  margin: 0 0 8px;
  color: #201813;
  font-size: 22px;
  font-weight: 900;
}

.wentian-pdf-center p {
  margin: 0 0 12px;
  color: #786b60;
  font-size: 13px;
  font-weight: 800;
}

.wentian-pdf-center dl {
  display: grid;
  gap: 6px;
  margin: 0;
  text-align: left;
}

.wentian-pdf-center dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.wentian-pdf-center dt {
  color: #8d7d6d;
  font-size: 12px;
  font-weight: 800;
}

.wentian-pdf-center dd {
  margin: 0;
  color: #30251d;
  font-size: 12px;
  font-weight: 900;
}

.wentian-pdf-chapters {
  display: grid;
  gap: 14px;
}

.wentian-pdf-chapter {
  padding: 16px;
  border: 1px solid #e5d4ba;
  border-radius: 14px;
  background: #fffdf9;
  break-inside: avoid;
}

.wentian-pdf-chapter header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wentian-pdf-chapter header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  border-radius: 999px;
  background: #f3e5ca;
  color: #9b6c25;
  font-size: 12px;
  font-weight: 900;
}

.wentian-pdf-chapter h3 {
  margin: 0;
  color: #201813;
  font-size: 18px;
  font-weight: 900;
}

.wentian-pdf-chapter-body {
  display: grid;
  gap: 9px;
}

.wentian-pdf-text-card {
  padding: 12px 14px;
  break-inside: avoid;
}

.wentian-pdf-text-card p {
  margin: 7px 0 0;
  white-space: pre-line;
  color: #5f554d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.wentian-refund-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 24, 18, .42);
  backdrop-filter: blur(10px);
}

.wentian-refund-sheet {
  position: relative;
  width: min(350px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px 20px;
  border: 1px solid #eadfce;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(59, 42, 24, .26);
}

.wentian-refund-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff7ec;
  color: #8f6a28;
  font-size: 18px;
  font-weight: 900;
}

.wentian-refund-kicker {
  color: #b88c33;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.wentian-refund-title {
  margin-top: 6px;
  color: #201813;
  font-size: 22px;
  font-weight: 900;
}

.wentian-refund-message {
  margin-top: 8px;
  color: #756d63;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.wentian-refund-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wentian-refund-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #756d63;
  font-size: 12px;
  font-weight: 900;
}

.wentian-refund-field input,
.wentian-refund-field select,
.wentian-refund-field textarea {
  width: 100%;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fffaf2;
  color: #201813;
  padding: 10px 11px;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.wentian-refund-field small {
  color: #9f9488;
  font-size: 11px;
  font-weight: 700;
}

.wentian-refund-error {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(169, 64, 50, .22);
  border-radius: 10px;
  background: rgba(169, 64, 50, .07);
  color: #a64032;
  font-size: 12px;
  font-weight: 800;
}

.wentian-refund-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #b74e39, #983323);
  color: #fffaf3;
  font-weight: 900;
}

.wentian-refund-submit:disabled {
  opacity: .58;
}

body.wentian-refund-open {
  overflow: hidden;
}

@media (min-width: 881px) {
  body {
    background: #fffaf2;
  }

  .app-shell {
    align-items: flex-start;
    padding: 24px 0;
    background: linear-gradient(180deg, #fffaf2 0%, #fff8ee 42%, #f8f0e4 100%);
  }

  .app-main {
    max-width: none;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .view {
    justify-content: center;
    max-width: none;
    overflow: visible;
  }

  .phone-wrap {
    width: var(--wentian-phone-layout-width, 390px);
    max-width: 390px;
    justify-content: center;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .figma-phone {
    border-radius: 0;
    transform-origin: top center;
  }

  .figma-phone.wide-bg {
    overflow: visible;
  }
}

@media (max-width: 880px) {
  .app-shell { display: flex; }
  .app-rail { display: none; }
  .app-main { padding: 0; }
  .topbar { display: none; }
  .topbar .small { display: none; }
  .grid.two,
  .grid.three,
  .plans { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────
   六爻占卜页面 - 设计升级样式 (新颜色体系)
   ────────────────────────────────────────────────── */

:root {
  --liuyao-bg: #F9F8F5;
  --liuyao-surface: #FFFFFF;
  --liuyao-dark: #1C1917;
  --liuyao-gold: #9E7D42;
  --liuyao-goldSoft: #C4A96C;
  --liuyao-goldBg: #F3EFE7;
  --liuyao-goldBorder: #E0D5C4;
  --liuyao-text: #1C1917;
  --liuyao-text2: #8C8880;
  --liuyao-text3: #B8B5AF;
  --liuyao-green: #4D8A5C;
  --liuyao-greenBg: #EDF4EF;
  --liuyao-border: rgba(26, 24, 22, 0.06);
}

/* 页面容器与背景 */
.liuyao-panel {
  background: var(--liuyao-surface);
  color: var(--liuyao-text);
}

/* 流程步骤条 */
.liuyao-flow-hero {
  background: linear-gradient(135deg, var(--liuyao-goldBg) 0%, var(--liuyao-surface) 100%);
  border: 1px solid var(--liuyao-goldBorder);
  color: var(--liuyao-text);
}

.liuyao-flow-hero h3,
.liuyao-flow-hero p {
  color: var(--liuyao-text);
}

.liuyao-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  user-select: none;
}

.liuyao-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.liuyao-flow-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--liuyao-text3);
  background: transparent;
  color: var(--liuyao-text3);
  transition: all 0.3s ease;
}

.liuyao-flow-step.is-active .liuyao-flow-step-dot {
  background: var(--liuyao-gold);
  color: white;
  border-color: var(--liuyao-gold);
}

.liuyao-flow-step.is-done .liuyao-flow-step-dot {
  background: var(--liuyao-gold);
  color: white;
  border-color: var(--liuyao-gold);
}

.liuyao-flow-step-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--liuyao-text3);
  transition: all 0.3s ease;
}

.liuyao-flow-step.is-active .liuyao-flow-step-label {
  font-weight: 600;
  color: var(--liuyao-gold);
}

.liuyao-flow-step.is-done .liuyao-flow-step-label {
  color: var(--liuyao-text2);
}

.liuyao-flow-line {
  width: 48px;
  height: 1.5px;
  background: var(--liuyao-border);
  transition: background 0.4s ease;
}

.liuyao-flow-line.is-done {
  background: var(--liuyao-gold);
}

.liuyao-flow-hint {
  text-align: center;
  font-size: 13px;
  color: var(--liuyao-text2);
  margin-top: 14px;
  letter-spacing: 0.3px;
}

/* 问题卡片 */
.liuyao-question-card {
  background: var(--liuyao-surface);
  border: 1px solid var(--liuyao-border);
  border-radius: 16px;
  padding: 16px;
}

.liuyao-question-card label {
  color: var(--liuyao-text);
}

.liuyao-question-card textarea {
  background: var(--liuyao-bg);
  border: 1px solid var(--liuyao-border);
  color: var(--liuyao-text);
}

.liuyao-question-card textarea::placeholder {
  color: var(--liuyao-text3);
}

/* 提交按钮 */
.liuyao-question-submit {
  background: var(--liuyao-gold);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  height: 54px;
  transition: all 0.3s ease;
}

.liuyao-question-submit:hover:not(:disabled) {
  background: var(--liuyao-goldSoft);
  transform: translateY(-1px);
}

.liuyao-question-submit.is-approved {
  background: var(--liuyao-green);
}

.liuyao-question-submit.is-rejected {
  background: #E07856;
}

.liuyao-question-submit:disabled {
  opacity: 0.5;
}

/* 投币区域 */
.liuyao-coin-panel {
  background: var(--liuyao-surface);
  border: 1px solid var(--liuyao-border);
  border-radius: 16px;
  padding: 16px;
}

.liuyao-coin-stage {
  background: var(--liuyao-bg);
  border: 1px solid var(--liuyao-border);
  border-radius: 12px;
  position: relative;
}

/* 手动卡片 */
.liuyao-manual-card {
  background: var(--liuyao-surface);
  border: 1px solid var(--liuyao-border);
  border-radius: 16px;
  padding: 16px;
}

.liuyao-manual-card label {
  color: var(--liuyao-text);
}

.liuyao-manual-coin-pick button {
  background: var(--liuyao-bg);
  border: 1px solid var(--liuyao-border);
  color: var(--liuyao-text2);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.liuyao-manual-coin-pick button:hover {
  border-color: var(--liuyao-gold);
  color: var(--liuyao-gold);
}

.liuyao-manual-coin-pick button.is-active {
  background: var(--liuyao-goldBg);
  border-color: var(--liuyao-gold);
  color: var(--liuyao-gold);
  font-weight: 600;
}

/* 进度卡片 */
.liuyao-progress-card {
  background: var(--liuyao-surface);
  border: 1px solid var(--liuyao-border);
  border-radius: 16px;
  padding: 16px;
}

.liuyao-progress-head strong {
  color: var(--liuyao-text);
}

.liuyao-progress-head span {
  color: var(--liuyao-text2);
}

.liuyao-line-row {
  color: var(--liuyao-text);
}

/* 卦象卡片 */
.mbp-liuyao-result-hero {
  background: linear-gradient(135deg, var(--liuyao-goldBg) 0%, var(--liuyao-surface) 100%);
  border: 1px solid var(--liuyao-goldBorder);
  color: var(--liuyao-text);
}

.mbp-liuyao-hex-card {
  background: var(--liuyao-surface);
  border: 1px solid var(--liuyao-border);
  color: var(--liuyao-text);
}

.mbp-liuyao-minihex {
  color: var(--liuyao-gold);
}

/* 模态框样式 */
.liuyao-caster-modal {
  background: var(--liuyao-surface);
  border-radius: 20px;
}

.liuyao-caster-head {
  background: var(--liuyao-bg);
  border-bottom: 1px solid var(--liuyao-border);
  color: var(--liuyao-text);
}

.liuyao-caster-head button {
  color: var(--liuyao-text3);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.liuyao-caster-head button:hover {
  color: var(--liuyao-text);
}

.liuyao-caster-body {
  background: var(--liuyao-surface);
}

/* 底部导航（TabBar） */
.liuyao-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  background: var(--liuyao-surface);
  border-top: 1px solid var(--liuyao-border);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.liuyao-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 6px;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10px;
}

.liuyao-tabbar-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--liuyao-text3);
  transition: stroke 0.2s ease;
}

.liuyao-tabbar-item.is-active svg {
  stroke: var(--liuyao-gold);
}

.liuyao-tabbar-item-label {
  color: var(--liuyao-text3);
  font-weight: 400;
  transition: all 0.2s ease;
}

.liuyao-tabbar-item.is-active .liuyao-tabbar-item-label {
  color: var(--liuyao-gold);
  font-weight: 600;
}

.liuyao-tabbar-item-indicator {
  width: 14px;
  height: 2px;
  background: var(--liuyao-gold);
  border-radius: 1px;
  display: none;
}

.liuyao-tabbar-item.is-active .liuyao-tabbar-item-indicator {
  display: block;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .liuyao-panel {
    padding-bottom: 80px;
  }
}

/* 六爻三段式升级：问事审题 -> 起卦 -> 解卦 */
.liuyao-phone-screen {
  position: relative;
  min-height: 844px;
  overflow: hidden;
  background: linear-gradient(180deg, #eee6d2 0%, #e7ddc8 62%, #f6f0e6 100%);
  color: #241912;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.liuyao-phone-screen *,
.liuyao-phone-screen *::before,
.liuyao-phone-screen *::after {
  box-sizing: border-box;
}

.liuyao-app-header {
  position: absolute;
  z-index: 35;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: rgba(232, 222, 200, .96);
  border-bottom: 1px solid rgba(110, 88, 62, .12);
}

.liuyao-app-title {
  position: absolute;
  top: 48px;
  left: 104px;
  right: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.liuyao-app-title strong {
  overflow: hidden;
  color: #241912;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liuyao-app-title span {
  display: inline-grid;
  place-items: center;
  min-width: 45px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid #dec990;
  border-radius: 999px;
  background: #f6eed7;
  color: #b38335;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.liuyao-header-reset {
  position: absolute;
  right: 18px;
  top: 44px;
  height: 32px;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  color: #a79b8d;
  font-size: 15px;
  font-weight: 800;
}

.liuyao-stage {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 116px 20px 116px;
}

.liuyao-stage-ask {
  gap: 18px;
  min-height: 844px;
}

.liuyao-ask-title {
  margin-top: 12px;
}

.liuyao-ask-title h2 {
  margin: 0;
  color: #241912;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.liuyao-ask-title p {
  margin: 12px 0 0;
  color: #856f5f;
  font-size: 15px;
  font-weight: 900;
}

.liuyao-big-question {
  display: grid;
  min-height: 418px;
  padding: 20px 18px 18px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 254, 250, .94);
  box-shadow: 0 18px 35px rgba(75, 53, 25, .08);
}

.liuyao-big-question textarea {
  width: 100%;
  min-height: 346px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #241912;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.72;
}

.liuyao-big-question textarea::placeholder {
  color: #b7ab9d;
}

.liuyao-big-question span {
  justify-self: end;
  color: #ab9d8c;
  font-size: 13px;
  font-weight: 900;
}

.liuyao-start-button {
  height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #7d3329, #5e2119);
  color: #fffaf3;
  font-size: 17px;
  box-shadow: 0 14px 26px rgba(101, 42, 31, .18);
}

.liuyao-start-button:disabled {
  background: #d9cec0;
  color: #ad9f91;
  opacity: 1;
  box-shadow: none;
}

.liuyao-ask-review {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.liuyao-ask-review .liuyao-question-status {
  margin: 0;
}

.liuyao-flow-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(218, 197, 159, .7);
  border-radius: 16px;
  background: rgba(255, 250, 240, .72);
}

.liuyao-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #a39586;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.liuyao-flow-step-dot {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #d9c49f;
  border-radius: 999px;
  background: #fffaf0;
  color: #b28744;
  font-size: 11px;
}

.liuyao-flow-step.is-active,
.liuyao-flow-step.is-done {
  color: #6e241c;
}

.liuyao-flow-step.is-active .liuyao-flow-step-dot,
.liuyao-flow-step.is-done .liuyao-flow-step-dot {
  border-color: #c99d43;
  background: #c99d43;
  color: #fffaf3;
}

.liuyao-flow-line {
  display: block;
  height: 1px;
  background: #dfd0ba;
}

.liuyao-flow-line.is-done {
  background: #c99d43;
}

.liuyao-question-pill {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(218, 197, 159, .72);
  border-radius: 16px;
  background: rgba(255, 253, 248, .82);
  color: #5d4735;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.liuyao-question-pill i {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #c99d43;
}

.liuyao-stage-cast {
  gap: 12px;
}

.liuyao-stage-cast .liuyao-mode-card {
  padding: 14px;
  border: 1px solid #e6d5bb;
  border-radius: 18px;
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 12px 25px rgba(75, 53, 25, .07);
}

.liuyao-mode-card button:disabled {
  opacity: .62;
}

.liuyao-coin-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e6d5bb;
  border-radius: 20px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 14px 30px rgba(75, 53, 25, .08);
}

.liuyao-cast-note {
  margin: 0 0 10px;
  color: #8d7e6e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.liuyao-result-screen {
  background: linear-gradient(180deg, #eee6d2 0%, #e6dcc6 42%, #f5efe4 100%);
}

.liuyao-stage-result {
  gap: 14px;
}

.liuyao-result-screen > .liuyao-empty-card {
  position: relative;
  z-index: 2;
  margin: 132px 24px 0;
  padding: 28px 20px;
}

.liuyao-result-hero {
  display: grid;
  justify-items: center;
  min-height: 292px;
  padding: 30px 24px 28px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, #5d1b14 0%, #7f2e22 50%, #a65b31 100%);
  color: #fffaf3;
  box-shadow: 0 18px 34px rgba(77, 31, 20, .24);
  text-align: center;
}

.liuyao-result-hero .liuyao-mini-hex {
  width: 92px;
  gap: 9px;
  padding: 0;
}

.liuyao-result-hero .liuyao-mini-hex i {
  height: 8px;
  gap: 18px;
}

.liuyao-result-hero .liuyao-mini-hex b {
  position: static;
  inset: auto;
  max-width: none;
  padding: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  text-align: initial;
}

.liuyao-result-hero .liuyao-mini-hex i.is-moving b {
  background: #d4ac4a;
}

.liuyao-result-hero div {
  margin-top: 20px;
}

.liuyao-result-hero span,
.liuyao-result-hero strong,
.liuyao-result-hero em {
  display: block;
}

.liuyao-result-hero span {
  color: rgba(255, 255, 255, .44);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.liuyao-result-hero strong {
  margin-top: 8px;
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
}

.liuyao-result-hero em {
  margin-top: 9px;
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-result-hero p {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
  font-weight: 900;
}

.liuyao-result-hero p b {
  position: static;
  inset: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  text-align: inherit;
}

.liuyao-result-hero p i {
  width: 4px;
  height: 4px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
}

.liuyao-result-transform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 12px 25px rgba(75, 53, 25, .08);
}

.liuyao-result-transform div {
  min-width: 0;
}

.liuyao-result-transform div:last-child {
  text-align: right;
}

.liuyao-result-transform span {
  display: block;
  color: #a99988;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-result-transform strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #241912;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liuyao-result-arrow {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #bd8e31;
}

.liuyao-result-arrow b {
  font-size: 20px;
  line-height: 1;
}

.liuyao-result-arrow em {
  max-width: 92px;
  padding: 3px 8px;
  border: 1px solid #e0ca94;
  border-radius: 999px;
  background: #fff2cf;
  color: #b28230;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.liuyao-question-result-card {
  margin: 0;
  padding: 15px 17px;
}

.liuyao-master-card {
  gap: 14px;
  margin-top: 0;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 16px 31px rgba(75, 53, 25, .1);
}

.liuyao-master-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.liuyao-master-head i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4b050, #9a6e20);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-master-head strong {
  display: block;
  color: #241912;
  font-size: 16px;
  font-weight: 900;
}

.liuyao-master-head span {
  display: block;
  margin-top: 3px;
  color: #b3a899;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-ai-reading {
  margin: 0;
  color: #2b2019;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.95;
  white-space: pre-line;
}

.liuyao-master-card button {
  height: 44px;
  border-radius: 15px;
}

/* liuyao cast compact refresh */
.liuyao-stage-cast {
  gap: 10px;
}

.liuyao-stage-cast .liuyao-flow-steps {
  padding: 9px 12px;
  border-radius: 14px;
}

.liuyao-question-pill {
  padding: 11px 14px;
  border-radius: 15px;
  background: rgba(255, 252, 246, .96);
}

.liuyao-stage-cast .liuyao-mode-card,
.liuyao-coin-summary,
.liuyao-manual-card,
.liuyao-progress-card,
.liuyao-result-preview {
  border: 1px solid #e7d9c1;
  border-radius: 18px;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 10px 24px rgba(75, 53, 25, .07);
}

.liuyao-stage-cast .liuyao-mode-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.liuyao-stage-cast .liuyao-mode-card .liuyao-section-title {
  margin: 0;
}

.liuyao-stage-cast .liuyao-mode-card .liuyao-section-title label {
  color: #241912;
  font-size: 14px;
}

.liuyao-stage-cast .liuyao-mode-card .liuyao-section-title em {
  color: #9d825f;
  font-size: 12px;
}

.liuyao-stage-cast .liuyao-mode-card > div:not(.liuyao-section-title) {
  padding: 4px;
  border-radius: 999px;
  background: #efe4cf;
}

.liuyao-stage-cast .liuyao-mode-card button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a866c;
  font-size: 14px;
}

.liuyao-stage-cast .liuyao-mode-card button.is-active {
  background: #fffdf9;
  color: #34241a;
  box-shadow: 0 2px 8px rgba(88, 62, 34, .14);
}

.liuyao-coin-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
}

.liuyao-coin-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.liuyao-coin-summary-head > div {
  min-width: 0;
}

.liuyao-coin-summary-head span,
.liuyao-coin-summary-head strong,
.liuyao-coin-summary-head em {
  display: block;
}

.liuyao-coin-summary-head span {
  color: #9b7c51;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-coin-summary-head strong {
  margin-top: 4px;
  color: #241912;
  font-size: 20px;
  font-weight: 900;
}

.liuyao-coin-summary-head em {
  margin-top: 4px;
  color: #8f7b66;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
}

.liuyao-coin-summary-head b,
.liuyao-manual-head em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e7d19c;
  border-radius: 999px;
  background: #fff6de;
  color: #b07d26;
  font-size: 14px;
  font-weight: 900;
}

.liuyao-coin-summary-shell,
.liuyao-manual-current,
.liuyao-manual-done {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #eadabf;
  border-radius: 16px;
  background: #fdf7ec;
}

.liuyao-coin-summary-copy span,
.liuyao-coin-summary-copy strong,
.liuyao-coin-summary-copy em {
  display: block;
}

.liuyao-coin-summary-copy span {
  color: #aa8b61;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-coin-summary-copy strong {
  margin-top: 4px;
  color: #241912;
  font-size: 18px;
  font-weight: 900;
}

.liuyao-coin-summary-copy em,
.liuyao-manual-copy,
.liuyao-manual-status,
.liuyao-manual-done span {
  color: #8f7b66;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.6;
}

.liuyao-coin-summary-chips,
.liuyao-manual-history > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.liuyao-coin-summary-chips i,
.liuyao-manual-history i {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2e7d2;
  color: #7b674d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-coin-summary button,
.liuyao-manual-current-actions .liuyao-manual-clear,
.liuyao-manual-current-actions .liuyao-manual-confirm,
.liuyao-result-preview button {
  min-width: 0;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.liuyao-coin-summary button,
.liuyao-manual-current-actions .liuyao-manual-confirm,
.liuyao-result-preview button {
  border: 0;
  background: #eadcc6;
  color: #9e8b71;
}

.liuyao-coin-summary:not(.is-disabled):not(.is-complete) button,
.liuyao-manual-current-actions .liuyao-manual-confirm:not(:disabled),
.liuyao-result-preview button {
  background: linear-gradient(180deg, #f0e2ca 0%, #e6d4b6 100%);
  color: #6e5036;
}

.liuyao-manual-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.liuyao-manual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.liuyao-manual-head span,
.liuyao-manual-head strong {
  display: block;
}

.liuyao-manual-head span {
  color: #9b7c51;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-manual-head strong {
  margin-top: 4px;
  color: #241912;
  font-size: 20px;
  font-weight: 900;
}

.liuyao-manual-card > p {
  margin: 0;
}

.liuyao-manual-current-head {
  align-items: center;
  margin: 0;
}

.liuyao-manual-current-head strong {
  color: #241912;
  font-size: 17px;
}

.liuyao-manual-current-head span {
  margin-top: 3px;
  color: #aa9071;
  font-size: 12px;
}

.liuyao-manual-current-head em {
  color: #b07d26;
  font-size: 13px;
}

.liuyao-manual-coins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.liuyao-manual-coin-pick {
  gap: 10px;
  padding: 10px 8px;
  border-radius: 14px;
  background: #fffaf2;
}

.liuyao-manual-coin-pick i {
  color: #9b886f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.liuyao-manual-coin-pick span {
  gap: 6px;
}

.liuyao-manual-current .liuyao-manual-coin-pick button {
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
}

.liuyao-manual-current-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.liuyao-manual-current-actions .liuyao-manual-clear {
  border: 1px solid #e1cfb1;
  background: #f8f0e2;
  color: #816845;
}

.liuyao-manual-done strong {
  color: #241912;
  font-size: 18px;
}

.liuyao-manual-history {
  gap: 10px;
  margin: 0;
}

.liuyao-manual-history > span {
  color: #9b7c51;
  font-size: 12px;
  font-weight: 900;
}

.liuyao-progress-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.liuyao-progress-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.liuyao-progress-head strong {
  color: #241912;
  font-size: 16px;
}

.liuyao-progress-head span {
  color: #9d907f;
  font-size: 12px;
}

.liuyao-progress-head em {
  color: #a87a27;
  font-size: 16px;
}

.liuyao-progress-result {
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border-radius: 15px;
  background: #fdf7ec;
}

.liuyao-progress-result strong {
  font-size: 16px;
}

.liuyao-result-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.liuyao-result-preview strong {
  color: #241912;
  font-size: 17px;
}

.liuyao-result-preview p {
  margin: 0;
  color: #8f7b66;
  font-size: 12px;
  line-height: 1.6;
}
