/* ================================================================
   虾算算 🦐 · 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;
  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; }

/* 面板卡片: 白贴纸 */
.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;
  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; 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; 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; }
.hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* 选项胶囊组 */
.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; 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; }

/* 塔罗卡 */
.tarot-spread { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tarot-card {
  width: 104px; background: #fff;
  border: 3px solid var(--ink); border-radius: 14px; padding: 10px 8px;
  text-align: center; box-shadow: 4px 4px 0 var(--ink);
  animation: flipIn .5s ease-out backwards;
}
.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-art { font-size: 38px; padding: 8px 0; }
.tarot-card .tc-art img { display: block; width: 100%; max-width: 130px; margin: 0 auto; border-radius: 8px;
  border: 2px solid var(--ink); box-shadow: 2.5px 3px 0 rgba(61,58,80,.3); }
.tarot-card.rev .tc-art { transform: rotate(180deg); }
.tarot-card .tc-pos { font-size: 10px; color: var(--grape-lo); font-weight: 700; }
.tarot-card .tc-name { font-size: 13px; font-weight: 900; color: var(--ink); }
.tarot-card .tc-ori { font-size: 11px; font-weight: 900; }
.tarot-card .tc-ori.up { color: #689f38; } .tarot-card .tc-ori.down { color: var(--coral-lo); }
.tarot-card .tc-kw { font-size: 10px; color: var(--grape-lo); margin-top: 3px; }

/* 灵签 */
.qian-poem {
  font-family: 'ZCOOL KuaiLe', cursive; font-size: 20px; line-height: 1.9;
  text-align: center; color: #5d4037; letter-spacing: 2px;
  background: #fdf6ec; border-radius: var(--r-md); padding: 16px 10px;
  border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
}
/* 摇签动画 */
.qian-tube { font-size: 84px; text-align: center; display: block; }
.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-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)} }
/* 结果页顶部铃铛横幅: 图为底, 文字压在缎带中央 */
.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: 38%; transform: translate(-50%,-50%);
  width: 72%; text-align: center; font-family: 'ZCOOL KuaiLe', cursive; color: #fff;
  font-size: 21px; letter-spacing: 3px; 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: 8px 0 6px; text-align: center; margin-bottom: 14px; position: relative;
}
.banner h1 { font-family: 'ZCOOL KuaiLe', cursive; font-size: 38px; letter-spacing: 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; }
.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); }
.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: 14px; }
.daily-inner {
  background: #fff;
  border: var(--white-border); border-radius: var(--r-lg);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.daily-inner.drawn { background: #fff8e1; }
.daily-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.daily-icon { font-size: 30px; flex: none; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
.daily-left b { display: block; font-size: 14px; color: var(--ink); }
.daily-left small { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.5; 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: 4px 0 10px; }
.logo .logo-img { width: 268px; max-width: 82%; height: auto; display: block;
  filter: drop-shadow(4px 5px 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: 6px; }
.slogan span { display: inline-block; background: var(--ink); color: #ffe9b0; font-size: 13px; letter-spacing: 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 12px; }
.en-name { font-family: 'Luckiest Guy', 'Baloo 2', cursive; font-size: 22px; font-weight: 400; letter-spacing: 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 { position: relative; width: 210px; height: 200px; margin: 8px auto 4px; }
.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; }
.hero .flo { position: absolute; font-size: 17px; animation: flo 2.6s ease-in-out infinite; }
@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;
  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; }
.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)); }
