/* ================================================================
   虾算算 · v7 奶油贴纸风设计系统(定稿方向)
   语言: 奶油波点底 / 糖果平涂 / 漫画墨线 / 贴纸硬投影 / 回弹按钮
   字体: 站酷快乐体(标题/按钮) + 思源黑体(正文)
   ================================================================ */
:root {
  --ink: #3d3a50;          /* 漫画墨线/主文字 */
  --ink-soft: #6d6890;
  --ink-faint: #a49ec0;
  --cream: #fff8ec;        /* 奶油底 */
  --coral: #ff7e67; --coral-lo: #e05a44;
  --sunny: #ffd166; --sunny-lo: #efab1f;
  --mint: #4ecdc4;  --mint-lo: #2fa89f;
  --grape: #a78bfa; --grape-lo: #7c5cd6;
  --pink: #ff8fab;  --pink-lo: #e56487;
  --sky: #6ec6ff;   --sky-lo: #3d9be0;
  --white-border: 3.5px solid var(--ink);
  --r-lg: 22px;
  --r-md: 16px;
  --shadow-sticker: 5px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  /* 模块主色(映射到糖果色板) */
  --c-tarot: var(--grape);   --c-tarot-d: var(--grape-lo);
  --c-bazi: var(--coral);    --c-bazi-d: var(--coral-lo);
  --c-liuyao: var(--sunny);  --c-liuyao-d: var(--sunny-lo);
  --c-meihua: var(--pink);   --c-meihua-d: var(--pink-lo);
  --c-num: var(--mint);      --c-num-d: var(--mint-lo);
  --c-qian: #8bc34a;         --c-qian-d: #689f38;
  --c-extra: #90a4ae;        --c-extra-d: #607d8b;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--cream);
  min-height: 100vh; color: var(--ink);
  display: flex; justify-content: center;
  position: relative;
}
/* 波点背景层 */
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(61,58,80,.07) 2.2px, transparent 2.2px);
  background-size: 26px 26px; }
#app { width: 100%; max-width: 480px; min-height: 100vh; padding: 20px 16px 100px; position: relative; z-index: 1; }

/* ---------- 通用元素 ---------- */
.title-font { font-family: 'ZCOOL KuaiLe', cursive; }
h1.page-title {
  font-family: 'ZCOOL KuaiLe', cursive; font-size: 30px; text-align: center;
  color: var(--ink); letter-spacing: 4px; text-indent: 4px; /* 补偿末字符尾隙 */
  margin-bottom: 4px;
}
.page-sub { text-align: center; font-size: 13px; color: var(--ink-soft); font-weight: 700; margin-bottom: 16px; }

/* 顶栏(内页) */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar .back {
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  width: 42px; height: 42px; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .22s cubic-bezier(.2,2.2,.4,1), box-shadow .22s cubic-bezier(.2,2.2,.4,1);
}
.topbar .back:active { transform: translateY(3px); box-shadow: 0.5px 0.5px 0 var(--ink); transition-duration: .08s; }
.topbar .bar-title { font-family: 'ZCOOL KuaiLe', cursive; font-size: 24px; letter-spacing: 2px; display: inline-flex; align-items: center; gap: 8px; }
.topbar .bar-icon { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(2px 2.5px 0 rgba(61,58,80,.35)); }
.page-intro { margin: -6px 0 12px 46px; font-size: 12.5px; color: var(--ink-faint); font-weight: 700; letter-spacing: .5px; }

/* 面板卡片: 白贴纸 */
.panel {
  background: #fff; border: 3.5px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  padding: 18px 16px; margin-bottom: 18px;
}
.panel-tint { color: #fff; }

/* 软糖按钮: 墨线描边+实心底边+回弹手感(v7工艺) */
.btn {
  display: inline-block; border: 3.5px solid var(--ink); cursor: pointer;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif; font-weight: 400; font-size: 18px;
  color: #fff; letter-spacing: 2px; text-indent: 2px; /* 补偿末字符尾隙 */
  padding: 13px 26px; border-radius: 999px;
  transition: transform .22s cubic-bezier(.2,2.2,.4,1), box-shadow .22s cubic-bezier(.2,2.2,.4,1);
  text-align: center;
  text-shadow: 1.5px 1.5px 0 rgba(61,58,80,.3);
}
.btn:active { transform: translateY(6px); transition-duration: .08s; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-block { display: block; width: 100%; }
/* 成对按钮行: 窄宽下收缩内边距防折行 */
.btn-pair { display: flex; gap: 10px; }
.btn-pair .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; font-size: 15.5px; letter-spacing: .5px; text-indent: .5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn-primary { background: var(--sunny); color: var(--ink); text-shadow: none; box-shadow: 0 6px 0 var(--sunny-lo), 0 6px 0 3.5px var(--ink); }
.btn-primary:active { box-shadow: 0 1px 0 var(--sunny-lo), 0 1px 0 3.5px var(--ink); }
.btn-purple { background: var(--grape); box-shadow: 0 6px 0 var(--grape-lo), 0 6px 0 3.5px var(--ink); }
.btn-purple:active { box-shadow: 0 1px 0 var(--grape-lo), 0 1px 0 3.5px var(--ink); }
.btn-green { background: var(--c-qian); box-shadow: 0 6px 0 var(--c-qian-d), 0 6px 0 3.5px var(--ink); }
.btn-green:active { box-shadow: 0 1px 0 var(--c-qian-d), 0 1px 0 3.5px var(--ink); }
.btn-sm { font-size: 14px; padding: 7px 16px; letter-spacing: 1px; text-indent: 1px; border-width: 2.5px; }
.btn-sm.btn-primary { box-shadow: 0 4px 0 var(--sunny-lo), 0 4px 0 2.5px var(--ink); }
.btn-sm.btn-purple { box-shadow: 0 4px 0 var(--grape-lo), 0 4px 0 2.5px var(--ink); }
.btn-sm.btn-green { box-shadow: 0 4px 0 var(--c-qian-d), 0 4px 0 2.5px var(--ink); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 900; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; border: 3px solid var(--ink); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #fffdf8; outline: none; transition: box-shadow .15s;
  box-shadow: inset 2.5px 3px 0 rgba(61,58,80,.08);
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 2.5px 3px 0 rgba(61,58,80,.08), 0 0 0 3px rgba(255,209,102,.5); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
/* v9.2.3 真太阳时出生地选择器: 贴纸触发按钮 + 胶囊面板(产品同款风格) */
.st-trig {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; font-size: 15px; font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif; color: var(--ink-faint);
  background: #fffdf6; border: 2.5px solid #e0d8c4; border-radius: var(--r-md);
  cursor: pointer; text-align: left; transition: all .15s;
  box-shadow: inset 2.5px 3px 0 rgba(61,58,80,.08);
}
.st-trig .st-ic { width: 18px; height: 18px; object-fit: contain; opacity: .55; }
.st-trig .st-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-trig .st-arrow { color: var(--ink-faint); font-size: 13px; transition: transform .2s; }
.st-trig.st-open .st-arrow { transform: rotate(180deg); }
.st-trig.st-set {
  color: var(--ink); background: #fff8e1; border-color: var(--ink);
  box-shadow: 2px 2.5px 0 var(--ink);
}
.st-trig.st-set .st-ic { opacity: 1; }
.st-trig:active { transform: translateY(2px); box-shadow: 1px 1px 0 rgba(61,58,80,.25); }
.st-panel {
  margin-top: 8px; padding: 12px;
  background: #fffdf6; border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); animation: rise .22s ease-out;
}
.st-panel-tip { font-size: 12px; color: var(--ink-faint); margin: 0 0 10px; }
.st-panel .seg { gap: 6px; }
.st-panel .seg .seg-item { padding: 6px 12px; font-size: 13px; }
.st-city-zone .seg .seg-item { background: #eef7f6; }
.st-city-zone .seg .seg-item.on { background: var(--mint); }
.st-city-zone { animation: rise .2s ease-out; }
.st-panel .seg-item.st-back { border-style: dashed; border-color: var(--ink-faint); background: transparent; color: var(--ink-faint); }

/* 装进桌面弹层: "无法添加到桌面?" 疑难折叠区 (v9.2.4) */
.pwa-faq-btn { display: block; margin: 12px auto 0; padding: 5px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); background: transparent; border: 2px dashed var(--ink-faint); border-radius: 999px; cursor: pointer; font-family: inherit; }
.pwa-faq-btn .st-arrow { display: inline-block; transition: transform .18s; }
.pwa-faq-btn.open .st-arrow { transform: rotate(180deg); }
.pwa-faq { margin-top: 10px; padding: 12px 14px; background: #fffdf6; border: 2.5px solid var(--ink); border-radius: var(--r-md); box-shadow: 3px 3px 0 var(--ink); animation: rise .22s ease-out; text-align: left; max-height: 46vh; overflow-y: auto; }
.pwa-faq h5 { margin: 10px 0 3px; font-size: 13px; color: var(--ink); }
.pwa-faq h5:first-child { margin-top: 0; }
.pwa-faq p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* v9.4 紫微十二宫飞星盘 */
.zw-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(88px, auto)); gap: 3px; background: var(--ink); border: 2.5px solid var(--ink); border-radius: var(--r-md); overflow: hidden; margin: 8px 0; }
.zw-cell { background: #fffdf6; padding: 4px 5px; display: flex; flex-direction: column; min-width: 0; }
.zw-cell.zw-ming { background: #fdf3e0; box-shadow: inset 0 0 0 2px #e6a23c; }
.zw-cell-hd { display: flex; align-items: center; gap: 3px; font-size: 10.5px; }
.zw-cell-hd b { font-size: 11px; color: var(--ink); }
.zw-cell-hd small { margin-left: auto; color: var(--ink-faint); font-size: 9px; }
.zw-shen { background: #7c5ce0; color: #fff; font-size: 9px; border-radius: 4px; padding: 0 3px; line-height: 1.4; }
.zw-major { font-size: 12px; font-weight: 700; line-height: 1.5; margin-top: 2px; color: var(--ink); }
.zw-major sup, .zw-minor sup { font-size: 9px; }
.zw-minor { font-size: 10px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.zw-ft { font-size: 9px; color: var(--ink-faint); text-align: right; }
.zw-center { background: #f6f1e4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; }

/* 选项胶囊组 */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .seg-item {
  padding: 8px 16px; border-radius: 999px; background: #f6f1e4;
  font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
  border: 2.5px solid transparent; transition: all .15s;
}
.seg .seg-item.on { background: var(--sunny); border-color: var(--ink); color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink); transform: rotate(-1deg); }

/* 结果区块 */
.result-block { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.divider { border: none; border-top: 2.5px dashed #e0d8c4; margin: 14px 0; }

/* 标签章 */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 900; color: #fff;
  border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.tag-gold { background: var(--sunny); color: var(--ink); }
.tag-red { background: var(--coral); }
.tag-green { background: var(--c-qian); }
.tag-gray { background: #b6b1c9; }
.tag-purple { background: var(--grape); }

/* 卦象显示 */
.gua-box { text-align: center; padding: 8px 4px; }
.gua-char { font-size: 64px; line-height: 1.1; color: var(--ink); }
.gua-name { font-weight: 900; font-size: 16px; margin-top: 2px; }
.gua-sub { font-size: 12px; color: var(--ink-faint); }
.gua-row { display: flex; justify-content: space-around; align-items: flex-start; }
.gua-arrow { font-size: 26px; color: var(--ink-faint); align-self: center; }

/* 六爻爻位表 */
.yao-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.yao-table td { padding: 7px 4px; text-align: center; border-bottom: 2px dashed #e8e2d4; }
.yao-line { font-family: monospace; font-size: 17px; letter-spacing: 2px; text-indent: 2px; font-weight: 900; }
.yao-moving { color: var(--coral-lo); }

/* 八字四柱 */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.pillar {
  background: #fdf6ec; border-radius: var(--r-md); padding: 10px 4px;
  border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
}
.pillar .p-label { font-size: 11px; color: #b08950; font-weight: 700; }
.pillar .p-gz { font-family: 'ZCOOL KuaiLe', cursive; font-size: 26px; color: #6d4c1b; line-height: 1.25; }
.pillar .p-ss { font-size: 10px; color: #b08950; }
.wuxing-bar { display: flex; gap: 6px; margin-top: 10px; }
.wuxing-bar .wx {
  flex: 1; text-align: center; border-radius: 12px; padding: 6px 0;
  font-size: 12px; font-weight: 900; color: #fff;
  border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.wx-木 { background: #66bb6a; } .wx-火 { background: #ef5350; } .wx-土 { background: #a1887f; }
.wx-金 { background: #ffca28; color: #7a5c00 !important; } .wx-水 { background: #42a5f5; }

/* 塔罗卡 (v8.7 精修: 无边框柔投影 + 双列宫格 + 末张跨列居中)
   注: 塔罗牌是"内容本体"非UI控件, 特例不走贴纸粗描边, 用柔紫投影托出艺术品感 */
.tarot-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tarot-card {
  width: auto; background: #fff;
  border: none; border-radius: 16px; padding: 0; overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 18px rgba(93, 74, 156, .18), 0 2px 5px rgba(93, 74, 156, .12);
  animation: flipIn .5s ease-out backwards;
}
/* 奇数张时末张跨两列居中(三牌阵呈品字, 保留牌阵布局感); 单张放大居中 */
.tarot-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 58%; }
.tarot-card:only-child { width: 62%; }
.tarot-card:nth-child(2) { animation-delay: .12s; } .tarot-card:nth-child(3) { animation-delay: .24s; }
.tarot-card:nth-child(4) { animation-delay: .36s; } .tarot-card:nth-child(5) { animation-delay: .48s; }
.tarot-card:nth-child(n+6) { animation-delay: .6s; }
@keyframes flipIn { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.tarot-card .tc-pos {
  font-size: 12px; padding: 7px 0 6px; letter-spacing: 3px; font-weight: 900;
  background: linear-gradient(135deg, #b8a8e0, #8f7cc9); color: #fff;
}
.tarot-card .tc-art { font-size: 38px; padding: 0; line-height: 0; background: #efeaf8; }
.tarot-card .tc-art img { display: block; width: 100%; max-width: none; margin: 0;
  border: none; border-radius: 0; box-shadow: none; }
.tarot-card.rev .tc-art { transform: rotate(180deg); }
.tarot-card .tc-name { font-size: 15px; font-weight: 900; color: var(--ink); margin-top: 9px; }
.tarot-card .tc-ori { font-size: 11.5px; font-weight: 900; margin-top: 2px; }
.tarot-card .tc-ori.up { color: #689f38; } .tarot-card .tc-ori.down { color: var(--coral-lo); }
.tarot-card .tc-kw { font-size: 10.5px; color: var(--grape-lo); margin: 3px 10px 11px; line-height: 1.5; }

/* 灵签 */
.qian-poem {
  font-family: 'ZCOOL KuaiLe', cursive; font-size: 20px; line-height: 1.9;
  text-align: center; color: #5d4037; letter-spacing: 2px; text-indent: 2px;
  background: #fdf6ec; border-radius: var(--r-md); padding: 16px 10px;
  border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
}
/* 摇签动画 */
.qian-tube { width: 128px; height: auto; max-height: 210px; object-fit: contain; display: block; margin: 4px auto 8px; filter: drop-shadow(0 4px 8px rgba(93,64,55,.25)); transform-origin: 50% 90%; } /* v10.14: 第八批竖构图签筒(2:3), 收窄宽度防止过高 */
.shaking { animation: shake .5s ease-in-out infinite; }
@keyframes shake { 0%,100%{transform:rotate(-12deg)} 50%{transform:rotate(12deg)} }

/* 九宫格 */
.loshu { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; max-width: 240px; margin: 0 auto; }
.loshu .cell {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border-radius: 14px; border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
}
.loshu .cell.miss { background: #f6f1e4; border-color: #cfc9bb; box-shadow: none; opacity: .55; }
.loshu .cell .n { font-size: 22px; font-weight: 900; color: var(--mint-lo); font-family: 'Baloo 2', 'ZCOOL KuaiLe', sans-serif; }
.loshu .cell .cnt { font-size: 11px; color: var(--ink-faint); font-weight: 700; }
.loshu .cell.miss .n { color: #bdbdbd; }
.lifepath-ball {
  width: 92px; height: 92px; border-radius: 50%; margin: 6px auto;
  background: radial-gradient(circle at 32% 28%, #a8e8e3, var(--mint) 55%, var(--mint-lo));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: #fff; font-family: 'Baloo 2', 'ZCOOL KuaiLe', sans-serif;
  border: 3.5px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink), inset 0 -6px 12px rgba(0,0,0,.15);
  text-shadow: 2px 2px 0 rgba(61,58,80,.4);
}

/* AI 解读区 */
.ai-box {
  background: #f3efff;
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 16px; margin-top: 16px; transform: rotate(-.6deg);
  box-shadow: var(--shadow-sticker);
}
.ai-box .ai-head { display: flex; align-items: center; gap: 8px; font-weight: 900; color: var(--grape-lo); margin-bottom: 8px; font-family: 'ZCOOL KuaiLe', cursive; letter-spacing: 1px; }
.ai-box .ai-head img { width: 26px; height: auto; }
/* 额度角标: 结果页常驻显示今日剩余AI解读次数 */
.ai-quota { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ink-faint); background: var(--cream); border: 1.5px solid rgba(61,58,80,.15); border-radius: 999px; padding: 2px 9px; font-family: 'Noto Sans SC', sans-serif; letter-spacing: 0; white-space: nowrap; }
/* 连签火焰徽章: 每日一签卡片 */
.streak-chip { display: inline-block; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff9558, var(--coral-lo)); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; box-shadow: 1px 1.5px 0 rgba(61,58,80,.35); letter-spacing: 0; }
/* 记录星标: 收藏置顶 */
.rec-star { flex: none; width: 34px; height: 34px; border: none; background: transparent; font-size: 19px; cursor: pointer; padding: 0; line-height: 1; opacity: .55; transition: transform .15s, opacity .15s; }
.rec-star .star-ic { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.rec-star.on { opacity: 1; transform: scale(1.12); }
.rec-star:active { transform: scale(.85); }
.rec-item.rec-starred { border-color: var(--sunny-lo, #e0a93e); background: #fffbef; }
/* 分享链接区块 */
.share-link-box { background: #eef6fb; border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 3px 4px 0 rgba(61,58,80,.75); }
.share-url { font-size: 12px; word-break: break-all; background: #fff; border: 2px dashed #b8d4e8; border-radius: 10px; padding: 8px 10px; color: #4a7ba6; cursor: pointer; font-family: monospace; }
.ai-content { font-size: 14.5px; line-height: 1.9; color: #544d78; white-space: pre-wrap; }
.ai-loading { text-align: center; padding: 12px; color: var(--grape-lo); font-weight: 700; }
.ai-loading .dots::after { content: ''; animation: dots 1.4s steps(4,end) infinite; }
@keyframes dots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }
/* 打坐虾加载动画: 缓慢呼吸浮动 */
.zen-loading { text-align: center; padding: 14px 12px 10px; color: var(--grape-lo); font-weight: 700; }
.zen-loading img { display: block; width: 108px; height: auto; margin: 0 auto 6px;
  filter: drop-shadow(3px 4px 0 rgba(61,58,80,.4));
  animation: zenfloat 2.6s ease-in-out infinite; }
@keyframes zenfloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-7px) scale(1.03)} }
/* 仪式感加载: 洗牌虾/抛铜钱虾 摇摆入场 */
.rite-loading { text-align: center; padding: 16px 12px 12px; color: var(--grape-lo); font-weight: 700;
  background: #fffdf6; border: 3px solid var(--ink, #3d3a50); border-radius: 20px;
  box-shadow: 5px 6px 0 rgba(61,58,80,.75); margin-top: 14px; animation: rise .3s ease-out; }
.rite-loading img { display: block; width: 128px; height: auto; margin: 0 auto 6px;
  filter: drop-shadow(3px 4px 0 rgba(61,58,80,.4));
  animation: ritewig 0.55s ease-in-out infinite; transform-origin: 50% 85%; }
.rite-loading .dots::after { content: ''; animation: dots 1.4s steps(4,end) infinite; }
@keyframes ritewig { 0%,100%{transform:rotate(-7deg) translateY(0)} 50%{transform:rotate(7deg) translateY(-4px)} }
/* 摇签时的抱签筒虾: 比静态签筒图大一点更活泼 */
.qian-tube.tube-live { width: 170px; }
/* AI 解读完点赞虾收尾条 */
.ai-done { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
  padding: 8px 10px; background: #f2fbe8; border: 2.5px dashed #a3c96b; border-radius: 14px;
  color: #5d8a2a; font-weight: 800; font-size: 13.5px; animation: rise .35s ease-out; }
.ai-done img { width: 44px; height: auto; flex: none; filter: drop-shadow(2px 2px 0 rgba(61,58,80,.35));
  animation: bob 1.8s ease-in-out infinite; }
/* 结果页顶部铃铛横幅: 图为底, 文字压在缎带中央 */
.res-banner { position: relative; width: min(340px, 92%); margin: -4px auto 6px; }
.res-banner img { display: block; width: 100%; height: auto; }
.res-banner .rb-text { position: absolute; left: 50%; top: 34%; transform: translate(-50%,-50%); /* 34%=缎带正面实测视觉中心(38%偏下) */
  width: 72%; text-align: center; font-family: 'ZCOOL KuaiLe', cursive; color: #fff;
  font-size: 21px; letter-spacing: 3px; text-indent: 3px; /* 补偿末字符 letter-spacing 尾隙, 使字形真正居中 */
  white-space: nowrap; overflow: hidden;
  text-shadow: 1.5px 1.5px 0 rgba(122,34,20,.55); }
.ai-note { font-size: 11px; color: var(--ink-faint); margin-top: 8px; text-align: center; }

/* 记录列表 */
.rec-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.rec-item:active { transform: translateY(3px); box-shadow: 1px 1px 0 var(--ink); }
.rec-item .rec-icon { font-size: 28px; }
.rec-item .rec-main { flex: 1; min-width: 0; }
.rec-item .rec-type { font-weight: 900; font-size: 14px; }
.rec-item .rec-q { font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-item .rec-time { font-size: 11px; color: var(--ink-faint); }

/* 底部导航 */
.nav {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px;
  background: #fff; border: 3.5px solid var(--ink); border-radius: 999px;
  box-shadow: 5px 6px 0 var(--ink);
  display: flex; padding: 7px; z-index: 50;
}
.nav a {
  flex: 1; text-align: center; text-decoration: none;
  padding: 7px 0 6px; border-radius: 999px;
  font-size: 12px; font-weight: 900; color: var(--ink-faint); transition: all .16s;
  border: 2.5px solid transparent;
}
.nav a.active { background: var(--sunny); color: var(--ink); border-color: var(--ink);
  transform: translateY(-4px) rotate(-1deg); box-shadow: 3px 4px 0 var(--ink); }
.nav a span { display: block; font-size: 18px; }
.nav a.active span { transform: scale(1.1); }

/* 首页专属 */
.banner {
  padding: 0 0 4px; text-align: center; margin: -10px 0 8px; position: relative;
}
.banner h1 { font-family: 'ZCOOL KuaiLe', cursive; font-size: 38px; letter-spacing: 6px; text-indent: 6px; color: var(--ink); }
.banner p { color: var(--ink-soft); font-weight: 700; font-size: 13px; margin-top: 4px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.mod-card {
  border: var(--white-border); border-radius: var(--r-lg);
  padding: 17px 8px 13px; text-align: center; cursor: pointer;
  transition: transform .12s, box-shadow .12s; position: relative; color: #fff;
  box-shadow: var(--shadow-sticker);
}
.home-grid .mod-card:nth-child(odd) { transform: rotate(-1deg); }
.home-grid .mod-card:nth-child(even) { transform: rotate(.9deg); }
.mod-card:active { transform: translateY(5px) scale(.97) rotate(0) !important; box-shadow: 2px 2px 0 var(--ink) !important; }
.mod-card .m-icon { display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin: 0 auto 8px; font-size: 32px;
  background: #fff; border: 3px solid var(--ink);
  border-radius: 38% 62% 55% 45% / 55% 45% 60% 40%;
  box-shadow: 2.5px 3px 0 rgba(61,58,80,.4); }
.mod-card .m-icon .gi { width: 34px; height: 34px; vertical-align: middle; }
.mod-card .m-name { display: block; font-family: 'ZCOOL KuaiLe', cursive; font-size: 18px; font-weight: 400; text-shadow: 1.5px 1.5px 0 rgba(61,58,80,.35); letter-spacing: 2px; text-indent: 2px; }
.mod-card .m-sub { display: block; font-size: 10.5px; opacity: .95; margin-top: 3px; font-weight: 700; }
.mod-card .m-badge {
  position: absolute; top: -10px; right: -6px; background: var(--pink); color: #fff;
  border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  padding: 2px 9px; font-size: 10px; font-weight: 900; transform: rotate(7deg);
  animation: wig 2.2s ease-in-out infinite;
}
@keyframes wig { 0%,100%{transform:rotate(7deg)} 50%{transform:rotate(-3deg) scale(1.08)} }
.bg-tarot { background: var(--c-tarot); }
.bg-bazi { background: var(--c-bazi); }
.bg-liuyao { background: var(--c-liuyao); }
.bg-meihua { background: var(--c-meihua); }
.bg-num { background: var(--c-num); }
.bg-qian { background: var(--c-qian); }
.chips { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.chip {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.chip:active { transform: translateY(3px); box-shadow: 1px 1px 0 var(--ink); }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font-weight: 900; color: var(--ink-soft); font-size: 13px; letter-spacing: 3px; }
.sec-title::before, .sec-title::after { content: ''; flex: 1; height: 5px; border-radius: 5px;
  background: repeating-linear-gradient(90deg,#e8e2d4 0 10px,transparent 10px 18px); }
/* ---------- AI 追问快捷键(v9.9) ---------- */
.fu-zone { margin-top: 14px; padding: 12px; background: #f7f3fc; border: 2.5px dashed #c9b8e8; border-radius: var(--r-lg); }
.fu-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 900; color: var(--ink); margin-bottom: 9px; flex-wrap: wrap; }
.fu-head img { width: 26px; height: 26px; }
.fu-note { font-size: 10.5px; font-weight: 700; color: var(--ink-faint); margin-left: auto; }
.fu-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fu-chip {
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .1s, box-shadow .1s; font-family: inherit;
}
.fu-chip:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }
.fu-chip:disabled { opacity: .5; cursor: wait; }
/* v10.16 多轮追问: 自由输入 + 轮次角标 */
.fu-ask { display: flex; gap: 7px; margin-top: 10px; }
.fu-input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); }
.fu-input:focus { outline: none; border-color: #7a5fb0; }
.fu-input::placeholder { color: var(--ink-faint); font-weight: 600; }
.fu-send { flex: none; padding: 0 16px; font-size: 14px; font-weight: 900; color: #fff; cursor: pointer;
  background: #9c7bd4; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink);
  font-family: inherit; }
.fu-send:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }
.fu-round { font-size: 10.5px; font-weight: 700; color: var(--ink-faint); text-align: right; margin-top: 6px; min-height: 1em; }

.fu-item { margin-top: 10px; }
.fu-q { font-size: 12.5px; font-weight: 900; color: #7a5fb0; margin-bottom: 4px; }
.fu-q::before { content: 'Q '; opacity: .6; }
.fu-a { font-size: 13px; line-height: 1.75; color: var(--ink); background: #fff; border: 2px solid #e3d9f3; border-radius: 12px; padding: 9px 12px; }
/* ---------- 档案填入行 + TA 关系档案(v9.9) ---------- */
.fill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.rel-fill-chip { background: #fef0f4; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.rel-card { display: flex; align-items: center; gap: 9px; background: #fdf8f3; border: 2px solid #e8ddcf; border-radius: 12px; padding: 8px 11px; margin-bottom: 8px; }
.rel-emoji { font-size: 20px; flex: none; }
.rel-info { min-width: 0; flex: 1; }
.rel-info b { display: block; font-size: 13.5px; color: var(--ink); }
.rel-info small { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 1px; }
.rel-del { flex: none; background: none; border: none; color: var(--ink-faint); font-size: 14px; cursor: pointer; padding: 4px 6px; }
.rel-del:active { color: #e57373; }
/* v10.12 TA 档案编辑按钮 + 结果页回存按钮 */
.rel-edit { flex: none; background: none; border: none; color: var(--ink-faint); font-size: 14px; cursor: pointer; padding: 4px 6px; }
.rel-edit:active { color: var(--coral, #ff7e67); }
.save-ta-btn { width: 100%; }
/* ---------- 首页四分区(v9.8): 今日双入口 + 进阶折叠 ---------- */
.today-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 14px; }
.today-mini {
  display: flex; align-items: center; gap: 9px; text-align: left;
  background: #fff; border: 2.5px solid var(--ink); border-radius: var(--r-lg);
  padding: 10px 12px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .1s, box-shadow .1s; font-family: inherit; min-width: 0;
}
.today-mini:active { transform: translateY(3px); box-shadow: 1px 1px 0 var(--ink); }
.today-mini img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.today-mini span { min-width: 0; }
.today-mini b { display: block; font-size: 13.5px; color: var(--ink); }
.today-mini small { display: block; font-size: 10.5px; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-horo { background: #fdf6ec; }
.tm-daily { background: #f2f9f3; }
.adv-fold { margin-top: 18px; }
.adv-fold summary {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; padding: 9px 0; font-size: 12.5px; font-weight: 900; color: var(--ink-soft);
  letter-spacing: 2px; user-select: none;
}
.adv-fold summary::-webkit-details-marker { display: none; }
.adv-fold summary .af-arrow { transition: transform .2s; font-size: 11px; }
.adv-fold[open] summary .af-arrow { transform: rotate(180deg); }
.chip-recent { background: #fef3f1; }
.float-deco { position: absolute; font-size: 24px; opacity: .5; animation: floaty 4s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(-8deg)} 50%{transform:translateY(-13px) rotate(8deg)} }

/* 错误提示 */
.err-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-weight: 900; font-size: 14px;
  border: 3px solid var(--ink);
  padding: 11px 22px; border-radius: 999px; box-shadow: 3px 4px 0 var(--ink);
  z-index: 99; animation: rise .25s ease-out;
}

/* 免责声明 */
.disclaimer { text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 20px; line-height: 1.7; }

/* ================================================================
   虾算算 v3.1 追加: 每日一签卡片 / 补充按钮色
   ================================================================ */
.btn-orange { background: #ffa94d; box-shadow: 0 6px 0 #e07b1a, 0 6px 0 3.5px var(--ink); }
.btn-orange:active { box-shadow: 0 1px 0 #e07b1a, 0 1px 0 3.5px var(--ink); }
.btn-blue { background: var(--sky); box-shadow: 0 6px 0 var(--sky-lo), 0 6px 0 3.5px var(--ink); }
.btn-blue:active { box-shadow: 0 1px 0 var(--sky-lo), 0 1px 0 3.5px var(--ink); }
.btn-sm.btn-orange { box-shadow: 0 4px 0 #e07b1a, 0 4px 0 2.5px var(--ink); }
.btn-sm.btn-blue { box-shadow: 0 4px 0 var(--sky-lo), 0 4px 0 2.5px var(--ink); }

.daily-card { margin-bottom: 10px; }
.daily-card:empty { display: none; margin: 0; }
.daily-inner {
  background: #fff;
  border: var(--white-border); border-radius: var(--r-lg);
  box-shadow: 3px 4px 0 var(--ink);
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
/* v9.1.1 修复: 手机上左侧文案挤压按钮导致"摇一签"竖排换行 → 按钮禁止收缩与换行 */
.daily-inner .btn { flex: none; white-space: nowrap; }
.daily-inner.drawn { background: #fff8e1; }
.daily-ask {
  flex: none; white-space: nowrap; background: #fff; color: var(--ink-soft);
  border: 2px solid var(--ink); border-radius: 999px; padding: 5px 9px;
  font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .1s, box-shadow .1s; font-family: inherit;
}
.daily-ask:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }
/* v8.0 阶段4: 首页活动卡 */
.event-card { margin-bottom: 14px; }
.event-card:empty { display: none; margin: 0; }
.event-inner { background: linear-gradient(135deg, #fff4e0, #ffe8f0); }
.event-done { font-size: 12px; font-weight: 900; color: var(--ink-soft); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.daily-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.daily-icon { width: 30px; height: auto; flex: none; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(93,64,55,.2)); }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
.daily-left > div { min-width: 0; }
.daily-left b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daily-left small { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 1px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================
   v7 新增: 质感图标 / 糖果字块Logo / 扫光英文名 / 果冻主视觉 / 表情包
   ================================================================ */
/* 质感剪影图标 (game-icons mask 上色) */
.gi { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; background: var(--ink);
  -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.gi.coral { background: linear-gradient(180deg,#ff9d84 10%,var(--coral) 55%,var(--coral-lo)); }
.gi.sunny { background: linear-gradient(180deg,#ffe6a8 10%,var(--sunny) 55%,var(--sunny-lo)); }
.gi.mint { background: linear-gradient(180deg,#a8e8e3 10%,var(--mint) 55%,var(--mint-lo)); }
.gi.grape { background: linear-gradient(180deg,#d3c4ff 10%,var(--grape) 55%,var(--grape-lo)); }
.gi.pink { background: linear-gradient(180deg,#ffc2d1 10%,var(--pink) 55%,var(--pink-lo)); }
.gi.sky { background: linear-gradient(180deg,#b5e0ff 10%,var(--sky) 55%,var(--sky-lo)); }
.gi.green { background: linear-gradient(180deg,#c5e1a5 10%,var(--c-qian) 55%,var(--c-qian-d)); }
.gi.paper { background: #fff; }

/* 糖果字块 Logo(每字一块贴纸) */
.logo { display: flex; justify-content: center; gap: 10px; margin: 0 0 -8px; }
.logo .logo-img { width: 224px; max-width: 72%; height: auto; display: block;
  filter: drop-shadow(3.5px 4px 0 rgba(61,58,80,.5));
  animation: logodrop .6s cubic-bezier(.3,1.6,.4,1) both; }
@keyframes logodrop { 0%{transform:translateY(-40px) scale(.6) rotate(12deg);opacity:0}
  70%{transform:translateY(4px) scale(1.05)} 100%{opacity:1} }

/* 斜口号胶囊 */
.slogan { text-align: center; margin-bottom: 4px; }
.slogan span { display: inline-block; background: var(--ink); color: #ffe9b0; font-size: 13px; letter-spacing: 3px; text-indent: 3px;
  padding: 5px 18px; border-radius: 999px; transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 rgba(61,58,80,.25); font-weight: 700; }

/* 英文名: 渐变扫光 */
.en-line { text-align: center; margin: 0 0 6px; }
.en-name { font-family: 'Luckiest Guy', 'Baloo 2', cursive; font-size: 22px; font-weight: 400; letter-spacing: 3px; text-indent: 3px; display: inline-block;
  color: var(--coral);
  text-shadow:
    -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink),
    0 -1.5px 0 var(--ink), 0 1.5px 0 var(--ink), -1.5px 0 0 var(--ink), 1.5px 0 0 var(--ink),
    3px 3.5px 0 var(--ink);
  transform: rotate(-1deg); }
.en-line .star { display: inline-block; font-size: 13px; color: var(--sunny); -webkit-text-stroke: .8px var(--ink);
  margin: 0 8px; vertical-align: 4px; animation: twinkle 2.6s ease-in-out infinite; }
.en-line .star:last-child { animation-delay: 1.3s; }
@keyframes twinkle { 0%,100%{opacity:.35;transform:scale(.85)} 50%{opacity:1;transform:scale(1.15)} }

/* 果冻软糖主视觉(深色锚点) */
.hero-zone { position: relative; margin: 8px 0 4px; }
.hero { position: relative; width: 210px; height: 200px; margin: 0 auto; }

/* hero 两侧手游风悬浮 icon 按钮(v8.2) */
.hero-side { position: absolute; top: 8px; display: flex; flex-direction: column; gap: 12px; z-index: 3; }
.hero-side.hs-left { left: 2px; }
.hero-side.hs-right { right: 2px; }
.hero-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: inherit; animation: hbIn .45s cubic-bezier(.2,1.6,.4,1) both; }
.hero-side.hs-right .hero-btn { animation-delay: .12s; }
.hero-side.hs-left .hero-btn:nth-child(2) { animation-delay: .08s; }
@keyframes hbIn { 0%{transform:scale(.3);opacity:0} 100%{transform:scale(1);opacity:1} }
.hero-btn .hb-ic { display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: #fffdf8; border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 2.5px 3.5px 0 rgba(61,58,80,.72), inset 0 4px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(61,58,80,.12);
  transition: transform .12s ease; }
/* 糖果彩底(方案D): 每个按钮一个糖色 */
.hero-btn.hb-yellow .hb-ic { background: radial-gradient(circle at 32% 26%, #ffe58a, #ffd54f 70%); }
.hero-btn.hb-pink   .hb-ic { background: radial-gradient(circle at 32% 26%, #ffb3c0, #ff8a9b 70%); }
.hero-btn.hb-blue   .hb-ic { background: radial-gradient(circle at 32% 26%, #9edcff, #64c8ff 70%); }
.hero-btn.hb-green  .hb-ic { background: radial-gradient(circle at 32% 26%, #a9ecc9, #6fd9a2 70%); }
.hero-btn.hb-purple .hb-ic { background: radial-gradient(circle at 32% 26%, #d3c4ff, #b39bfa 70%); }
.hero-btn:active .hb-ic { transform: scale(.9) translateY(2px); box-shadow: 1px 2px 0 rgba(61,58,80,.72); }
.hero-btn .hb-ic img { width: 29px; height: 29px; object-fit: contain;
  filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.3)); }
.hero-btn .hb-label { font-size: 10.5px; font-weight: 900; color: var(--ink); letter-spacing: .5px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 7px;
  box-shadow: 1.5px 2px 0 rgba(61,58,80,.55); white-space: nowrap; }
/* 红点: 有可领奖励 */
.hero-btn.hb-dot::after { content: ''; position: absolute; top: -3px; right: 3px; width: 13px; height: 13px;
  background: radial-gradient(circle at 34% 30%, #ff9d8a, var(--coral-lo) 68%); border: 2.5px solid var(--ink);
  border-radius: 50%; z-index: 2; animation: dotPulse 1.4s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.28)} }

/* 首页悬浮按钮弹层 */
.home-pop { max-width: 360px; }
.hp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  border-bottom: 2.5px dashed #efe9db; padding-bottom: 9px; }
.hp-head img { width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.35)); }
.hp-head h3 { margin: 0; flex: 1; font-family: 'ZCOOL KuaiLe', cursive; font-size: 19px; color: var(--ink); }
.hp-close { border: 2.5px solid var(--ink); background: #f6f1e4; color: var(--ink-soft); font-weight: 900;
  width: 30px; height: 30px; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1;
  box-shadow: 2px 2.5px 0 rgba(61,58,80,.5); flex: none; }
.hp-close:active { transform: translateY(2px); box-shadow: 0 .5px 0 rgba(61,58,80,.5); }
.hp-event-card { display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fff4e0, #ffe8f0); border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px; box-shadow: 2px 3px 0 rgba(61,58,80,.35); }
.hp-event-card > img { width: 40px; height: auto; flex: none; animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.3)); }
.hp-event-card b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.hp-event-card small { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

/* 「我的」页 v8.4: 账号卡统计条 + 宫格快捷入口 */
.acct-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-soft);
  background: #f6f1e4; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px;
  box-shadow: 1.5px 2px 0 rgba(61,58,80,.4); }
.acct-stat[role="button"] { cursor: pointer; }
.acct-stat img { width: 17px; height: 18px; object-fit: contain; }
.acct-stat b { font-family: 'ZCOOL KuaiLe', cursive; font-size: 15px; color: var(--ink); }
.acct-stat small { color: var(--coral-lo); font-weight: 900; margin-left: 1px; }
.me-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.me-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  background: #fffdf8; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 4px 10px;
  box-shadow: 2.5px 3.5px 0 rgba(61,58,80,.6); font-family: inherit;
  transition: transform .12s ease; -webkit-tap-highlight-color: transparent; }
.me-tile:active { transform: scale(.94) translateY(2px); box-shadow: 1px 1.5px 0 rgba(61,58,80,.6); }
.me-tile img { width: 32px; height: 32px; object-fit: contain;
  filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.3)); }
.me-tile span { font-size: 12px; font-weight: 900; color: var(--ink); letter-spacing: .5px; }
.hero .jelly { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 164px; height: 156px;
  background: radial-gradient(circle at 32% 26%, #5a5478, #3d3a50 72%);
  border: 4px solid var(--ink);
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  box-shadow: 6px 8px 0 rgba(61,58,80,.35), inset -8px -10px 0 rgba(0,0,0,.28), inset 8px 10px 0 rgba(255,255,255,.14);
  animation: squish 3.2s ease-in-out infinite; }
.hero .jelly::after { content: ''; position: absolute; inset: 10px; border-radius: inherit;
  border: 2px dashed rgba(255,225,160,.45); }
.hero .mascot { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 156px; height: auto; z-index: 2;
  filter: drop-shadow(5px 6px 0 rgba(61,58,80,.9));
  animation: mbob 3.2s ease-in-out infinite; }
@keyframes mbob { 0%,100%{transform:translateX(-50%) translateY(0) rotate(-1.5deg)} 50%{transform:translateX(-50%) translateY(-6px) rotate(1.5deg)} }
@keyframes squish {
  0%,100%{border-radius:46% 54% 52% 48% / 54% 46% 54% 46%;transform:translate(-50%,-50%) scale(1,1)}
  35%{border-radius:52% 48% 46% 54% / 46% 54% 46% 54%;transform:translate(-50%,-52%) scale(.98,1.03)}
  70%{border-radius:48% 52% 54% 46% / 52% 48% 52% 48%;transform:translate(-50%,-49%) scale(1.03,.97)} }
.hero .h-shadow { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 16px; border-radius: 50%; background: rgba(61,58,80,.14); }
.hero .h-tag { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) rotate(2deg); white-space: nowrap;
  background: #fff; border: 2.5px solid var(--ink); color: var(--ink); font-size: 10.5px; font-weight: 700;
  padding: 3px 13px; border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); letter-spacing: 1px; text-indent: 1px; }
.hero .flo { position: absolute; font-size: 17px; animation: flo 2.6s ease-in-out infinite; }
.hero .flo-img { width: 18px; height: auto; filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.22)); }
@keyframes flo { 0%,100%{transform:translateY(0) rotate(-8deg);opacity:.9} 50%{transform:translateY(-9px) rotate(10deg);opacity:1} }

/* 表情包(结果等级出场) */
.result-emoji { display: block; width: 92px; height: auto; margin: 2px auto 8px;
  filter: drop-shadow(4px 5px 0 rgba(61,58,80,.85));
  animation: stampIn .5s cubic-bezier(.2,1.9,.4,1) .15s both; }
.result-emoji.sm { width: 64px; }
@keyframes stampIn { 0%{transform:scale(1.9) rotate(-8deg);opacity:0} 100%{transform:scale(1) rotate(0);opacity:1} }
.emoji-inline { display: inline-block; width: 30px; height: auto; vertical-align: -9px;
  filter: drop-shadow(2px 2px 0 rgba(61,58,80,.5)); }

/* 结果等级章(替代纯tag场景) */
.grade-pill { display: inline-block; color: #fff; font-family: 'ZCOOL KuaiLe', cursive; font-size: 15.5px; letter-spacing: 3px; text-indent: 3px;
  padding: 6px 24px; border-radius: 999px; transform: rotate(1deg);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  animation: stampIn .5s cubic-bezier(.2,1.9,.4,1) .3s both; }

/* 分数大数字 */
.big-score { font-family: 'Baloo 2', sans-serif; font-weight: 800; text-shadow: 3px 3px 0 var(--ink); }

/* 底栏 gi 图标与虾头 */
.nav a .nav-gi { display: block; width: 21px; height: 21px; margin: 0 auto 2px; background: var(--ink-faint);
  -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.nav a.active .nav-gi { background: var(--ink); }
.nav a .nav-img { display: block; width: 24px; height: auto; margin: 0 auto 1px; filter: grayscale(.75) opacity(.6); }
.nav a.active .nav-img { filter: none; }

/* ===== AI 解读 Markdown 排版 (mdRender) ===== */
.ai-content .md-h { font-family: 'ZCOOL KuaiLe', cursive; font-size: 16.5px; color: var(--ink);
  margin: 14px 0 6px; padding-left: 10px; border-left: 5px solid var(--sunny); line-height: 1.5; }
.ai-content .md-h:first-child { margin-top: 2px; }
.ai-content .md-p { margin: 7px 0; font-size: 14px; line-height: 2; color: var(--ink); }
.ai-content .md-ul { margin: 6px 0 10px; padding-left: 4px; list-style: none; }
.ai-content .md-ul li { position: relative; padding-left: 20px; margin: 5px 0; font-size: 14px; line-height: 1.9; }
.ai-content .md-ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }
.ai-content .md-b { color: var(--coral-lo); font-weight: 800; }
.ai-content .md-hr { border: none; border-top: 2.5px dashed #e0d8c4; margin: 12px 0; }
.ai-content .md-note { color: var(--ink-faint); font-size: 12px; }

/* ===== 记录详情: 盘面速览 ===== */
.rd-brief { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rd-chip { background: #fff; border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 5px 10px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-sm); }
.rd-chip b { color: var(--coral-lo); }
.rd-raw summary { font-size: 12px; color: var(--ink-faint); cursor: pointer; padding: 4px 0; }

/* ===== 生成图片按钮/水印 ===== */
.snap-wm { text-align: center; font-size: 12px; color: var(--ink-faint); padding: 8px 0 2px;
  font-family: 'ZCOOL KuaiLe', cursive; }

/* ===== 彩色手绘图标素材 (模块卡/chip) ===== */
.mod-card .m-icon .m-img { width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(1.5px 2px 0 rgba(61,58,80,.28)); }
.chip .chip-img { width: 22px; height: 22px; object-fit: contain; vertical-align: -6px; margin-right: 1px; }

/* ===== 记录页类型图标 ===== */
.rec-item .rec-icon img { width: 34px; height: 34px; object-fit: contain; vertical-align: middle;
  filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.25)); }
.seg-item .seg-ticon { width: 17px; height: 17px; object-fit: contain; vertical-align: -3px; margin-right: 2px; }
/* 记录页筛选器「更多/收起」按钮: 虚线边框区分于类型标签, 不参与选中态 */
.seg .seg-item.seg-more { border-style: dashed; color: var(--ink-faint); background: transparent; }
#rec-rest { display: contents; }
.panel .p-ic { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; margin-right: 5px; opacity: .85; }
.btn .btn-emoji { width: 24px; height: 24px; object-fit: contain; vertical-align: -6px; margin-right: 3px;
  filter: drop-shadow(1px 1.5px 0 rgba(61,58,80,.45)); }

/* ================= 分享卡片弹层 ================= */
.share-mask {
  position: fixed; inset: 0; z-index: 999; background: rgba(40,36,60,.62);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadein .2s ease-out;
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.share-pop {
  background: #fffdf8; border: 3.5px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 14px; max-width: 340px; width: 100%;
  max-height: 92vh; overflow-y: auto;
}
.share-pop > img {
  width: 100%; border-radius: var(--r-md); border: 2.5px solid var(--ink); display: block;
}
/* v9.4.1: 支持 2-3 个按钮自适应换行, 文字不折行不挤压 */
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-btns .btn { flex: 1 1 45%; min-width: 130px; text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  white-space: nowrap; padding-left: 10px; padding-right: 10px;
  font-size: 15px; letter-spacing: 1px; text-indent: 1px; }
.share-btns .btn .btn-emoji { flex: 0 0 auto; }

/* ================= 仪式感加载(洗牌虾/抛铜钱虾) ================= */
.rite-loading { text-align: center; padding: 16px 12px 12px; color: var(--grape-lo); font-weight: 700; }
.rite-loading img { display: block; width: 118px; height: auto; margin: 0 auto 6px;
  filter: drop-shadow(3px 4px 0 rgba(61,58,80,.55)); animation: ritewig .55s ease-in-out infinite; }
@keyframes ritewig { 0%,100%{transform:rotate(-6deg) translateY(0)} 50%{transform:rotate(6deg) translateY(-5px)} }
.rite-loading .dots::after { content: ''; animation: dots 1.2s steps(1) infinite; }

/* 摇签时签筒换成虾抱签筒表情, 稍大一点 */
.qian-tube.tube-live { width: 170px; }

/* AI 解读完毕点赞虾脚注 */
.ai-done { display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--grape-lo); }
.ai-done img { width: 40px; height: auto; filter: drop-shadow(2px 2.5px 0 rgba(61,58,80,.5));
  animation: bob 1.6s ease-in-out infinite; }

/* ---------- 管理后台 ---------- */
.adm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.adm-stat { background: #fdf6e3; border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px 4px; text-align: center; box-shadow: 2px 3px 0 rgba(61,58,80,.35); }
.adm-num { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; color: #d96a3b; line-height: 1.1; }
.adm-label { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.adm-label small { color: var(--ink-faint); font-size: 9px; }
.adm-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.adm-bar-name { flex: 0 0 88px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.adm-bar-track { flex: 1; height: 14px; background: #f3ecd9; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.adm-bar-fill { height: 100%; background: linear-gradient(90deg, #ffb56b, #ff7e67); border-radius: 5px; }
.adm-bar-n { flex: 0 0 34px; text-align: right; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px; }
.adm-trend { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; padding: 4px 0; }
.adm-day { flex: 1; min-width: 26px; text-align: center; }
.adm-day-col { background: linear-gradient(180deg, #b79ce8, #8a76c9); border: 2px solid var(--ink); border-radius: 6px 6px 0 0; margin: 0 auto; width: 70%; }
.adm-day-lbl { font-size: 9px; color: var(--ink-faint); margin-top: 3px; white-space: nowrap; }
.adm-day-n { font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
/* v7.5: 窄屏防挤——表格单元不换行+容器横滚, 长文本截断 */
.adm-table td, .adm-table th { white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.panel:has(> .adm-table) { overflow-x: auto; }
.adm-table td { padding: 6px 2px; border-bottom: 1.5px dashed #e5dcc3; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-user { background: #fdf6e3; border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 2px 3px 0 rgba(61,58,80,.3); }
.adm-user-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.adm-user-email { font-size: 12px; color: var(--ink-faint); word-break: break-all; }
.adm-user-meta { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }

/* ---------- v7.4: 公告横幅 / 词云 / 漏斗 ---------- */
/* v7.5: 公告顶部飘过条 — fixed 不占版面不遮 logo, 文字循环滚动 */
.announce-marquee { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(61,58,80,.92); color: #ffe9b8; font-size: 13px; box-shadow: 0 2px 8px rgba(61,58,80,.35); animation: annDrop .4s ease; }
@keyframes annDrop { from { transform: translateY(-100%); } to { transform: none; } }
.announce-icon { flex: 0 0 auto; font-size: 15px; }
.announce-track { flex: 1; overflow: hidden; white-space: nowrap; }
.announce-run { display: inline-block; padding-left: 100%; animation: annRun linear infinite; }
@keyframes annRun { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.announce-link { color: #8fd3ff; text-decoration: underline; cursor: pointer; font-weight: 700; }
.announce-x { flex: 0 0 auto; background: none; border: none; font-size: 14px; color: rgba(255,233,184,.7); cursor: pointer; padding: 2px 6px; }
body:has(.announce-marquee) #app { padding-top: 48px; }

/* v7.5: 运势日历 */
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-soft); background: #faf5e9; }
.cal-empty { background: none; }
.cal-lit { background: #fff3d6; border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(61,58,80,.3); cursor: pointer; font-weight: 700; color: var(--ink); }
.cal-lit:active { transform: translateY(1px); box-shadow: 1px 1px 0 rgba(61,58,80,.3); }
.cal-today { outline: 2.5px dashed #e8890c; outline-offset: -2.5px; }
.cal-num { line-height: 1.1; }
.cal-marks { font-size: 10px; line-height: 1; min-height: 12px; }
.cal-marks b { color: #7a5fb8; }

/* v7.5: 功能互推卡 */
.cross-rec { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: #eef7ee; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 4px 0 rgba(61,58,80,.35); cursor: pointer; transition: transform .12s; }
.cross-rec:active { transform: translateY(2px); box-shadow: 1px 2px 0 rgba(61,58,80,.35); }
.cross-rec-icon { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.cross-rec-icon-emoji { font-size: 30px; flex: 0 0 auto; }
.cross-rec-txt { flex: 1; line-height: 1.35; }
.cross-rec-txt small { display: block; font-size: 11px; color: var(--ink-faint); }
.cross-rec-txt b { font-size: 13.5px; color: var(--ink); }
.cross-rec-go { font-size: 18px; font-weight: 900; color: #5a9e5a; }
.adm-cloud { margin-top: 10px; padding: 10px; background: #fdf6e3; border: 2px dashed #d9cfb3; border-radius: 12px; line-height: 2; text-align: center; }
.adm-word { display: inline-block; margin: 0 4px; font-weight: 700; color: #7a5fb8; }
.adm-funnel { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.adm-funnel-step { background: linear-gradient(90deg, #ffd28a, #ff9e6b); border: 2.5px solid var(--ink); border-radius: 10px; padding: 7px 12px; font-size: 13px; box-shadow: 2px 3px 0 rgba(61,58,80,.35); box-sizing: border-box; }
.adm-funnel-step small { color: rgba(61,58,80,.65); }

/* ================= 去emoji图标类 (v7.7) ================= */
.err-toast .toast-ic { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 5px; }
.seg-item .seg-ic { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 2px; }
.streak-chip .chip-ic { width: 13px; height: 13px; object-fit: contain; vertical-align: -2px; margin-right: 1px; filter: brightness(0) invert(1); }
.cal-marks .cal-ic { width: 14px; height: 14px; object-fit: contain; vertical-align: -3px; }
.hint .cal-ic { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 1px; }
.tc-back { display: flex; align-items: center; justify-content: center; aspect-ratio: 7/12;
  font-size: 42px; font-weight: 900; color: #b8a8e0; line-height: 1; }

/* ---------- 深度解析(v9.0): 神秘紫金档 ---------- */
.deep-entry { margin-top: 12px; }
.deep-btn { background: linear-gradient(135deg, #5d4a9c, #8f7cc9); color: #fff;
  box-shadow: 0 6px 0 #3d2f6e, 0 6px 0 3.5px var(--ink); position: relative; overflow: hidden; }
.deep-btn::after { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: deep-shine 3.2s ease-in-out infinite; }
@keyframes deep-shine { 0%, 60% { left: -75%; } 100% { left: 125%; } }
.deep-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #3d2f6e, 0 3px 0 2.5px var(--ink); }
/* v9.4.1: 价格角标独立一行居中, 不再和标题挤同一行导致随机断行 */
.deep-price { display: block; width: fit-content; margin: 6px auto 0;
  font-size: 12px; font-weight: 800; background: rgba(255,255,255,.22);
  border-radius: 10px; padding: 2px 10px; letter-spacing: .5px; text-indent: 0; }
.deep-price:empty { display: none; }
.deep-note { text-align: center; font-size: 11.5px; color: #a08cc9; margin-top: 7px; letter-spacing: .3px; }
.deep-loading { text-align: center; padding: 20px 12px 16px; color: var(--grape-lo); font-weight: 700;
  background: linear-gradient(180deg, #f3effc, #ece5fa); border-radius: 16px; border: 2.5px solid #d8ccf0; }
.deep-loading img { display: block; width: 108px; height: auto; margin: 0 auto 8px;
  filter: drop-shadow(2px 3px 0 rgba(61,58,80,.45)); animation: deep-float 2.6s ease-in-out infinite; }
@keyframes deep-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.deep-phase { min-height: 22px; }
.deep-bar { height: 8px; background: #ddd2f2; border-radius: 6px; margin: 10px auto 2px; max-width: 260px; overflow: hidden; }
.deep-bar i { display: block; height: 100%; width: 12%; border-radius: 6px;
  background: linear-gradient(90deg, #8f7cc9, #ffa94d); transition: width 1.2s ease; }
.deep-result { margin-top: 12px; background: linear-gradient(180deg, #f6f2ff, #efe9fb);
  border: 2.5px solid #c9b8ec; border-radius: 16px; padding: 14px 14px 12px; }
.deep-head { display: flex; align-items: center; gap: 8px; font-weight: 900; color: var(--grape-lo);
  margin-bottom: 8px; font-family: 'ZCOOL KuaiLe', cursive; letter-spacing: 1px; }
.deep-head img { width: 26px; height: auto; }
.deep-badge { font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, #5d4a9c, #8f7cc9); border-radius: 8px; padding: 2px 8px; margin-left: auto; }

/* ===== v10.5.3: 微信/QQ 内置浏览器引导蒙层 ===== */
.wx-guide-mask { position: fixed; inset: 0; z-index: 3000;
  background: rgba(30,27,45,.9); backdrop-filter: blur(3px);
  animation: wx-fade-in .25s ease; }
@keyframes wx-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wx-guide-arrow { position: absolute; top: 10px; right: 22px;
  font-size: 52px; color: #ffd166; line-height: 1;
  transform: rotate(12deg);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  animation: wx-arrow-bounce 1.2s ease-in-out infinite; }
@keyframes wx-arrow-bounce { 0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-9px); } }
.wx-guide-body { position: absolute; top: 108px; left: 50%;
  transform: translateX(-50%); width: min(320px, 84vw);
  background: linear-gradient(180deg, #fffdf6, #fdf5e6);
  border: 3px solid var(--ink, #3d3a50); border-radius: 20px;
  padding: 22px 20px 20px; text-align: center;
  box-shadow: 6px 8px 0 rgba(0,0,0,.35);
  animation: wx-pop .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes wx-pop { from { transform: translateX(-50%) scale(.85); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; } }
.wx-guide-body img { width: 64px; height: auto; margin: 0 auto 8px; display: block;
  filter: drop-shadow(2px 3px 0 rgba(61,58,80,.35)); }
.wx-guide-body h4 { font-family: 'ZCOOL KuaiLe', cursive; font-size: 19px;
  color: var(--ink, #3d3a50); margin: 0 0 8px; letter-spacing: 1px; }
.wx-guide-body p { font-size: 14px; color: #6b6480; line-height: 1.75; margin: 0 0 14px; }
.wx-guide-body p b { color: #f0810f; }

/* ===== v10.6 #9: 应期回访 ===== */
.fu-card { background: #fdfaf2; border: 3px solid var(--ink); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink);
  box-shadow: var(--shadow-sm); }
.fu-card .hint { font-size: 12px; color: var(--ink-faint); font-weight: 700; margin-top: 3px; }
.fu-card.fu-due { background: #fff3df; border-color: #e07b1a;
  box-shadow: 3px 3px 0 #e07b1a; animation: fu-due-pulse 2s ease-in-out infinite; }
@keyframes fu-due-pulse { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
.fu-card.fu-done { display: flex; align-items: center; gap: 10px;
  background: #f5f3fa; box-shadow: none; border-color: var(--ink-faint); }
.fu-card.fu-done img { width: 40px; height: 40px; object-fit: contain; flex: none;
  filter: drop-shadow(1.5px 2px 0 rgba(61,58,80,.3)); }
.fu-answer-btns { display: flex; gap: 8px; }
.fu-answer-btns .btn { flex: 1; padding-left: 4px; padding-right: 4px; }
/* 进站到期横幅 */
.fu-banner { position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(452px, calc(100vw - 20px)); z-index: 2500;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #fffdf6, #fff3df);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 10px 34px 10px 12px;
  box-shadow: 4px 5px 0 var(--ink);
  animation: fu-banner-in .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes fu-banner-in { from { transform: translateX(-50%) translateY(-80px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.fu-banner > img { width: 44px; height: 44px; object-fit: contain; flex: none;
  filter: drop-shadow(1.5px 2px 0 rgba(61,58,80,.3)); }
.fu-banner-txt { flex: 1; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); font-weight: 700; }
.fu-banner-txt b { display: block; font-family: 'ZCOOL KuaiLe', cursive; font-size: 15px;
  color: #e07b1a; letter-spacing: 1px; }
.fu-banner .btn { flex: none; }
.fu-banner-x { position: absolute; top: 4px; right: 8px; background: none; border: none;
  font-size: 20px; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 4px; }
/* 我的页 · 灵验率面板 */
.fu-rate { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fu-rate b { font-family: 'ZCOOL KuaiLe', cursive; font-size: 44px; line-height: 1;
  color: var(--coral); text-shadow: 2.5px 2.5px 0 rgba(61,58,80,.18); }
.fu-rate b small { font-size: 20px; }
.fu-rate span { font-size: 13px; font-weight: 900; color: var(--ink); line-height: 1.5; }
.fu-rate span small { font-weight: 700; color: var(--ink-faint); }
.fu-group-title { font-size: 12.5px; font-weight: 900; color: var(--ink-soft);
  margin: 12px 0 6px; letter-spacing: .5px; }
.fu-item { display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fdfaf2; border: 2.5px solid var(--ink); border-radius: 13px;
  padding: 8px 10px; margin-bottom: 7px;
  box-shadow: 2px 2.5px 0 rgba(61,58,80,.5); transition: transform .12s; }
.fu-item:active { transform: scale(.97); }
.fu-item-type { flex: none; font-size: 10.5px; font-weight: 900; color: #fff;
  background: var(--grape); border: 2px solid var(--ink); border-radius: 8px;
  padding: 1.5px 7px; letter-spacing: .5px; }
.fu-item-q { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-item-date { flex: none; font-size: 12px; font-weight: 800; color: var(--ink-faint); }
.fu-item-go { flex: none; font-size: 12px; font-weight: 900; color: #e07b1a; }

/* ===== v10.6 #10: 虾币小卖部 ===== */
.shop-card { position: relative; overflow: visible; }
.shop-tag { position: absolute; top: -12px; right: 14px;
  font-family: 'ZCOOL KuaiLe', cursive; font-size: 12.5px; letter-spacing: 1px;
  color: #fff; background: var(--coral); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 3px 12px; transform: rotate(3deg);
  box-shadow: 2px 2.5px 0 var(--ink); }
.shop-report { white-space: normal; }
.shop-report .md-h { margin-top: 18px; }

/* ===== v10.7: 管理后台 Tab 分页 ===== */
.adm-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto;
  position: sticky; top: 0; z-index: 100; background: var(--cream); padding: 6px 0; }
.adm-tab { flex: 1; white-space: nowrap; font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 13.5px; letter-spacing: .5px; color: var(--ink-soft);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 7px 10px; cursor: pointer; box-shadow: 2px 2.5px 0 rgba(61,58,80,.45);
  transition: transform .12s; }
.adm-tab:active { transform: scale(.95); }
.adm-tab.on { background: var(--grape); color: #fff; box-shadow: 2px 2.5px 0 var(--ink); }

/* ===== v10.8: 支付宝充值套餐 ===== */
.pay-pkgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-pkg { position: relative; overflow: visible; cursor: pointer;
  background: #fffdf6; border: 3px solid var(--ink); border-radius: var(--r-md);
  padding: 14px 8px 10px; text-align: center;
  box-shadow: 3px 3.5px 0 rgba(61,58,80,.55); transition: transform .12s; }
.pay-pkg:active { transform: scale(.95); }
.pay-pkg b { display: block; font-family: 'ZCOOL KuaiLe', cursive; font-size: 26px;
  color: var(--coral); line-height: 1.1; }
.pay-pkg small { font-size: 11px; color: var(--ink-faint); font-weight: 800; }
.pay-pkg-yuan { display: block; margin-top: 6px; font-size: 14px; font-weight: 900;
  color: var(--ink); background: var(--sunny); border: 2px solid var(--ink);
  border-radius: 999px; padding: 2px 0; }
.pay-pkg-tag { position: absolute; top: -10px; right: -4px;
  font-size: 10px; font-weight: 900; color: #fff; background: var(--coral);
  border: 2px solid var(--ink); border-radius: 999px; padding: 2px 8px;
  transform: rotate(4deg); box-shadow: 1.5px 2px 0 var(--ink); }

/* ===== v10.9 毒舌辣度三档选择器 (v10.11: 单排不换行 + 辣椒图标) ===== */
.spice-row{display:flex;align-items:center;gap:5px;margin-top:10px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
.spice-label{font-size:12px;color:var(--ink-soft);margin-right:2px;flex-shrink:0}
.spice-opt{border:1.5px solid var(--line,#e8dfc8);background:#fffdf6;border-radius:999px;
  padding:4px 8px;font-size:12px;color:var(--ink-soft);cursor:pointer;font-family:inherit;
  transition:all .15s;display:inline-flex;align-items:center;gap:1px;flex-shrink:0}
.chili-ic{width:13px;height:13px;object-fit:contain;margin-right:1px}
.spice-opt.on .chili-ic{filter:brightness(1.15) drop-shadow(0 0 1px rgba(255,255,255,.6))}
.spice-opt.on{background:var(--coral,#ff7f6b);border-color:var(--coral,#ff7f6b);color:#fff;font-weight:700}
.spice-opt:not(.on):hover{border-color:var(--coral,#ff7f6b);color:var(--coral,#ff7f6b)}

/* ===== v10.10: 解析结尾分享钩子(情绪高点触发) ===== */
.share-nudge { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px;
  background: #fff4e0; border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 4px 0 rgba(61,58,80,.35); cursor: pointer; transition: transform .12s; }
.share-nudge:active { transform: scale(.97); }
.share-nudge img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(1.5px 2px 0 rgba(61,58,80,.3)); }
.share-nudge-txt { flex: 1; min-width: 0; }
.share-nudge-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.share-nudge-txt small { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; }
.share-nudge-go { font-size: 18px; font-weight: 900; color: var(--coral); flex-shrink: 0; }

/* ===== v10.10: 结论前置判词胶囊 ===== */
.verdict-pill { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px;
  padding: 8px 14px; background: var(--sunny, #ffd94a); border: 2.5px solid var(--ink);
  border-radius: 999px; box-shadow: 3px 3.5px 0 rgba(61,58,80,.4);
  font-weight: 900; font-size: 14.5px; color: var(--ink); width: fit-content; max-width: 100%; }
.verdict-pill img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.verdict-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== v10.13 P0-1: 首页新客CTA条 ===== */
.first-cta-card {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin: 12px 14px 0; padding: 10px 34px 10px 12px;
  background: linear-gradient(105deg, #fff3d6, #ffe3d1);
  border: 2.5px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 5px 0 rgba(61,58,80,.5);
}
.first-cta-card > img { width: 46px; flex-shrink: 0; filter: drop-shadow(2px 2.5px 0 rgba(61,58,80,.45)); }
.first-cta-card .fc-txt { flex: 1; font-size: 13px; line-height: 1.45; color: var(--ink); min-width: 0; }
.first-cta-card .fc-go { flex-shrink: 0; white-space: nowrap; }
.first-cta-card .fc-close {
  position: absolute; top: 2px; right: 6px; border: 0; background: none;
  font-size: 18px; font-weight: 900; color: var(--ink-faint); cursor: pointer; padding: 2px 4px;
}

/* ===== v10.13 P1: 底部导航"记录"到期回访红点 ===== */
.nav a { position: relative; }
.nav a.nav-dot-on::after {
  content: ''; position: absolute; top: 4px; right: 22%;
  width: 9px; height: 9px; border-radius: 50%;
  background: #e64a3b; border: 1.5px solid #fff;
  box-shadow: 1px 1.5px 0 rgba(61,58,80,.4);
}
