:root {
  --ink: #f8f0dc;
  --ink-strong: #fff7df;
  --muted: #b9aa88;
  --dim: #8b7d66;
  --line: rgba(222, 188, 108, 0.22);
  --line-strong: rgba(222, 188, 108, 0.5);
  --surface: rgba(36, 31, 25, 0.78);
  --surface-strong: rgba(49, 42, 33, 0.92);
  --night: #101513;
  --night-warm: #211913;
  --gold: #d7ae5e;
  --gold-soft: #f3dca3;
  --cinnabar: #c34d45;
  --jade: #5ca597;
  --blue: #6f8fb5;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(92, 165, 151, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(195, 77, 69, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 13, 14, 0.94), rgba(31, 23, 17, 0.98)),
    var(--night);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(215, 174, 94, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(215, 174, 94, 0.05) 1px, transparent 1px);
  background-size: 94px 94px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
  opacity: 0.24;
  content: "";
}

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

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
dialog button:focus-visible {
  outline: 2px solid rgba(243, 220, 163, 0.78);
  outline-offset: 3px;
}

button:active,
.primary-action:active,
.secondary-action:active,
.ghost-action:active {
  transform: translateY(1px);
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background: var(--night-warm);
}

.ambient-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: blur(2px) saturate(0.72) brightness(0.42);
  transform: scale(1.02);
}

.ambient-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 15, 14, 0.78), rgba(23, 19, 16, 0.6) 42%, rgba(13, 15, 14, 0.94)),
    linear-gradient(90deg, rgba(9, 12, 12, 0.82), transparent 34%, transparent 66%, rgba(9, 12, 12, 0.88));
  content: "";
}

.fx-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.fx-layer span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(243, 220, 163, 0.58);
  box-shadow: 0 0 18px rgba(243, 220, 163, 0.56);
  opacity: 0;
  animation: moteRise 13s linear infinite;
}

.fx-layer span:nth-child(1) { left: 14%; animation-delay: 0s; animation-duration: 12s; }
.fx-layer span:nth-child(2) { left: 28%; animation-delay: 4s; animation-duration: 16s; }
.fx-layer span:nth-child(3) { left: 44%; animation-delay: 2s; animation-duration: 14s; }
.fx-layer span:nth-child(4) { left: 62%; animation-delay: 6s; animation-duration: 18s; }
.fx-layer span:nth-child(5) { left: 78%; animation-delay: 1s; animation-duration: 15s; }
.fx-layer span:nth-child(6) { left: 91%; animation-delay: 7s; animation-duration: 17s; }

@keyframes moteRise {
  0% { transform: translateY(105vh) scale(0.6); opacity: 0; }
  12% { opacity: 0.44; }
  72% { opacity: 0.26; }
  100% { transform: translateY(-12vh) scale(1.35); opacity: 0; }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid rgba(215, 174, 94, 0.16);
  padding: 0 24px;
  background: rgba(18, 17, 15, 0.84);
  backdrop-filter: blur(16px);
}

.site-nav::after {
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 220, 163, 0.42), transparent);
  content: "";
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-seal,
.hero-symbol,
.master-seal,
.service-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.08);
}

.brand-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(215, 174, 94, 0.22);
}

.nav-links {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-soft);
}

.record-button,
.status-pill,
.level-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--gold-soft);
  background: rgba(26, 23, 20, 0.76);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
}

.record-button:hover,
.status-pill.paid,
.level-badge {
  border-color: rgba(92, 165, 151, 0.4);
  color: #f4fff9;
  background: rgba(33, 104, 91, 0.78);
}

.status-pill.warning {
  border-color: rgba(215, 174, 94, 0.44);
  color: #fff5cf;
  background: rgba(126, 91, 25, 0.76);
}

.status-pill.danger {
  border-color: rgba(212, 96, 82, 0.48);
  color: #fff1ef;
  background: rgba(119, 42, 35, 0.78);
}

.status-pill.pending {
  border-color: rgba(131, 153, 177, 0.42);
  color: #edf6ff;
  background: rgba(49, 66, 82, 0.78);
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 112px;
}

.app-shell,
.panel,
.service-card,
.form-panel,
.result-panel,
.product-card,
.reading-item,
.stat-card,
.choice-card,
.master-card,
.mini-card,
.insight-strip article,
.process-steps article,
.value-panel,
.empty-state {
  min-width: 0;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell p,
.app-shell span,
.app-shell strong,
.app-shell small,
.app-shell li {
  overflow-wrap: anywhere;
}

.app-shell.route-enter {
  animation: routeFade 220ms ease-out both;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 44px;
  color: var(--dim);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-footer a:hover {
  border-color: rgba(243, 220, 163, 0.46);
  color: var(--gold-soft);
}

@keyframes routeFade {
  from { transform: translateY(6px); opacity: 0.82; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-section {
  display: grid;
  min-height: 235px;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 26px 0 18px;
}

.hero-section.home-hero {
  min-height: calc(100vh - 142px);
  padding: 0;
}

.hero-symbol {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 28px;
  color: var(--gold-soft);
  font-size: 2.4rem;
  box-shadow: 0 0 38px rgba(215, 174, 94, 0.32);
  animation: symbolGlow 3.8s ease-in-out infinite;
}

@keyframes symbolGlow {
  0%, 100% { box-shadow: 0 0 28px rgba(215, 174, 94, 0.26); transform: translateY(0); }
  50% { box-shadow: 0 0 54px rgba(215, 174, 94, 0.42); transform: translateY(-2px); }
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  font-weight: 900;
  line-height: 0.98;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.hero-section:not(.home-hero) h1 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  margin-bottom: 12px;
}

.hero-section:not(.home-hero) .hero-symbol {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  font-size: 1.9rem;
}

.hero-section:not(.home-hero) .hero-copy {
  margin-bottom: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink-strong);
  font-size: 1.58rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink-strong);
  font-size: 1.1rem;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 0 auto 30px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  justify-content: center;
  margin-bottom: 24px;
}

.primary-action,
.ghost-action,
.secondary-action,
.tab-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 20px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 800;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-action {
  border: 0;
  color: #fff8e5;
  background: linear-gradient(135deg, var(--cinnabar), #a83d35);
  box-shadow: 0 15px 32px rgba(195, 77, 69, 0.28);
  position: relative;
  overflow: hidden;
}

.primary-action:hover {
  box-shadow: 0 18px 38px rgba(195, 77, 69, 0.34);
}

.primary-action::after {
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  transition: transform 500ms ease;
}

.primary-action:hover::after {
  transform: translateX(120%);
}

.ghost-action,
.secondary-action,
.tab-button {
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  background: rgba(30, 26, 21, 0.62);
}

.ghost-action:hover,
.secondary-action:hover,
.tab-button:hover {
  border-color: rgba(243, 220, 163, 0.66);
  background: rgba(53, 42, 30, 0.76);
}

.tab-button.active,
.secondary-action.active {
  border-color: rgba(92, 165, 151, 0.62);
  background: rgba(37, 91, 84, 0.42);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.action-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.trust-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  justify-content: center;
  color: var(--dim);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.9rem;
}

.trust-row span,
.tag-row span {
  border: 1px solid rgba(215, 174, 94, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}

.section-block {
  margin-top: 18px;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.insight-strip article,
.process-steps article,
.value-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 25, 21, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.insight-strip article {
  min-height: 118px;
  padding: 15px;
}

.insight-strip span {
  color: var(--dim);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.insight-strip strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.insight-strip p {
  margin: 0;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.process-steps article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 15px;
}

.process-steps b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(215, 174, 94, 0.28);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
}

.process-steps strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-strong);
}

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
}

.value-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(92, 165, 151, 0.08), rgba(215, 174, 94, 0.07)),
    rgba(28, 25, 21, 0.66);
}

.value-list {
  display: grid;
  gap: 10px;
}

.value-list p {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.value-list span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(92, 165, 151, 0.5);
}

.empty-state {
  display: grid;
  min-height: 220px;
  align-content: center;
  padding: 24px;
  text-align: left;
}

.empty-state h2 {
  margin-bottom: 10px;
}

.empty-state > p:not(.step-label) {
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.75;
}

.preview-matrix,
.dream-orbits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preview-matrix span,
.dream-orbits span {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(215, 174, 94, 0.18);
  border-radius: 8px;
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.mini-hexagram {
  display: grid;
  gap: 7px;
  width: min(220px, 100%);
}

.mini-hexagram span {
  height: 12px;
  border-radius: 999px;
  background: rgba(243, 220, 163, 0.86);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.service-card,
.form-panel,
.result-panel,
.product-card,
.reading-item,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.panel:hover,
.form-panel:focus-within,
.result-panel:focus-within,
.product-card:hover,
.stat-card:hover {
  border-color: rgba(215, 174, 94, 0.32);
}

.panel,
.form-panel,
.result-panel {
  padding: 24px;
}

.panel-heading,
.section-heading,
.cashier-heading,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading,
.section-heading {
  margin-bottom: 18px;
}

.service-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.service-card::after,
.choice-card::after,
.master-card::after {
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(215, 174, 94, 0.14), transparent 68%);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 174, 94, 0.54);
  background: rgba(62, 48, 31, 0.7);
  box-shadow: 0 0 28px rgba(215, 174, 94, 0.16);
}

.service-card:hover::after,
.choice-card:hover::after,
.choice-card.selected::after,
.master-card:hover::after,
.master-card.selected::after {
  opacity: 1;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 0;
}

.service-icon svg,
.action-icon svg,
.brand-seal svg,
.hero-symbol svg {
  width: 56%;
  height: 56%;
  stroke: currentColor;
}

.service-card p,
.panel p,
.result-panel p,
.product-card p,
.reading-item p,
.stat-card p {
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff8e5;
  background: rgba(195, 77, 69, 0.82);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.full,
.full-action {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(215, 174, 94, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink-strong);
  background: rgba(18, 17, 15, 0.74);
  outline: none;
  appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(185, 170, 136, 0.66);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: rgba(20, 18, 15, 0.9);
  box-shadow: 0 0 0 4px rgba(215, 174, 94, 0.12);
}

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

.choice-card,
.master-card,
.mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 174, 94, 0.18);
  border-radius: 8px;
  padding: 15px;
  color: var(--muted);
  background: rgba(23, 21, 18, 0.62);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-card:hover,
.choice-card.selected,
.master-card:hover,
.master-card.selected,
.mini-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 174, 94, 0.62);
  background: rgba(62, 48, 31, 0.72);
  box-shadow: 0 0 28px rgba(215, 174, 94, 0.16);
}

.master-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 132px;
}

.master-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
}

.master-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.master-copy strong,
.choice-card strong,
.mini-card strong {
  color: var(--ink-strong);
}

.master-copy small,
.master-copy span,
.choice-card span,
.mini-card span {
  color: var(--dim);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}

.master-copy em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.lot-stage {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  border: 1px dashed rgba(215, 174, 94, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(10, 13, 14, 0.32);
}

.lot-visual {
  position: relative;
  height: 90px;
}

.lot-visual span {
  position: absolute;
  bottom: 8px;
  left: 44px;
  width: 8px;
  height: 78px;
  border-radius: 6px;
  background: linear-gradient(#f2d493, #9f6a2c);
  transform-origin: bottom center;
  box-shadow: 0 0 16px rgba(215, 174, 94, 0.16);
}

.lot-visual span:nth-child(1) { transform: rotate(-30deg); }
.lot-visual span:nth-child(2) { transform: rotate(-14deg); }
.lot-visual span:nth-child(3) { transform: rotate(0deg); }
.lot-visual span:nth-child(4) { transform: rotate(14deg); }
.lot-visual span:nth-child(5) { transform: rotate(30deg); }

.lot-visual::after {
  position: absolute;
  bottom: 0;
  left: 21px;
  width: 54px;
  height: 40px;
  border: 1px solid rgba(215, 174, 94, 0.2);
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(145deg, #5a3b24, #151817);
  content: "";
}

.muted,
.section-heading p,
.tiny {
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.muted {
  margin-bottom: 4px;
  font-weight: 800;
}

.tiny {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.65;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

blockquote {
  margin: 20px 0 18px;
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 16px;
  color: var(--ink-strong);
  font-size: clamp(1.28rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.55;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.keywords span {
  border: 1px solid rgba(215, 174, 94, 0.38);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.09);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-card {
  display: grid;
  min-height: 218px;
  align-content: space-between;
  padding: 18px;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price {
  margin: 12px 0;
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

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

.reading-item {
  padding: 16px;
}

.reading-item.full {
  grid-column: 1 / -1;
}

.report-shell {
  padding: 0;
  overflow: hidden;
}

.result-panel.report-shell {
  padding: 0;
}

.report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid rgba(215, 174, 94, 0.16);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(215, 174, 94, 0.11), rgba(92, 165, 151, 0.07)),
    rgba(10, 13, 14, 0.12);
}

.report-head h2 {
  margin-bottom: 10px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-meta span {
  border: 1px solid rgba(215, 174, 94, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
}

.report-highlights,
.report-focus,
.report-flow,
.report-action,
.report-note,
.report-footer {
  margin: 0;
  padding: 20px 22px;
}

.report-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(6, 8, 8, 0.12);
}

.report-highlights article {
  border: 1px solid rgba(215, 174, 94, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(24, 23, 20, 0.58);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.report-highlights article:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 174, 94, 0.34);
  background: rgba(42, 35, 26, 0.72);
}

.report-highlights span,
.report-focus span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
}

.report-highlights p,
.report-focus p,
.report-flow p,
.report-action p,
.report-footer p {
  margin-bottom: 0;
}

.report-focus {
  display: grid;
  gap: 14px;
  background: rgba(11, 13, 13, 0.18);
}

.report-focus section {
  border-left: 3px solid rgba(215, 174, 94, 0.52);
  padding-left: 13px;
  min-width: 0;
}

.report-flow {
  display: grid;
  gap: 0;
}

.report-flow section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  padding: 16px 0;
  min-width: 0;
}

.report-flow section:first-child {
  border-top: 0;
  padding-top: 0;
}

.report-flow section:last-child {
  padding-bottom: 0;
}

.report-flow b,
.report-action b {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
}

.report-flow b {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(215, 174, 94, 0.26);
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.08);
}

.report-action {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(92, 165, 151, 0.08);
}

.report-action p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.report-action b {
  width: 24px;
  height: 24px;
  color: #f4fff9;
  background: rgba(92, 165, 151, 0.64);
}

.report-note {
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(126, 91, 25, 0.12);
}

.report-footer {
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(0, 0, 0, 0.12);
}

.lot-reading-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(215, 174, 94, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 174, 94, 0.12), rgba(94, 67, 36, 0.08)),
    rgba(18, 17, 15, 0.62);
}

.lot-reading-card h3 {
  margin: 10px 0 0;
  font-size: 1.18rem;
}

.lot-reading-card blockquote {
  margin: 14px 0;
}

.result-summary {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(215, 174, 94, 0.08);
  color: var(--ink);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.step-list b {
  grid-row: span 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 174, 94, 0.16);
  color: var(--gold-soft);
}

.step-list strong {
  color: var(--ink-strong);
}

.step-list p {
  margin: 0;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.lamp-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lamp {
  min-height: 112px;
  border: 1px solid rgba(215, 174, 94, 0.2);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(243, 220, 163, 0.24), transparent 28%),
    rgba(18, 17, 15, 0.58);
}

.lamp strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
}

.almanac-date {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(215, 174, 94, 0.24);
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.58);
  text-align: center;
}

.almanac-date .day {
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.hexagram {
  display: grid;
  gap: 8px;
  width: min(260px, 100%);
  margin: 0 auto 18px;
}

.yao {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  height: 18px;
}

.yao.broken {
  grid-template-columns: 1fr 1fr;
}

.yao span {
  border-radius: 999px;
  background: var(--gold-soft);
}

.meditation-stage {
  display: grid;
  place-items: center;
  min-height: 320px;
  text-align: center;
}

.breath-ring {
  display: grid;
  position: relative;
  width: min(290px, 100%);
  min-height: 290px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(215, 174, 94, 0.22);
  border-radius: 50%;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(92, 165, 151, 0.14), transparent 48%),
    rgba(10, 13, 14, 0.18);
}

.breath-ring::before,
.breath-ring::after {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(215, 174, 94, 0.14);
  border-radius: 50%;
  content: "";
  animation: breathe 5.6s ease-in-out infinite;
}

.breath-ring::after {
  inset: 28px;
  animation-delay: 1.4s;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.46; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

.timer {
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 900;
}

.action-panel {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 180px;
  text-align: left;
}

.action-panel .service-icon {
  margin-bottom: 0;
}

.lot-shake {
  animation: lotShake 520ms cubic-bezier(.36,.07,.19,.97);
}

@keyframes lotShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

.upload-zone {
  display: grid;
  min-height: 168px;
  place-items: center;
  gap: 14px;
  border: 1px dashed rgba(215, 174, 94, 0.34);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  background: rgba(10, 13, 14, 0.28);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.upload-zone:hover,
.upload-zone:focus-within {
  border-color: rgba(243, 220, 163, 0.58);
  background: rgba(27, 24, 20, 0.58);
  box-shadow: inset 0 0 0 1px rgba(243, 220, 163, 0.06);
}

.upload-preview {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(215, 174, 94, 0.3);
  border-radius: 8px;
  background: rgba(8, 9, 9, 0.48);
}

.precheck-list {
  display: grid;
  gap: 12px;
}

.precheck-list div {
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  padding-top: 12px;
}

.precheck-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.precheck-list strong {
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.precheck-list p {
  margin: 6px 0 0;
}

.palm-report {
  padding: 0;
  overflow: hidden;
}

.result-panel.palm-report {
  padding: 0;
}

.palm-report-head {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border-bottom: 1px solid rgba(215, 174, 94, 0.16);
  padding: 20px;
  background: linear-gradient(135deg, rgba(215, 174, 94, 0.12), rgba(92, 165, 151, 0.08));
}

.palm-report-head.no-photo {
  grid-template-columns: 1fr;
}

.palm-report-photo {
  width: 100%;
  height: 100%;
  min-height: 168px;
  max-height: 240px;
  object-fit: cover;
  border-right: 1px solid rgba(215, 174, 94, 0.2);
  border-radius: 8px;
  background: rgba(8, 9, 9, 0.48);
}

.palm-report-title {
  display: grid;
  align-content: center;
  min-width: 0;
}

.palm-report-title .row-between {
  align-items: flex-start;
}

.palm-report-title h2 {
  margin: 4px 0 10px;
  font-size: 1.48rem;
  line-height: 1.28;
}

.palm-focus,
.palm-flow,
.palm-highlights,
.palm-action-plan,
.palm-avoid,
.palm-closing {
  margin: 0;
  padding: 20px;
}

.palm-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(6, 8, 8, 0.12);
}

.palm-highlights article {
  min-height: 112px;
  border: 1px solid rgba(215, 174, 94, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(24, 23, 20, 0.58);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.palm-highlights article:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 174, 94, 0.34);
  background: rgba(42, 35, 26, 0.72);
}

.palm-highlights span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.palm-highlights p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.palm-focus {
  display: grid;
  gap: 14px;
  background: rgba(11, 13, 13, 0.18);
}

.palm-focus section {
  border-left: 3px solid rgba(215, 174, 94, 0.52);
  padding-left: 13px;
  min-width: 0;
}

.palm-focus span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.palm-focus p,
.palm-flow p,
.palm-closing p {
  margin-bottom: 0;
}

.palm-flow {
  display: grid;
  gap: 0;
}

.palm-flow section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  padding: 16px 0;
  min-width: 0;
}

.palm-flow section:first-child {
  border-top: 0;
  padding-top: 0;
}

.palm-flow section:last-child {
  padding-bottom: 0;
}

.palm-flow b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(215, 174, 94, 0.26);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.82rem;
}

.palm-action-plan {
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(92, 165, 151, 0.08);
}

.palm-action-plan h3 {
  margin-bottom: 12px;
}

.palm-action-plan > div {
  display: grid;
  gap: 10px;
}

.palm-action-plan p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: var(--ink);
}

.palm-action-plan b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #f4fff9;
  background: rgba(92, 165, 151, 0.64);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
}

.palm-avoid {
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(126, 91, 25, 0.12);
}

.palm-avoid h3 {
  margin-bottom: 8px;
}

.palm-closing {
  border-top: 1px solid rgba(215, 174, 94, 0.13);
  background: rgba(0, 0, 0, 0.12);
}

.cashier-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.cashier-dialog::backdrop {
  background: rgba(9, 10, 10, 0.74);
  backdrop-filter: blur(3px);
}

.cashier-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(239, 209, 139, 0.1), transparent 32%),
    rgba(31, 24, 18, 0.97);
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: calc(100vh - 28px);
}

.cashier-dialog[open] .cashier-card {
  animation: dialogRise 180ms ease-out both;
}

@keyframes dialogRise {
  from { transform: translateY(10px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(18, 17, 15, 0.74);
  font-size: 1.5rem;
  line-height: 1;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  border-color: rgba(243, 220, 163, 0.54);
  color: var(--gold-soft);
  background: rgba(53, 42, 30, 0.78);
}

.qr-box {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  margin: 16px 0;
  border: 1px solid rgba(215, 174, 94, 0.2);
  border-radius: 8px;
  padding: 18px;
  color: var(--gold-soft);
  background:
    linear-gradient(90deg, rgba(215, 174, 94, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(215, 174, 94, 0.08) 1px, transparent 1px),
    rgba(10, 13, 14, 0.72);
  background-size: 18px 18px;
  text-align: center;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.qr-box::before,
.qr-box::after {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(239, 209, 139, 0.42);
  content: "";
}

.qr-box::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.qr-box::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.cashier-amount-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid rgba(214, 170, 92, 0.18);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(201, 70, 66, 0.08), rgba(214, 170, 92, 0.07)),
    rgba(18, 13, 10, 0.28);
}

.cashier-amount-card span {
  color: #a99776;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.cashier-amount-card strong {
  color: #f4dca4;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.payment-method {
  display: grid;
  min-width: 0;
  min-height: 58px;
  gap: 4px;
  align-content: center;
  border: 1px solid rgba(214, 170, 92, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(18, 13, 10, 0.28);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.payment-method:hover {
  border-color: rgba(243, 220, 163, 0.4);
  background: rgba(45, 35, 25, 0.52);
}

.payment-method.selected {
  border-color: rgba(92, 165, 151, 0.5);
  background: rgba(35, 91, 81, 0.34);
}

.payment-method:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.payment-method span,
.payment-method small {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.payment-method span {
  color: var(--ink-strong);
  font-weight: 900;
}

.payment-method small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cashier-info-grid {
  display: grid;
  gap: 8px;
}

.cashier-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  border: 1px solid rgba(214, 170, 92, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(18, 13, 10, 0.24);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.cashier-meta strong {
  color: var(--ink-strong);
  min-width: 0;
  overflow-wrap: anywhere;
}

.cashier-note {
  margin: 12px 0;
  border-left: 3px solid rgba(239, 209, 139, 0.45);
  padding: 9px 11px;
  background: rgba(214, 170, 92, 0.06);
}

.cashier-card .primary-action {
  width: 100%;
}

.cashier-actions {
  display: grid;
  gap: 10px;
}

.cashier-actions .primary-action,
.cashier-actions .secondary-action {
  width: 100%;
}

.records-list {
  display: grid;
  max-height: min(520px, 70vh);
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.record-item,
.share-box {
  border: 1px solid rgba(215, 174, 94, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 17, 15, 0.62);
  overflow-wrap: anywhere;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.record-item {
  position: relative;
  overflow: hidden;
}

.record-item::before {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eac879;
  box-shadow: 0 0 14px rgba(234, 200, 121, 0.42);
  content: "";
}

.record-item:hover,
.share-box:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 174, 94, 0.36);
  background: rgba(39, 33, 25, 0.74);
}

.record-item .row-between {
  align-items: flex-start;
  gap: 12px;
}

.record-item .row-between span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 900;
}

.share-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  overflow-wrap: anywhere;
}

.empty-record {
  min-height: 118px;
  align-content: center;
}

.share-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(214, 170, 92, 0.18);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 86% 12%, rgba(239, 209, 139, 0.13), transparent 32%),
    rgba(18, 13, 10, 0.34);
}

.share-code {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(214, 170, 92, 0.26);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.share-code span {
  color: #a99776;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.share-code strong {
  color: #f3d895;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

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

.share-perks span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(214, 170, 92, 0.16);
  border-radius: 8px;
  color: #d7bd83;
  background: rgba(18, 13, 10, 0.26);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.share-card p {
  margin: 0;
  color: #c6b38d;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.94rem;
  line-height: 1.7;
}

.float-earn {
  position: fixed;
  right: 18px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(60, 47, 30, 0.84);
  box-shadow: 0 0 28px rgba(215, 174, 94, 0.2);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.float-earn:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 220, 163, 0.62);
  background: rgba(92, 64, 34, 0.9);
  box-shadow: 0 0 34px rgba(215, 174, 94, 0.28);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(360px, calc(100vw - 44px));
  transform: translateY(24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--gold-soft);
  background: rgba(15, 16, 15, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.mobile-tabbar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.mobile-tabbar a {
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.mobile-tabbar a:hover,
.mobile-tabbar a.active {
  color: var(--gold-soft);
  background: rgba(215, 174, 94, 0.08);
}

@media (max-width: 1040px) {
  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-footer {
    width: calc(100% - 28px);
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }

  .nav-links {
    display: none;
  }

  .app-shell {
    width: calc(100% - 24px);
    max-width: 680px;
    padding-top: 42px;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .hero-section {
    min-height: 220px;
  }

  .hero-section.home-hero {
    min-height: calc(100vh - 112px);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .choice-grid,
  .insight-strip,
  .process-steps,
  .report-highlights,
  .reading-grid,
  .lamp-wall {
    grid-template-columns: 1fr;
  }

  .value-panel {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    display: grid;
  }

  .toast {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }

  .float-earn {
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .palm-report-head {
    grid-template-columns: 1fr;
  }

  .palm-highlights {
    grid-template-columns: 1fr;
  }

  .palm-report-photo {
    max-height: 280px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    min-height: 62px;
    padding: 0 14px;
  }

  .brand-mark {
    font-size: 1.08rem;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
  }

  .record-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .cashier-card {
    padding: 18px;
  }

  .cashier-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .cashier-heading h2 {
    font-size: 1.28rem;
  }

  .cashier-meta {
    display: grid;
    gap: 4px;
  }

  .qr-box {
    min-height: 148px;
    margin: 16px 0;
    padding: 14px;
  }

  .mobile-tabbar {
    right: 8px;
    left: 8px;
  }

  .mobile-tabbar a {
    min-height: 48px;
    font-size: 0.78rem;
  }

  .float-earn {
    width: 50px;
    height: 50px;
    right: 10px;
  }

  .hero-symbol {
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    font-size: 2rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .panel,
  .form-panel,
  .result-panel {
    padding: 18px;
  }

  .result-panel.report-shell {
    padding: 0;
  }

  .report-head {
    grid-template-columns: 1fr;
  }

  .report-head,
  .report-highlights,
  .report-focus,
  .report-flow,
  .report-action,
  .report-note,
  .report-footer {
    padding: 16px;
  }

  .report-flow section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .report-flow b {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .insight-strip article,
  .process-steps article {
    min-height: auto;
  }

  .preview-matrix,
  .dream-orbits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-panel.palm-report {
    padding: 0;
  }

  .palm-report-head,
  .palm-focus,
  .palm-flow,
  .palm-highlights,
  .palm-action-plan,
  .palm-avoid,
  .palm-closing {
    padding: 16px;
  }

  .palm-report-title .row-between {
    gap: 10px;
  }

  .palm-report-title h2 {
    font-size: 1.28rem;
  }

  .palm-flow section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .palm-flow b {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .master-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 126px;
  }

  .master-seal {
    width: 42px;
    height: 42px;
  }

  .lot-stage {
    grid-template-columns: 1fr;
  }

  .breath-ring {
    min-height: 250px;
  }

  blockquote {
    font-size: 1.22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Comfort visual pass: calmer, app-like, and closer to the reference mood. */
:root {
  --ink: #ead9bb;
  --ink-strong: #fff0c9;
  --muted: #bba882;
  --dim: #8f7c5d;
  --line: rgba(206, 157, 75, 0.2);
  --line-strong: rgba(214, 170, 92, 0.42);
  --surface: rgba(33, 24, 18, 0.74);
  --surface-strong: rgba(45, 32, 23, 0.9);
  --night: #120d0a;
  --night-warm: #21160f;
  --gold: #c99a4d;
  --gold-soft: #efd18b;
  --cinnabar: #c94742;
  --jade: #6fa696;
  --blue: #778fa8;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(32, 22, 15, 0.98), rgba(18, 13, 10, 0.98) 45%, rgba(22, 15, 11, 0.98)),
    var(--night);
}

body::before {
  background:
    linear-gradient(90deg, rgba(219, 174, 93, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(219, 174, 93, 0.035) 1px, transparent 1px);
  background-size: 118px 118px;
  opacity: 0.18;
}

.ambient-backdrop img {
  opacity: 0.16;
  filter: saturate(0.72) brightness(0.48);
  transform: scale(1.01);
}

.ambient-backdrop::after {
  background:
    linear-gradient(180deg, rgba(28, 19, 13, 0.9), rgba(20, 14, 10, 0.54) 42%, rgba(16, 11, 8, 0.92)),
    linear-gradient(90deg, rgba(14, 10, 8, 0.72), transparent 36%, transparent 64%, rgba(14, 10, 8, 0.78));
}

.fx-layer span {
  background: rgba(239, 209, 139, 0.34);
  box-shadow: 0 0 12px rgba(239, 209, 139, 0.3);
}

.site-nav {
  min-height: 64px;
  border-bottom-color: rgba(214, 170, 92, 0.16);
  background: rgba(23, 16, 11, 0.84);
}

.site-nav::after {
  opacity: 0.55;
}

.brand-mark {
  gap: 9px;
  color: var(--gold-soft);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-seal {
  width: 34px;
  height: 34px;
  background: rgba(214, 170, 92, 0.06);
  box-shadow: 0 0 18px rgba(214, 170, 92, 0.16);
}

.app-shell {
  padding-top: 58px;
}

.hero-section {
  min-height: 220px;
  padding: 22px 0 16px;
}

.hero-section.home-hero {
  min-height: calc(100svh - 134px);
  padding-bottom: 28px;
}

.hero-symbol {
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border-color: rgba(214, 170, 92, 0.5);
  background: rgba(29, 20, 14, 0.54);
  box-shadow: 0 0 24px rgba(214, 170, 92, 0.22), 0 0 0 9px rgba(214, 170, 92, 0.035);
}

h1 {
  margin-bottom: 16px;
  color: #f5daa0;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(2.9rem, 7.4vw, 5.3rem);
  font-weight: 700;
  line-height: 1.06;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}

.hero-section:not(.home-hero) h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
}

.eyebrow,
.step-label {
  color: rgba(225, 180, 94, 0.92);
  font-size: 0.76rem;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 26px;
  color: #c9b894;
  font-size: 1.02rem;
  line-height: 1.85;
}

.primary-action,
.ghost-action,
.secondary-action,
.tab-button {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  background: #c94642;
  box-shadow: 0 12px 26px rgba(201, 70, 66, 0.25);
}

.primary-action::after {
  display: none;
}

.primary-action:hover {
  background: #d04d49;
  box-shadow: 0 14px 30px rgba(201, 70, 66, 0.3);
}

.ghost-action,
.secondary-action,
.tab-button {
  border-color: rgba(214, 170, 92, 0.32);
  background: rgba(18, 13, 10, 0.42);
}

.ghost-action:hover,
.secondary-action:hover,
.tab-button:hover {
  border-color: rgba(239, 209, 139, 0.52);
  background: rgba(48, 34, 23, 0.62);
}

.trust-row span,
.tag-row span,
.keywords span,
.report-meta span {
  border-color: rgba(214, 170, 92, 0.18);
  background: rgba(18, 13, 10, 0.26);
}

.panel,
.service-card,
.form-panel,
.result-panel,
.product-card,
.reading-item,
.stat-card,
.insight-strip article,
.process-steps article,
.value-panel,
.empty-state,
.choice-card,
.master-card,
.mini-card,
.record-item,
.share-box {
  border-color: rgba(214, 170, 92, 0.17);
  background: rgba(32, 23, 17, 0.68);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 244, 214, 0.035);
}

.service-card,
.product-card {
  min-height: 198px;
}

.service-card:hover,
.choice-card:hover,
.choice-card.selected,
.master-card:hover,
.master-card.selected,
.mini-card:hover {
  border-color: rgba(214, 170, 92, 0.46);
  background: rgba(47, 33, 23, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.service-card::after,
.choice-card::after,
.master-card::after {
  opacity: 0;
}

.service-icon,
.master-seal {
  border-color: rgba(214, 170, 92, 0.34);
  background: rgba(214, 170, 92, 0.07);
}

.badge {
  background: rgba(201, 70, 66, 0.82);
}

input,
select,
textarea {
  border-color: rgba(214, 170, 92, 0.22);
  background: rgba(18, 13, 10, 0.56);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(239, 209, 139, 0.74);
  background: rgba(24, 17, 12, 0.82);
  box-shadow: 0 0 0 3px rgba(214, 170, 92, 0.1);
}

.float-earn {
  width: auto;
  min-width: 58px;
  height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(42, 30, 20, 0.86);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.82rem;
}

.mobile-tabbar {
  right: 0;
  bottom: 0;
  left: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(20, 14, 10, 0.96);
}

.mobile-tabbar a {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  color: #b9a786;
  font-size: 0.74rem;
}

.mobile-tabbar a .tab-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: currentColor;
  line-height: 1;
}

.mobile-tabbar a .tab-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.mobile-tabbar a:hover,
.mobile-tabbar a.active {
  color: #f1cf83;
  background: rgba(214, 170, 92, 0.07);
}

@media (max-width: 900px) {
  .site-nav {
    min-height: 61px;
  }

  .app-shell {
    padding-top: 30px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .hero-section.home-hero {
    min-height: calc(100svh - 112px);
  }

  .hero-actions {
    width: 100%;
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions .primary-action,
  .hero-actions .ghost-action {
    width: 100%;
  }

  .float-earn {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding: 0 18px;
  }

  .nav-actions {
    display: none;
  }

  .brand-mark {
    font-size: 1.08rem;
  }

  .app-shell {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .hero-section {
    min-height: 210px;
  }

  .hero-section.home-hero {
    min-height: calc(100svh - 116px);
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .hero-symbol {
    width: 74px;
    height: 74px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 2.82rem;
  }

  .hero-section:not(.home-hero) h1 {
    font-size: 2.38rem;
  }

  .hero-copy {
    max-width: 306px;
    margin-bottom: 24px;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .trust-row {
    max-width: 306px;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }

  .trust-row span {
    padding: 6px 11px;
  }

  .panel,
  .form-panel,
  .result-panel {
    padding: 16px;
  }

  .process-steps article,
  .insight-strip article {
    padding: 14px;
  }

  .mobile-tabbar a {
    min-height: 60px;
    font-size: 0.72rem;
  }
}

/* Feature page polish: make forms and result areas feel less like admin panels. */
.hero-section:not(.home-hero) {
  min-height: 198px;
  padding-top: 14px;
}

.hero-section:not(.home-hero) .hero-copy {
  max-width: 560px;
  color: #c7b590;
}

.process-steps {
  gap: 10px;
}

.process-steps article {
  min-height: 88px;
  border-color: rgba(214, 170, 92, 0.14);
  background: rgba(26, 18, 13, 0.45);
  box-shadow: none;
}

.process-steps b {
  border-color: rgba(214, 170, 92, 0.24);
  color: #e9c77a;
  background: rgba(214, 170, 92, 0.06);
}

.process-steps strong {
  color: #f2d99b;
}

.process-steps p {
  color: #ae9d7d;
}

.grid-2.section-block {
  align-items: start;
}

.form-panel,
.result-panel,
.panel {
  position: relative;
}

.form-panel::before,
.result-panel:not(.report-shell):not(.palm-report)::before,
.panel::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 209, 139, 0.28), transparent);
  content: "";
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2,
.section-heading h2 {
  font-size: 1.34rem;
}

.panel-heading p,
.section-heading p {
  margin-bottom: 0;
}

.form-grid {
  gap: 14px;
}

label,
.field {
  gap: 7px;
}

label > span,
.field > span {
  color: #d7bd83;
  font-size: 0.84rem;
}

input,
select,
textarea {
  min-height: 48px;
}

textarea {
  min-height: 108px;
}

.choice-grid {
  gap: 10px;
}

.choice-card,
.master-card,
.mini-card {
  border-color: rgba(214, 170, 92, 0.16);
  background: rgba(18, 13, 10, 0.36);
}

.choice-card.selected,
.master-card.selected {
  border-color: rgba(239, 209, 139, 0.56);
  background:
    linear-gradient(135deg, rgba(214, 170, 92, 0.12), rgba(201, 70, 66, 0.05)),
    rgba(35, 24, 16, 0.72);
}

.choice-card.selected::before,
.master-card.selected::before {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eac879;
  box-shadow: 0 0 14px rgba(234, 200, 121, 0.46);
  content: "";
}

.master-card {
  min-height: 118px;
}

.master-copy span {
  color: #a79676;
}

.status-pill,
.level-badge,
.record-button {
  background: rgba(18, 13, 10, 0.46);
}

.result-panel:not(.report-shell):not(.palm-report) {
  min-height: 220px;
}

.empty-state {
  min-height: 188px;
  justify-items: start;
}

.empty-state h2 {
  color: #f0d696;
}

.result-summary {
  border-left-color: rgba(239, 209, 139, 0.7);
  background: rgba(214, 170, 92, 0.07);
}

.lamp-wall {
  gap: 10px;
}

.lamp {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  border-color: rgba(214, 170, 92, 0.16);
  background:
    radial-gradient(circle at 50% 10%, rgba(239, 209, 139, 0.23), transparent 24%),
    rgba(19, 14, 10, 0.44);
}

.lamp::before {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 18px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px 999px 80% 80%;
  background: linear-gradient(#f6d995, rgba(201, 112, 55, 0.18));
  filter: blur(0.2px);
  opacity: 0.42;
  content: "";
}

.lamp strong,
.lamp p {
  position: relative;
}

.almanac-date {
  background:
    radial-gradient(circle at 50% 38%, rgba(239, 209, 139, 0.11), transparent 42%),
    rgba(30, 21, 14, 0.62);
}

.almanac-date .day {
  color: #f3d895;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", serif;
  font-weight: 700;
}

.lot-stage,
.upload-zone {
  border-color: rgba(214, 170, 92, 0.22);
  background: rgba(18, 13, 10, 0.32);
}

.lot-visual span {
  background: linear-gradient(#f1ce83, #9b6731);
}

.lot-visual::after {
  border-color: rgba(214, 170, 92, 0.2);
  background: linear-gradient(145deg, #4b3221, #17100c);
}

.upload-zone {
  min-height: 190px;
}

.upload-zone h3 {
  color: #f0d696;
}

.upload-preview {
  width: min(260px, 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.precheck-list div {
  border-top-color: rgba(214, 170, 92, 0.12);
}

.keywords span,
.tag-row span {
  color: #e8c77d;
}

.product-card {
  gap: 16px;
}

.price {
  color: #f0d696;
  font-size: 1.72rem;
}

blockquote {
  border-left-color: rgba(239, 209, 139, 0.72);
  color: #f4dca4;
}

@media (max-width: 900px) {
  .hero-section:not(.home-hero) {
    min-height: 182px;
  }

  .process-steps {
    gap: 8px;
  }

  .process-steps article {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: auto;
    padding: 12px;
  }

  .process-steps b {
    width: 30px;
    height: 30px;
  }

  .panel-heading,
  .section-heading {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hero-section:not(.home-hero) {
    min-height: 168px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-section:not(.home-hero) .hero-symbol {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .hero-section:not(.home-hero) .hero-copy {
    max-width: 314px;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .process-steps article {
    padding: 11px;
  }

  .panel-heading h2,
  .section-heading h2 {
    font-size: 1.22rem;
  }

  .result-panel:not(.report-shell):not(.palm-report) {
    min-height: auto;
  }

  .master-card {
    min-height: 112px;
  }

  .choice-card,
  .master-card,
  .mini-card {
    padding: 14px;
  }

  .upload-zone {
    min-height: 170px;
    padding: 18px;
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .process-steps article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    justify-items: center;
    min-height: 74px;
    padding: 10px 8px;
    text-align: center;
  }

  .process-steps b {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .process-steps strong {
    margin-bottom: 0;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .process-steps p {
    display: none;
  }

  [data-master-picker] {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  [data-master-picker] .master-card {
    flex: 0 0 248px;
    min-height: 118px;
    scroll-snap-align: start;
  }

  [data-master-picker]::-webkit-scrollbar {
    display: none;
  }
}

/* Home and monetization polish. */
.home-feature-section {
  margin-top: 28px;
}

.feature-grid {
  gap: 12px;
}

.feature-card {
  min-height: 156px;
  align-content: space-between;
  padding: 16px;
}

.feature-card-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.feature-card .service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}

.feature-card h3 {
  margin-bottom: 6px;
}

.feature-card p {
  margin-bottom: 0;
  line-height: 1.62;
}

.feature-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #d7bd83;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.feature-card-foot > span:last-child {
  color: #eecf8c;
}

.principle-grid {
  gap: 12px;
}

.principle-card {
  min-height: 166px;
  overflow: hidden;
}

.principle-card::after,
.growth-panel::after {
  position: absolute;
  right: -44px;
  bottom: -48px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(214, 170, 92, 0.11);
  border-radius: 50%;
  content: "";
}

.growth-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(201, 70, 66, 0.08), rgba(214, 170, 92, 0.06)),
    rgba(32, 23, 17, 0.7);
}

.account-actions {
  gap: 12px;
}

.account-panel {
  overflow: hidden;
  min-height: 190px;
  background:
    linear-gradient(145deg, rgba(214, 170, 92, 0.08), rgba(18, 13, 10, 0.12)),
    rgba(30, 21, 15, 0.68);
}

.account-panel .ghost-action {
  width: fit-content;
  min-height: 38px;
  padding: 0 15px;
}

.account-panel::after {
  position: absolute;
  right: -38px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 209, 139, 0.12), transparent 64%);
  content: "";
}

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(214, 170, 92, 0.08), rgba(18, 13, 10, 0.12)),
    rgba(30, 21, 15, 0.68);
}

.product-card::after {
  position: absolute;
  right: -36px;
  top: -42px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 209, 139, 0.14), transparent 64%);
  content: "";
}

.product-top,
.product-card p,
.product-tags,
.product-action,
.product-price-row {
  position: relative;
  z-index: 1;
}

.product-top h3 {
  margin-bottom: 0;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 10px 0;
}

.product-price-row span {
  color: #a99776;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.product-tags span {
  border: 1px solid rgba(214, 170, 92, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  color: #cdb788;
  background: rgba(18, 13, 10, 0.28);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-action {
  width: 100%;
}

.report-shell {
  background:
    linear-gradient(180deg, rgba(35, 25, 17, 0.78), rgba(24, 17, 12, 0.74)),
    var(--surface);
}

.report-head {
  background:
    radial-gradient(circle at 88% 16%, rgba(239, 209, 139, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(214, 170, 92, 0.12), rgba(201, 70, 66, 0.05)),
    rgba(18, 13, 10, 0.1);
}

.report-head-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.report-seal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(239, 209, 139, 0.38);
  border-radius: 50%;
  color: #f3d895;
  background: rgba(18, 13, 10, 0.28);
  box-shadow: 0 0 24px rgba(214, 170, 92, 0.12);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.report-highlights {
  background: rgba(18, 13, 10, 0.16);
}

.report-highlights article {
  background: rgba(18, 13, 10, 0.36);
}

.report-focus {
  background: rgba(32, 23, 17, 0.44);
}

.report-focus section {
  border-left-color: rgba(239, 209, 139, 0.48);
}

.report-action {
  background:
    linear-gradient(135deg, rgba(111, 166, 150, 0.11), rgba(214, 170, 92, 0.04)),
    rgba(20, 14, 10, 0.2);
}

.report-note {
  background: rgba(126, 91, 25, 0.1);
}

.report-footer {
  background: rgba(18, 13, 10, 0.2);
}

.lottery-report {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(35, 25, 17, 0.78), rgba(24, 17, 12, 0.74)),
    var(--surface);
}

.result-panel.lottery-report {
  padding: 0;
}

.lottery-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid rgba(214, 170, 92, 0.16);
  padding: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(239, 209, 139, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(214, 170, 92, 0.12), rgba(201, 70, 66, 0.05)),
    rgba(18, 13, 10, 0.1);
}

.lottery-report-head h2 {
  margin-bottom: 10px;
  color: #f3d895;
}

.lottery-report .lot-reading-card {
  margin: 0;
  border-width: 0 0 1px;
  border-color: rgba(214, 170, 92, 0.13);
  border-radius: 0;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 10%, rgba(239, 209, 139, 0.08), transparent 42%),
    rgba(18, 13, 10, 0.18);
}

.lottery-report .lot-reading-card h3 {
  color: #f4dca4;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.lottery-report blockquote {
  margin: 16px 0;
  border-left-width: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(214, 170, 92, 0.07);
  color: #f5dda5;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(1.28rem, 3vw, 1.75rem);
  text-align: center;
}

.lottery-reading-grid {
  margin-top: 0;
  padding: 20px;
}

.lottery-report .reading-item {
  border-color: rgba(214, 170, 92, 0.15);
  background: rgba(18, 13, 10, 0.28);
}

.lottery-report .reading-item h3 {
  color: #efd18b;
}

.lottery-closing {
  margin: 0;
  border-top: 1px solid rgba(214, 170, 92, 0.13);
  padding: 20px;
  background: rgba(18, 13, 10, 0.2);
}

.lottery-closing h3 {
  color: #efd18b;
}

.palm-report {
  background:
    linear-gradient(180deg, rgba(35, 25, 17, 0.78), rgba(24, 17, 12, 0.74)),
    var(--surface);
}

.palm-report-head {
  background:
    radial-gradient(circle at 12% 16%, rgba(239, 209, 139, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(214, 170, 92, 0.12), rgba(111, 166, 150, 0.06)),
    rgba(18, 13, 10, 0.1);
}

.palm-report-title .row-between {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.palm-report-title h2 {
  color: #f3d895;
}

.palm-highlights {
  background: rgba(18, 13, 10, 0.16);
}

.palm-highlights article,
.palm-focus section {
  background: rgba(18, 13, 10, 0.28);
}

.palm-focus {
  background: rgba(32, 23, 17, 0.44);
}

.palm-action-plan {
  background:
    linear-gradient(135deg, rgba(111, 166, 150, 0.11), rgba(214, 170, 92, 0.04)),
    rgba(20, 14, 10, 0.2);
}

.palm-avoid {
  background: rgba(126, 91, 25, 0.1);
}

.palm-closing {
  background: rgba(18, 13, 10, 0.2);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 146px;
  }

  .feature-card-main {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
  }

  .feature-card .service-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 560px) {
  .home-feature-section {
    margin-top: 20px;
  }

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

  .feature-card {
    min-height: auto;
    padding: 14px;
  }

  .feature-card-foot {
    margin-top: 12px;
  }

  .principle-card {
    min-height: auto;
  }

  .product-card {
    min-height: auto;
    padding: 16px;
  }

  .account-panel {
    min-height: 160px;
  }

  .product-price-row {
    margin: 8px 0;
  }

  .report-head {
    gap: 14px;
  }

  .report-head-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .report-seal {
    width: 42px;
    height: 42px;
    font-size: 1.16rem;
  }

  .lottery-report-head {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .lottery-report .lot-reading-card,
  .lottery-reading-grid,
  .lottery-closing {
    padding: 16px;
  }

  .palm-report-title .row-between {
    grid-template-columns: 1fr;
  }
}

/* Formal product polish: remove template feel and add a quieter ritual layer. */
.site-nav {
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.brand-seal,
.hero-symbol {
  position: relative;
  overflow: visible;
}

.hero-symbol::before,
.hero-symbol::after {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(239, 209, 139, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-symbol::after {
  inset: -18px;
  border-color: rgba(239, 209, 139, 0.1);
}

.hero-section {
  position: relative;
  isolation: isolate;
}

.hero-section.home-hero::before {
  position: absolute;
  bottom: 84px;
  left: 50%;
  z-index: -1;
  width: min(330px, 76vw);
  height: 142px;
  transform: translateX(-50%);
  border: 1px solid rgba(214, 170, 92, 0.08);
  border-top: 0;
  content: "";
  pointer-events: none;
}

.hero-section.home-hero::after {
  position: absolute;
  bottom: 112px;
  left: 50%;
  z-index: -1;
  width: min(154px, 42vw);
  height: 106px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(214, 170, 92, 0.08);
  content: "";
  pointer-events: none;
}

.hero-actions .primary-action,
.hero-actions .ghost-action {
  border-radius: 8px;
}

.hero-actions .primary-action {
  min-height: 54px;
  box-shadow: 0 16px 34px rgba(201, 70, 66, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-actions .ghost-action {
  min-height: 52px;
  background: rgba(18, 13, 10, 0.52);
}

.panel,
.form-panel,
.result-panel,
.product-card,
.service-card,
.insight-strip article,
.process-steps article,
.value-panel,
.empty-state,
.choice-card,
.master-card,
.stat-card,
.record-item,
.share-card {
  background:
    linear-gradient(180deg, rgba(48, 34, 23, 0.56), rgba(24, 17, 12, 0.68)),
    rgba(24, 17, 12, 0.62);
}

.panel-heading h2,
.section-heading h2,
.action-panel h2,
.product-card h3,
.service-card h3,
.empty-state h2,
.value-panel h2 {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-weight: 700;
}

.section-heading {
  align-items: flex-end;
  border-bottom: 1px solid rgba(214, 170, 92, 0.1);
  padding-bottom: 14px;
}

.section-heading > p {
  max-width: 360px;
  text-align: right;
}

.feature-card,
.product-card,
.account-panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 244, 214, 0.045);
}

.feature-card-foot {
  border-top: 1px solid rgba(214, 170, 92, 0.1);
  padding-top: 12px;
}

.service-card h3,
.product-card h3,
.action-panel h2 {
  color: #f4dca4;
}

.service-card p,
.product-card p,
.action-panel p {
  color: #b9a786;
}

.insight-strip article {
  border-color: rgba(214, 170, 92, 0.14);
}

.insight-strip strong {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 1.38rem;
  font-weight: 700;
}

.process-steps article {
  border-color: rgba(214, 170, 92, 0.12);
}

.choice-card.selected,
.master-card.selected {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(239, 209, 139, 0.08);
}

.choice-card strong,
.master-copy strong {
  color: #f1d897;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.03);
}

.cashier-card {
  background:
    linear-gradient(180deg, rgba(48, 34, 23, 0.98), rgba(24, 17, 12, 0.98)),
    rgba(31, 24, 18, 0.97);
}

.mobile-tabbar {
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
}

@media (max-width: 900px) {
  .section-heading {
    align-items: flex-start;
  }

  .section-heading > p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-section.home-hero::before {
    bottom: 74px;
    width: min(292px, 78vw);
    height: 118px;
  }

  .hero-section.home-hero::after {
    bottom: 98px;
    width: min(132px, 38vw);
    height: 92px;
  }

  .hero-actions .primary-action,
  .hero-actions .ghost-action {
    min-height: 52px;
  }

  .section-heading {
    padding-bottom: 10px;
  }
}

.ritual-panel {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(214, 170, 92, 0.17);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(239, 209, 139, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(214, 170, 92, 0.08), rgba(111, 166, 150, 0.035)),
    rgba(28, 20, 14, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 244, 214, 0.04);
}

.ritual-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(239, 209, 139, 0.34);
  border-radius: 50%;
  color: #efd18b;
  background: rgba(18, 13, 10, 0.34);
  box-shadow: 0 0 0 8px rgba(214, 170, 92, 0.035), 0 0 22px rgba(214, 170, 92, 0.14);
}

.ritual-mark svg {
  width: 56%;
  height: 56%;
  stroke: currentColor;
}

.ritual-copy h2 {
  margin-bottom: 6px;
  color: #f4dca4;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.38rem;
  font-weight: 700;
}

.ritual-copy p:not(.step-label) {
  margin: 0;
  color: #bba882;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

.ritual-tags {
  display: flex;
  max-width: 320px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ritual-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(214, 170, 92, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  color: #e4c783;
  background: rgba(18, 13, 10, 0.28);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .ritual-panel {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ritual-mark {
    width: 54px;
    height: 54px;
  }

  .ritual-tags {
    grid-column: 1 / -1;
    max-width: none;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .ritual-panel {
    gap: 12px;
    padding: 15px;
  }

  .ritual-copy h2 {
    font-size: 1.24rem;
  }

  .ritual-copy p:not(.step-label) {
    font-size: 0.92rem;
  }
}
