:root {
  --bg: #f7f5f0;
  --panel: #ffffff;
  --ink: #2c2c2c;
  --muted: #6b6b6b;
  --border: #e0d8c8;
  --gold: #c5a065;
  --gold-dark: #9a7b48;
  --green: #2e8b57;
  --red: #c0392b;
  --yellow: #d4a017;
  --gray: #7f8c8d;
  --black: #2c2c2c;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  text-align: center;
  margin-bottom: 24px;
}

.site-header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 4px;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  flex: 1;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.card-panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.card-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  text-align: center;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  margin-bottom: 20px;
}

/* 连接数好/差提示变体 */
.hint.ok   { color: #2e7d32; }
.hint.warn { color: #c0392b; font-weight: 600; }

/* 数时数字徽标：红=光明/显著/起笔(好)，绿=全息/敏感(好)，黑下划线=阴暗/收笔(差)，黑圈=疙瘩(差)，普通/搭桥为中性 */
.num-badge {
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  padding: 2px 7px;
  margin: 2px 3px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  line-height: 1.4;
}
.num-bright   { color: #c0392b; background: #fdecea; border-color: #f3b7b0; } /* 红·光明/显著/起笔 */
.num-sensitive{ color: #1e7d44; background: #e6f4ea; border-color: #a9d8bc; } /* 绿·全息/敏感 */
.num-dark     { color: #444;    background: #efefef; border-color: #ccc; text-decoration: underline; } /* 黑下划线·阴暗/收笔 */
.num-knot     { color: #222;    background: #fff;    border: 2px solid #222; border-radius: 50%; min-width: 1.7em; padding: 1px 4px; } /* 黑圈·疙瘩(圈数字) */
.num-plain    { color: #222;    background: #f3f3f3; border-color: #ddd; } /* 黑字·一般/平 */
.num-bridge   { color: #b8860b; background: #fff7da; border-color: #e8c977; } /* 黄·搭桥 */

/* 数时图例释义 */
.num-legend { margin: 6px 0 12px; padding: 10px 12px; background: #fafafa; border: 1px solid #ececec; border-radius: 8px; font-size: 0.9rem; line-height: 2; }
.num-legend .legend-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.num-legend .legend-sum { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ddd; }

.key-number {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fbf6ec;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 0.96rem;
}

/* 共同数三句诀判读 */
.common-rule {
  margin: 4px 0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff8e1;
  border: 1px solid #f0dca0;
  color: #6b5a1e;
}

/* 共同数序列 / 数量原则 */
.common-seq {
  margin: 6px 0;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #eef7f0;
  border: 1px solid #b7ddc4;
  color: #1f5b39;
  line-height: 1.6;
}

/* 显著数区块（区别于共同数黄底、序列绿底，用青色） */
.sig-block {
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #e8f3f7;
  border: 1px solid #a9d2e0;
  color: #14506b;
  line-height: 1.7;
}
.sig-block .hint {
  display: block;
  text-align: left;
  margin: 2px 0;
}

/* 数时参考折叠面板 */
.number-details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0;
  overflow: hidden;
}
.number-details summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--gold-dark);
  background: #faf6ef;
  user-select: none;
  list-style: none;
}
.number-details summary::-webkit-details-marker {
  display: none;
}
.number-details summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.2s;
}
.number-details[open] summary::before {
  content: "▾ ";
}
.number-details > div {
  padding: 12px 14px;
  font-size: 0.96rem;
  line-height: 1.8;
}

textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
  background: #fdfcfa;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 101, 0.15);
}

.actions {
  margin-top: 24px;
  text-align: center;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(197, 160, 101, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 160, 101, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: #faf7f2;
}

/* 凝神呼吸 */
.breath-ring {
  width: 160px;
  height: 160px;
  margin: 24px auto;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0%, transparent 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 12px rgba(197, 160, 101, 0.1);
  transition: transform 0.1s linear;
}

.breath-ring span {
  font-size: 1.3rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.focus-question {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: italic;
}

/* 洗牌动画 */
.deck-container {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.deck {
  width: 140px;
  height: 220px;
  background-image: url('../img/back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  border: 2px solid var(--gold);
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transform-style: preserve-3d;
  -webkit-user-drag: none;
  user-drag: none;
}

.deck::before, .deck::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px solid var(--gold);
  background-image: url('../img/back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.deck::before {
  top: -4px;
  left: -4px;
  z-index: -1;
}

.deck::after {
  top: -8px;
  left: -8px;
  z-index: -2;
}

.deck.shuffling {
  animation: shuffleMove 0.4s infinite alternate ease-in-out;
}

@keyframes shuffleMove {
  0% { transform: rotateY(-8deg) translateX(-6px); }
  100% { transform: rotateY(8deg) translateX(6px); }
}

/* 结果页 */
.result-header {
  text-align: center;
  margin-bottom: 20px;
}

.result-header h2 {
  margin: 0;
}

.result-question {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 6px 0 0;
}

.cards-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.card-slot {
  text-align: center;
}

.slot-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-img {
  width: 220px;
  max-width: 46vw;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: dealIn 0.6s ease both;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

@keyframes dealIn {
  from { opacity: 0; transform: translateY(-30px) rotateY(-20deg); }
  to { opacity: 1; transform: translateY(0) rotateY(0); }
}

.interpretation {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.verdict-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #f9f7f2;
  border-left: 5px solid var(--gold);
}

.verdict-title { font-weight: 700; font-size: 1.08rem; display: inline-block; margin-bottom: 4px; }
.verdict-great { background: #fdecea; }
.verdict-good  { background: #eafaf1; }
.verdict-mid   { background: #fef9e7; }
.verdict-turn  { background: #fef5e7; }
.verdict-bad   { background: #f0f1f2; }
.verdict-worst { background: #2c2c2c; color: #fff; }
.verdict-worst .verdict-title { color: #fff; }
.verdict-bad .verdict-title, .verdict-turn .verdict-title { color: #5a3a12; }

.verdict-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.verdict-text {
  font-size: 1.25rem;
}

.detail-section {
  margin-bottom: 18px;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--gold-dark);
}

.detail-section p {
  margin: 0;
  color: var(--ink);
}

.detail-section ul {
  margin: 0;
  padding-left: 20px;
}

.detail-section li {
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 6px;
  vertical-align: middle;
}

.tag-green { background: #e6f4ea; color: var(--green); }
.tag-red { background: #fdecea; color: var(--red); }
.tag-yellow { background: #fff8e1; color: var(--yellow); }
.tag-gray { background: #f0f0f0; color: var(--gray); }
.tag-black { background: #e8e8e8; color: var(--black); }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .card-panel { padding: 20px; }
  .site-header h1 { font-size: 1.6rem; }
  .card-img { width: 160px; }
}

/* 占卜规则 */
.rules {
  margin: 16px 0 4px;
  background: #faf7f0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #5b5141;
}

.rules summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-dark);
  user-select: none;
}

.rules ul {
  margin: 10px 0 4px;
  padding-left: 20px;
}

.rules li {
  margin: 6px 0;
  line-height: 1.55;
}

.today-count {
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin: 8px 0 0;
}

.ask-time {
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin: 4px 0 0;
}

/* ============ 1.1 会员系统样式 ============ */
.member-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mb-btn {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  border-radius: 18px;
  padding: 5px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .15s;
}
.mb-btn:hover { background: var(--gold-dark); }
.mb-btn.mb-ghost { background: transparent; color: var(--gold-dark); }
.mb-btn.mb-ghost:hover { background: rgba(154,123,72,.12); }
.mb-user { color: var(--ink); font-size: 0.9rem; }
.mb-points { color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; }

.hidden { display: none !important; }

.verdict-lock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(154,123,72,.08);
  border: 1px dashed var(--gold);
  border-radius: 10px;
}
.verdict-lock .lock-icon { font-size: 1.1rem; }
.verdict-lock #verdict-lock-tip { color: var(--gold-dark); font-size: 0.9rem; }
.btn-mini {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-mini:hover { background: var(--gold-dark); }
.btn-mini.btn-ghost { background: transparent; color: var(--gold-dark); }

.modal {
  position: fixed; inset: 0;
  background: rgba(40,30,15,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}
.modal.show { display: flex; }
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.modal-box.modal-wide { max-width: 520px; }
.modal-box h3 { margin: 0 0 14px; color: var(--gold-dark); }
.modal-box h4 { margin: 18px 0 8px; color: var(--ink); font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  border: none; background: transparent; font-size: 1.4rem; color: var(--muted); cursor: pointer;
}
.mb-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; margin: 8px 0;
  border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem;
}
.mb-tip { font-size: 0.82rem; color: var(--muted); margin: 8px 0; }
.mb-tip a { color: var(--gold-dark); cursor: pointer; text-decoration: underline; }
.recharge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(44,44,44,.92); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.stat-cell {
  background: rgba(154,123,72,.08); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 8px; text-align: center;
}
.stat-cell b { display: block; font-size: 1.3rem; color: var(--gold-dark); }
.stat-cell span { font-size: 0.75rem; color: var(--muted); }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.admin-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table .mb-mini { padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; }


<omitted>

/* ===== 1.1 解读门禁（整体锁定） ===== */
.interpretation.locked #interp-content { display: none; }
#interp-lock {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 12px;
  padding: 16px 18px; margin: 6px 0 14px;
}
.interpretation.locked #interp-lock { display: flex; }
#interp-lock .lock-icon { font-size: 20px; }
#interp-lock #interp-lock-tip { color: #8a6d3b; font-size: 15px; }
#interp-lock b { color: #b8860b; }
#interp-lock .btn-mini { margin-left: 4px; }

/* 注册赠送积分提示 */
.register-bonus-tip { color: #1e7d44; font-size: 13px; margin: 8px 0 2px; text-align: center; line-height: 1.5; }
.register-bonus-tip b { color: #c0392b; }

/* 管理后台：开关与设置行 */
.mb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5a4326; margin: 10px 0 4px; }
.mb-check input { width: 16px; height: 16px; }
.admin-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 14px; color: #5a4326; }
.admin-row .mb-input { width: 100px; }

/* ===== 独立管理后台 ===== */
.admin-header { padding: 14px 18px; }
.admin-main { max-width: 960px; margin: 0 auto; padding: 16px; }
.admin-section {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(90, 67, 38, 0.04);
}
.admin-section h2 { margin: 0 0 14px; font-size: 17px; color: #5a4326; }
.admin-search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-search-bar .mb-input { flex: 1; min-width: 160px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid #f0eadd; text-align: left; color: #5a4326; }
.admin-table th { background: #faf7f0; font-weight: 600; }
.admin-table tr:hover { background: #fdfbf6; }
.admin-empty { text-align: center; color: #9a8b70; padding: 24px; }
.admin-pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #7a6a50; }
.admin-pagination .mb-mini.active { background: #b8860b; color: #fff; border-color: #b8860b; }
.admin-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 14px; color: #5a4326; }
.admin-row .mb-input { flex: 1; max-width: 360px; }
.mb-hr { border: none; border-top: 1px solid #eee4d0; margin: 12px 0; }
.mb-wechat { background: #07c160; color: #fff; border-color: #07c160; }
.mb-wechat:hover { background: #06ad56; }
.mb-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.mb-danger:hover { background: #a93226; }

/* 充值弹窗：Tab 切换 */
.recharge-tabs { display: flex; gap: 6px; margin: 12px 0 14px; border-bottom: 1px solid #eee4d0; }
.rc-tab { flex: 1; padding: 8px 4px; border: none; background: transparent; color: #7a6a50; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.rc-tab.active { color: #b8860b; border-bottom-color: #b8860b; font-weight: 600; }
.rc-panel { padding-top: 4px; }
.mb-epay { background: #ff7a00; color: #fff; border-color: #ff7a00; }
.mb-epay:hover { background: #e96f00; }
.mb-sim { background: #c5a065; color: #fff; border-color: #c5a065; }
#epay-qrcode img { border: 4px solid #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); margin: 6px auto; display: block; }
.card-export-box { background: #faf7f0; border: 1px solid #e8e0d0; border-radius: 8px; padding: 10px; font-size: 12px; max-height: 240px; overflow: auto; white-space: pre; user-select: text; margin-top: 10px; }
.admin-table td[style*="monospace"] { letter-spacing: 1px; user-select: text; }
.mb-input, textarea, input { -webkit-user-select: text; user-select: text; }

/* 客服浮窗 */
.cs-widget { position: fixed; right: 18px; bottom: 18px; z-index: 9999; }
.cs-fab { width: 54px; height: 54px; border-radius: 50%; border: none; background: linear-gradient(135deg, #c5a065, #b8860b); color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 4px 14px rgba(184, 134, 11, .4); display: flex; align-items: center; justify-content: center; }
.cs-fab:hover { background: linear-gradient(135deg, #b8860b, #9c7209); }
.cs-panel { position: absolute; right: 0; bottom: 64px; width: 240px; background: #fffaf0; border: 1px solid #e8e0d0; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); overflow: hidden; }
.cs-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #b8860b; color: #fff; font-weight: 600; font-size: 14px; }
.cs-close { background: transparent; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.cs-body { padding: 14px; }
.cs-tip { margin: 0 0 8px; font-size: 12px; color: #7a6a50; }
.cs-wx { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e8e0d0; border-radius: 8px; padding: 8px 10px; }
.cs-wx-label { font-size: 12px; color: #9a8b70; }
.cs-wx-id { font-family: monospace; font-size: 15px; font-weight: 700; color: #b8860b; flex: 1; letter-spacing: 1px; }
.cs-copy { border: none; background: #c5a065; color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.cs-copy:hover { background: #b8860b; }
