:root {
  --bg: #fdf6ea;
  --card: #ffffff;
  --ink: #4a3b32;
  --ink-soft: #8a7766;
  --yellow: #f7d774;
  --pink: #f4a8a8;
  --pink-deep: #ec7c86;
  --blue: #7fa8de;
  --line: #f0e4d2;
  --accent: #f4a8a8;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(120, 90, 60, .10);
  --toon-border: 2px solid #4a3b32;
  --toon-shadow: 0 4px 0 #4a3b32;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  /* 黄色格子布背景，呼应产品照片 */
  background-image:
    linear-gradient(90deg, rgba(247, 215, 116, .16) 50%, transparent 50%),
    linear-gradient(rgba(247, 215, 116, .16) 50%, transparent 50%);
  background-size: 28px 28px;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: rgba(253, 246, 234, .92); position: relative; }
.page { display: none; padding: 64px 18px 40px; animation: fadeIn .35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 按钮 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 14px 18px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.97); }
.btn + .btn { margin-top: 10px; }
.btn-big { padding: 17px 20px; font-size: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #2e241e; }
.btn-primary:active { box-shadow: 0 2px 0 #2e241e; transform: translateY(4px); }
.btn-buy {
  background: linear-gradient(135deg, #ff9aa2, #ec7c86); color: #fff;
  box-shadow: 0 6px 0 #c95c67, 0 10px 24px rgba(236, 124, 134, .35);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn-buy:active { box-shadow: 0 2px 0 #c95c67; transform: translateY(4px); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.btn-outline { background: #fff; border: 2px solid var(--pink-deep); color: var(--pink-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); font-weight: 600; }
.price { font-size: .85em; background: rgba(255,255,255,.25); padding: 1px 10px; border-radius: 999px; display: inline-flex; align-items: baseline; gap: 6px; }
.price-old { font-size: .85em; font-weight: 600; opacity: .85; text-decoration-thickness: 2px; }
.price-now { font-weight: 800; }
.buy-save { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--pink-deep); }
.modal-price { font-size: 22px; color: var(--pink-deep); margin-bottom: 4px; }
.modal-price .price-old { color: var(--ink-soft); margin-right: 8px; font-size: 16px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; box-shadow: var(--shadow); flex: none; }
.icon-btn:disabled { opacity: .3; }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero-badge { display: inline-block; background: var(--yellow); padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: 32px; line-height: 1.3; margin: 14px 0 6px; letter-spacing: 1px; }
.hero h1 .brand-name { color: var(--pink-deep); }
.hero-sub { color: var(--ink-soft); font-size: 14px; }
.hero-stack { position: relative; height: 220px; margin: 22px auto 24px; max-width: 340px; }
.hero-stack .doll-img { position: absolute; width: 130px; height: 130px; border-radius: 28px; border: var(--toon-border); box-shadow: var(--toon-shadow); animation: float 3.6s ease-in-out infinite; }
.hero-stack .doll-img:nth-child(1) { left: 0; top: 56px; rotate: -9deg; animation-delay: -.4s; }
.hero-stack .doll-img:nth-child(2) { left: 50%; top: 0; margin-left: -80px; width: 160px; height: 160px; z-index: 2; animation-delay: -1.2s; }
.hero-stack .doll-img:nth-child(3) { right: 0; top: 60px; rotate: 8deg; animation-delay: -2s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.section { margin-top: 34px; }
.section-title { font-size: 20px; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* 透明抠图小崽：柔和底色 + 地面阴影 */
.doll-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--doll-bg, #f6e7d6) 78%); }
.doll-img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 60, 40, .22), transparent); }
.doll-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 6%;
  filter: drop-shadow(0 4px 4px rgba(90, 60, 40, .16)); }
.g-item { background: #fff; border-radius: 18px; padding: 6px 6px 8px; text-align: center; border: var(--toon-border); box-shadow: var(--toon-shadow); transition: transform .15s; }
.g-item:hover { transform: translateY(-3px) rotate(-1deg); }
.g-item b { display: block; font-size: 13px; margin-top: 4px; line-height: 1.3; }
.g-item small { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.3; margin-top: 2px; }
.buy-strip { text-align: center; background: #fff; border-radius: var(--radius); padding: 18px; border: var(--toon-border); box-shadow: var(--toon-shadow); }
.buy-strip p { margin-bottom: 10px; color: var(--ink-soft); font-size: 14px; }
.footer { text-align: center; color: var(--ink-soft); font-size: 12px; margin-top: 30px; }

/* ---------- 答题 ---------- */
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.progress { flex: 1; height: 12px; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.06); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--pink)); border-radius: 999px; transition: width .35s ease; }
.progress-text { font-size: 13px; color: var(--ink-soft); font-weight: 700; min-width: 40px; text-align: right; }
.quiz-card { background: #fff; border-radius: var(--radius); padding: 26px 20px 22px; border: var(--toon-border); box-shadow: var(--toon-shadow); }
.quiz-card.swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.quiz-num { display: inline-block; background: var(--yellow); font-weight: 800; padding: 2px 12px; border-radius: 999px; font-size: 13px; }
.quiz-q { font-size: 21px; line-height: 1.45; margin: 14px 0 22px; }
.quiz-options { display: grid; gap: 12px; }
.opt {
  text-align: left; padding: 16px 16px; border-radius: 16px; background: var(--bg);
  border: 2px solid #4a3b32; box-shadow: 0 3px 0 #4a3b32; font-size: 16px; display: flex; gap: 12px; align-items: center;
  transition: border-color .15s, background .15s, transform .12s;
}
.opt .opt-key { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.opt:hover { border-color: var(--pink); }
.opt.selected { border-color: var(--pink-deep); background: #fff0f1; }
.opt.selected .opt-key { background: var(--pink-deep); color: #fff; }
.quiz-peek { display: flex; justify-content: center; margin-top: 30px; }
.quiz-peek .doll-img { width: 110px; border-radius: 50%; border: var(--toon-border); box-shadow: var(--toon-shadow); animation: float 3s ease-in-out infinite; }

/* ---------- 拆盒动画 ---------- */
.loading-wrap { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.box { position: relative; width: 140px; height: 140px; animation: shake .5s ease-in-out infinite; }
.box-body { position: absolute; bottom: 0; width: 140px; height: 110px; border-radius: 14px; background: repeating-linear-gradient(90deg, #f4a8a8 0 18px, #f8c4c4 18px 36px); display: grid; place-items: center; box-shadow: var(--shadow); }
.box-body span { font-size: 54px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 var(--pink-deep); }
.box-lid { position: absolute; top: 8px; left: -8px; width: 156px; height: 34px; border-radius: 10px; background: var(--pink-deep); z-index: 2; animation: lid 1s ease-in-out infinite; }
.box-lid::after { content: ""; position: absolute; left: 50%; top: -14px; width: 36px; height: 20px; margin-left: -18px; border: 6px solid var(--yellow); border-bottom: 0; border-radius: 18px 18px 0 0; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes lid { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px) rotate(-4deg); } }
.loading-text { margin-top: 26px; font-weight: 700; color: var(--ink-soft); }

/* ---------- 结果 ---------- */
#page-result { padding-bottom: 110px; }
.result-head { text-align: center; padding: 22px 16px 22px; border-radius: 28px; background: linear-gradient(180deg, var(--accent) 0%, #fff 70%); border: var(--toon-border); box-shadow: var(--toon-shadow); position: relative; overflow: hidden; }
.result-head::before, .result-head::after { content: "✦"; position: absolute; color: #fff; font-size: 26px; text-shadow: 0 2px 0 rgba(74,59,50,.15); animation: twinkle 2.4s ease-in-out infinite; }
.result-head::before { left: 26px; top: 70px; }
.result-head::after { right: 30px; top: 150px; font-size: 18px; animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .4; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.result-pre { font-size: 14px; color: var(--ink); opacity: .8; }
.result-img-wrap { position: relative; width: 260px; height: 260px; margin: 6px auto 8px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.result-img-wrap::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); }
.result-img-wrap::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 3%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(90,60,40,.28), transparent); }
.result-img-wrap img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(90,60,40,.22)); }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.result-type { display: inline-block; font-weight: 800; letter-spacing: 1px; background: var(--ink); color: #fff; padding: 3px 16px; border-radius: 999px; font-size: 15px; }
.result-name { font-size: 34px; margin-top: 6px; }
.result-tagline { color: var(--pink-deep); font-weight: 600; font-size: 14px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.tag { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; }

.card { background: #fff; border-radius: var(--radius); padding: 20px 18px; margin-top: 16px; border: var(--toon-border); box-shadow: var(--toon-shadow); }
.card-title { font-size: 17px; margin-bottom: 10px; }
.card-title::before { content: ""; display: inline-block; width: 6px; height: 16px; background: var(--pink); border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.buy-card { text-align: center; border: 2.5px dashed var(--pink-deep); box-shadow: none; background: #fffafa; }
.buy-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.buy-hint { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }
.result-desc { font-size: 15px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pc h4 { font-size: 14px; margin-bottom: 4px; }
.pc ul { list-style: none; font-size: 13px; color: var(--ink-soft); }
.pc li::before { content: "· "; }

.dim { margin-bottom: 14px; }
.dim:last-child { margin-bottom: 0; }
.dim-labels { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.dim-labels .dim-name { color: var(--ink-soft); font-size: 12px; }
.dim-labels .on { font-weight: 800; color: var(--pink-deep); }
.dim-bar { height: 12px; background: #f3ece2; border-radius: 999px; position: relative; overflow: hidden; }
.dim-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--yellow), var(--pink)); border-radius: 999px; transition: width .8s ease; }

.partner { display: flex; gap: 14px; align-items: center; }
.partner .doll-img { width: 88px; flex: none; border-radius: 18px; border: var(--toon-border); }
.partner h3 { font-size: 15px; }
.partner p { font-size: 13px; color: var(--ink-soft); }
.partner b { color: var(--pink-deep); }
.actions .btn + .btn { margin-top: 6px; }

.sticky-buy {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgba(0,0,0,.08); z-index: 10;
}
.sticky-info { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.sticky-info img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex: none; background: var(--accent); padding: 2px; }
.sticky-info b { color: var(--pink-deep); }
.sticky-buy .btn { width: auto; padding: 11px 22px; font-size: 15px; animation: none; box-shadow: 0 4px 0 #c95c67; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(40, 30, 25, .55); }
.modal-box { position: relative; width: 100%; max-width: 380px; max-height: 90vh; overflow: auto; background: #fff; border-radius: 24px; padding: 24px 20px 20px; text-align: center; animation: pop .35s ease; }
.modal-box h3 { font-size: 19px; margin-bottom: 12px; }
.modal-close { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; font-size: 26px; color: var(--ink-soft); }
.modal-tip { font-size: 13px; color: var(--ink-soft); margin: 10px 0 12px; }
.share-img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.buy-row { background: var(--bg); border-radius: 14px; padding: 12px; margin-top: 10px; text-align: left; font-size: 14px; }
.buy-row b { display: block; margin-bottom: 6px; }
.buy-row .copy-line { display: flex; gap: 8px; align-items: center; }
.buy-row code { flex: 1; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; word-break: break-all; font-family: inherit; }
.buy-row .btn { width: auto; padding: 6px 14px; font-size: 13px; margin: 0; }
.buy-qr { width: 180px; margin: 6px auto 0; border-radius: 12px; }
.buy-empty { font-size: 14px; color: var(--ink-soft); }

.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(20px); background: rgba(40,30,25,.88); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 481px) {
  .app { box-shadow: 0 0 40px rgba(120, 90, 60, .12); }
}

/* ---------- 语言切换（固定在顶部，所有页面可见） ---------- */
.lang-bar {
  position: fixed; top: 10px; left: max(10px, calc(50% - 230px)); z-index: 40;
  display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink), 0 8px 20px rgba(0,0,0,.12);
}
.lang-globe { font-size: 18px; margin-right: 4px; }
.lang-btn { white-space: nowrap; min-width: 46px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink); transition: background .15s, color .15s; }
.lang-btn:hover { background: #fdf0e6; }
.lang-btn.active { background: var(--pink-deep); color: #fff; }

/* 购买按钮：文字在上，价格在下，长文字（法语）也不挤 */
.btn-stack { flex-direction: column; gap: 4px; line-height: 1.25; text-align: center; }
.btn-stack .price { background: rgba(255,255,255,.28); padding: 2px 12px; }

/* ---------- 我的图鉴按钮（右上角） ---------- */
.nav-collection {
  position: fixed; top: 10px; right: max(10px, calc(50% - 230px)); z-index: 40;
  display: flex; align-items: center; gap: 4px; padding: 8px 12px; white-space: nowrap;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink); font-weight: 800; font-size: 13px;
}
.nav-collection:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.nav-count { background: var(--pink-deep); color: #fff; border-radius: 999px; min-width: 20px; padding: 0 6px; font-size: 12px; text-align: center; }
@media (max-width: 370px) { .nav-collection span { display: none; } }

/* ---------- 隐藏款：黑色剪影 ---------- */
.secret-item { cursor: pointer; }
.doll-img.silhouette { background: radial-gradient(circle at 50% 40%, #5a5170 0%, #241f2e 80%); }
.doll-img.silhouette img { filter: brightness(0) invert(1) opacity(.16); }
.doll-img.silhouette::after { display: none; }
.doll-img .q { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-size: 46px; font-weight: 900;
  color: #f7d774; text-shadow: 0 3px 0 #4a3b32, 0 0 18px rgba(247, 215, 116, .55); animation: twinkle 2.6s ease-in-out infinite; }
.secret-item.is-big { background: linear-gradient(160deg, #fff7d6, #fff); }
.secret-item.is-big b::before { content: "👑 "; }
.secrets .gallery { grid-template-columns: repeat(3, 1fr); }

/* ---------- 图鉴页 ---------- */
.col-head { text-align: center; margin: 4px 0 10px; }
.col-head h1 { font-size: 26px; }
.col-head p { color: var(--ink-soft); font-size: 13px; }
.demo-banner { background: #fff3c4; border: 2px dashed #e0b84a; border-radius: 14px; padding: 8px 12px; font-size: 12px; margin-bottom: 4px; }
.field { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); margin-bottom: 10px; }
.field:focus { outline: 3px solid var(--yellow); }
.auth-pending { background: #fff0f1; border-radius: 12px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; font-weight: 700; color: var(--pink-deep); }
.auth-msg { font-size: 13px; color: #c43d4b; margin: -2px 0 10px; }
.auth-msg.ok { color: #2e8b57; }
.section-sub.left { text-align: left; }
.code-form { display: flex; gap: 8px; }
.code-form .field { margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.code-form .btn { width: auto; flex: none; padding: 0 20px; animation: none; }
.col-progress b { display: block; font-size: 16px; margin-bottom: 6px; }
.col-user { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }
.link-btn { color: var(--pink-deep); font-weight: 700; text-decoration: underline; font-size: 12px; }
.col-grid { margin-top: 16px; }
.col-secret-title { margin-top: 26px; }
.g-item { position: relative; }
.g-item.missing .doll-img img { filter: grayscale(1) opacity(.28); }
.g-item.missing small { color: #b9a999; }
.own-count { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.secret-tag { position: absolute; top: 8px; left: 8px; z-index: 3; background: #241f2e; color: #f7d774; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.secret-found { background: linear-gradient(160deg, #2f2a3a, #4a4458); color: #fff; }
.secret-found small { color: #e7dcff; }
.secret-found.is-big { box-shadow: 0 4px 0 #4a3b32, 0 0 0 3px #f7d774 inset; }

/* ---------- 激活弹窗 ---------- */
.reveal-box { padding-top: 28px; }
.reveal-stage { min-height: 200px; display: grid; place-items: center; margin-bottom: 8px; }
.small-box { transform: scale(.9); }
.reveal-img { width: 210px; border-radius: 28px; border: var(--toon-border); box-shadow: var(--toon-shadow); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.reveal-name { font-weight: 800; font-size: 17px; }
.reveal-fail { font-size: 72px; }
.reveal-box.is-secret { background: radial-gradient(circle at 50% 30%, #4a4458, #1f1b28); color: #fff; }
.reveal-box.is-secret h3 { color: #f7d774; }
.reveal-box.is-secret .modal-tip { color: #e7dcff; }
.reveal-box.is-secret .reveal-img { box-shadow: 0 0 0 4px #f7d774, 0 0 40px rgba(247, 215, 116, .6); }
.reveal-box.is-secret .modal-close { color: #fff; }

/* ============================================================
 *  隐藏款动画
 * ============================================================ */

/* 首页 / 图鉴里的隐藏剪影：流光扫过 + 呼吸光 */
.doll-img.silhouette { isolation: isolate; }
.doll-img.silhouette::before {
  content: ""; position: absolute; inset: -40% -60%; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.secret-item { animation: glow-small 2.8s ease-in-out infinite; }
.secret-item.is-big { animation: glow-big 2.2s ease-in-out infinite; border-color: #c9a227; }
.secret-item.is-big .doll-img.silhouette { background: radial-gradient(circle at 50% 40%, #6b5a2e 0%, #241f2e 80%); }
.secret-item.is-big b::before { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes glow-small { 0%, 100% { box-shadow: 0 4px 0 #4a3b32, 0 0 0 rgba(185,166,255,0); } 50% { box-shadow: 0 4px 0 #4a3b32, 0 0 18px rgba(185,166,255,.75); } }
@keyframes glow-big { 0%, 100% { box-shadow: 0 4px 0 #4a3b32, 0 0 0 rgba(247,215,116,0); } 50% { box-shadow: 0 4px 0 #4a3b32, 0 0 26px rgba(247,215,116,.95); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-3px) rotate(8deg); } }

/* 已收集的隐藏款：镭射光泽 */
.secret-found .doll-img::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(120deg, rgba(255,0,150,.35), rgba(0,200,255,.35), rgba(255,240,0,.35), rgba(255,0,150,.35));
  background-size: 300% 300%; animation: holo 4s linear infinite;
}
@keyframes holo { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* 揭晓弹窗 */
.reveal-box { overflow: hidden; transition: background .4s, color .4s; }
.reveal-stage { position: relative; }

/* 小隐藏悬念：盒子变黑、猛摇 */
.suspense-small .box-body { background: repeating-linear-gradient(90deg, #2b2833 0 18px, #3a3546 18px 36px); }
.suspense-small .box-body span { color: #e7dcff; text-shadow: 0 0 14px #b9a6ff; }
.suspense-small .box-lid { background: #241f2e; }
.suspense-small .box { animation: shake-hard .18s linear infinite; }

/* 大隐藏悬念：全屏变暗，盒子透出金光 */
.suspense-big { background: radial-gradient(circle at 50% 35%, #3a3022, #120f17) !important; color: #fff; }
.suspense-big h3 { color: #f7d774; letter-spacing: 4px; }
.suspense-big .box-body { background: #17141d; box-shadow: 0 0 0 3px #c9a227, 0 0 30px rgba(247,215,116,.8); animation: gold-pulse .5s ease-in-out infinite alternate; }
.suspense-big .box-body span { color: #f7d774; text-shadow: 0 0 18px #f7d774; }
.suspense-big .box-lid { background: #17141d; box-shadow: 0 0 20px rgba(247,215,116,.7); }
.suspense-big .box { animation: shake-hard .12s linear infinite; }
#modal-activate:has(.suspense-big) .modal-mask { background: rgba(0,0,0,.85); }
@keyframes shake-hard { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-4px,1px) rotate(-7deg); } 50% { transform: translate(3px,-2px) rotate(6deg); } 75% { transform: translate(-2px,2px) rotate(-5deg); } 100% { transform: translate(0,0) rotate(0); } }
@keyframes gold-pulse { from { box-shadow: 0 0 0 3px #c9a227, 0 0 18px rgba(247,215,116,.5); } to { box-shadow: 0 0 0 3px #f7d774, 0 0 46px rgba(247,215,116,1); } }

/* 白光一闪 */
.reveal-box.flash::after { content: ""; position: absolute; inset: 0; z-index: 20; background: #fff; pointer-events: none; animation: flash .5s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* 旋转光芒 */
.rays { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; z-index: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(247,215,116,.55) 0 10deg, transparent 10deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 9s linear infinite; }
.rays-small { background: repeating-conic-gradient(rgba(231,220,255,.45) 0 8deg, transparent 8deg 20deg); animation-duration: 12s; }
.reveal-stage .reveal-img { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 大隐藏：皇冠从天而降 */
.crown { position: absolute; z-index: 4; left: 50%; top: -6px; font-size: 52px; transform: translateX(-50%);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); animation: crown-drop .9s cubic-bezier(.3, 1.6, .5, 1) .25s both, crown-bob 2s ease-in-out 1.2s infinite; }
@keyframes crown-drop { from { transform: translate(-50%, -160px) rotate(-30deg); opacity: 0; } to { transform: translate(-50%, 0) rotate(-8deg); opacity: 1; } }
@keyframes crown-bob { 0%, 100% { transform: translate(-50%, 0) rotate(-8deg); } 50% { transform: translate(-50%, -6px) rotate(6deg); } }
.reveal-box.is-big { background: radial-gradient(circle at 50% 30%, #4d3f1e, #17131c); }
.reveal-box.is-big .reveal-img { box-shadow: 0 0 0 4px #f7d774, 0 0 60px rgba(247,215,116,.9); }
.reveal-box.is-big .reveal-name { color: #f7d774; }

/* 标题砸下来 */
.slam { animation: slam .55s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes slam { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 粒子 */
.fx-burst { position: absolute; left: 50%; top: 50%; z-index: 5; width: 10px; height: 10px; margin: -5px; border-radius: 3px;
  font-size: 18px; line-height: 10px; pointer-events: none; animation: burst 1.4s cubic-bezier(.1, .8, .3, 1) both; }
@keyframes burst { from { transform: translate(0,0) rotate(0) scale(.4); opacity: 1; } 80% { opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; } }
.fx-rain { position: absolute; top: -20px; z-index: 6; width: 8px; height: 14px; border-radius: 2px; pointer-events: none; animation: fall linear both; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--sway), 640px) rotate(var(--r)); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  .secret-item, .secret-item.is-big, .doll-img.silhouette::before, .secret-found .doll-img::before,
  .rays, .crown, .slam, .btn-buy, .doll-img .q { animation: none !important; }
}

/* ---------- 注册确认卡 ---------- */
.confirm-card { text-align: center; }
.confirm-icon { font-size: 54px; animation: float 3s ease-in-out infinite; }
.confirm-card h3 { font-size: 20px; margin: 6px 0 8px; }
.confirm-card p { font-size: 14px; }
.confirm-card .btn { margin-top: 10px; }
.btn:disabled { opacity: .55; cursor: default; }

/* ============================================================
 *  平板 / 电脑版
 * ============================================================ */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .secrets .gallery, #col-secret-grid { grid-template-columns: repeat(3, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 960px) {
  .app { max-width: 1120px; }
  .page { padding: 92px 36px 64px; }
  .lang-bar { left: max(16px, calc(50% - 544px)); }
  .nav-collection { right: max(16px, calc(50% - 544px)); padding: 10px 16px; font-size: 14px; }

  /* 首页：左文字右小崽 */
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "text stack" "actions stack";
    column-gap: 40px; align-items: center; text-align: left; padding: 24px 0 10px; }
  .hero-text { grid-area: text; align-self: end; }
  .hero h1 { font-size: 54px; line-height: 1.15; }
  .hero-sub { font-size: 17px; }
  .hero-stack { grid-area: stack; height: 380px; max-width: 480px; width: 100%; margin: 0 auto; }
  .hero-stack .doll-img { width: 190px; height: 190px; }
  .hero-stack .doll-img:nth-child(1) { top: 110px; }
  .hero-stack .doll-img:nth-child(2) { width: 230px; height: 230px; margin-left: -115px; top: 20px; }
  .hero-stack .doll-img:nth-child(3) { top: 130px; }
  .hero-actions { grid-area: actions; align-self: start; display: flex; gap: 14px; align-items: center; margin-top: 24px; }
  .hero-actions .btn { width: auto; padding: 18px 44px; }
  .hero-actions .btn + .btn { margin-top: 0; }

  .section { margin-top: 56px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; margin-bottom: 22px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
  .g-item b { font-size: 15px; }
  .g-item small { font-size: 12px; }
  .buy-strip { max-width: 620px; margin-left: auto; margin-right: auto; padding: 26px 40px; }

  /* 答题：居中，选项左右并排 */
  #page-quiz { max-width: 820px; margin: 0 auto; }
  .quiz-card { padding: 40px 44px 36px; }
  .quiz-q { font-size: 28px; margin: 18px 0 30px; }
  .quiz-options { grid-template-columns: 1fr 1fr; gap: 18px; }
  .opt { font-size: 17px; padding: 22px 20px; min-height: 96px; }
  .opt:hover { transform: translateY(-2px); }

  /* 结果：左边小崽 + 购买（跟着滚动），右边解读 */
  #page-result.active { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; padding-bottom: 64px; }
  .result-left { position: sticky; top: 88px; }
  .result-right > .card:first-child { margin-top: 0; }
  .result-img-wrap { width: 300px; height: 300px; }
  .result-name { font-size: 40px; }
  .result-desc { font-size: 16px; }
  .sticky-buy { display: none; }
  .actions { display: flex; gap: 12px; align-items: center; }
  .actions .btn { width: auto; flex: 1; }
  .actions .btn + .btn { margin-top: 0; }

  /* 图鉴 */
  .col-head h1 { font-size: 36px; }
  .col-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
  .col-top .card { margin-top: 0; }
  .auth-card, .confirm-card { max-width: 460px; margin-left: auto; margin-right: auto; }
  .demo-banner { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }

  .modal-box { max-width: 440px; }
  .toast { bottom: 60px; }
}

/* 小隐藏揭晓：紫银色边框（大隐藏是金色） */
.reveal-box.is-secret:not(.is-big) .reveal-img { box-shadow: 0 0 0 4px #cfc6ff, 0 0 40px rgba(185, 166, 255, .75); }
.reveal-box.is-secret:not(.is-big) h3 { color: #e7dcff; }
.secret-item.is-big b::before { margin-right: 4px; }

@media (min-width: 960px) {
  .gallery, .col-grid { grid-template-columns: repeat(6, 1fr); }
  .secrets .gallery, #col-secret-grid { grid-template-columns: repeat(3, 1fr); }
  .actions .btn { flex: 1 1 auto; white-space: nowrap; padding: 14px 18px; }
}

/* 14 款常规：电脑上一排 7 只，正好两排 */
@media (min-width: 960px) {
  .gallery, .col-grid { grid-template-columns: repeat(7, 1fr); gap: 14px; }
  .secrets .gallery, #col-secret-grid { grid-template-columns: repeat(3, 1fr); }
  .g-item small { font-size: 11px; }
}

/* ============================================================
 *  5 档答题：A ●●●●● B
 * ============================================================ */
.quiz-options { gap: 10px; }
.lik { padding: 6px 0 2px; }
.lik-dots { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.dot { border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; transition: transform .12s, background .15s; flex: none; }
.dot:hover { transform: scale(1.12); }
.dot.d0, .dot.d4 { width: 44px; height: 44px; }
.dot.d1, .dot.d3 { width: 34px; height: 34px; }
.dot.d2 { width: 26px; height: 26px; }
.dot.d0, .dot.d1 { border-color: var(--pink-deep); }
.dot.d3, .dot.d4 { border-color: #6f9ed6; }
.dot.d2 { border-color: #c9b9a6; }
.dot.selected.d0, .dot.selected.d1 { background: var(--pink-deep); }
.dot.selected.d3, .dot.selected.d4 { background: #6f9ed6; }
.dot.selected.d2 { background: #c9b9a6; }
.dot.selected { box-shadow: 0 0 0 4px rgba(247, 215, 116, .6); }
.lik-caps { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 6px; padding: 0 2px; }
.lik-caps span:first-child { color: var(--pink-deep); font-weight: 700; }
.lik-caps span:last-child { color: #6f9ed6; font-weight: 700; text-align: right; }
.lik-opt[data-k="4"] .opt-key { background: #e6effa; color: #4f7fb8; }
.lik-opt[data-k="4"].selected { border-color: #6f9ed6; background: #eef4fc; }
.lik-opt[data-k="4"].selected .opt-key { background: #6f9ed6; color: #fff; }

/* 结果反馈 */
.fb { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); text-align: center; }
.fb-q { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.fb-btns { display: flex; gap: 10px; justify-content: center; }
.fb-btn { padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.fb-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.fb-thanks { font-size: 13px; color: var(--ink-soft); }

@media (min-width: 960px) {
  /* 电脑上也是上下排：A / 圆点 / B，圆点那一行居中 */
  .quiz-options { grid-template-columns: 1fr; gap: 14px; }
  .opt { min-height: 0; }
  .lik { width: 100%; max-width: 460px; margin: 4px auto; }
}

/* ============================================================
 *  碰一碰：展示动画
 * ============================================================ */
body.tap-open { overflow: hidden; }
.tap-page {
  position: fixed; inset: 0; z-index: 38; overflow-y: auto; overflow-x: hidden;
  background: radial-gradient(circle at 50% 35%, #fff 0%, var(--doll-bg, #f6e7d6) 70%);
  display: flex; justify-content: center; text-align: center;
}
.tap-page.is-secret { background: radial-gradient(circle at 50% 35%, #5a5170 0%, #1f1b28 75%); color: #fff; }
.tap-page.is-big { background: radial-gradient(circle at 50% 35%, #6b5a2e 0%, #17131c 75%); }
.tap-inner { position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 76px 22px 40px; }
.tap-close { position: fixed; top: 12px; right: 14px; z-index: 41; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: var(--toon-border); box-shadow: 0 3px 0 #4a3b32; font-size: 26px; line-height: 1; color: var(--ink); }

/* 背景里飘的小东西 */
.tap-floaters span { position: absolute; bottom: -40px; font-size: 22px; opacity: .55; animation: floatUp 9s linear infinite; z-index: 1; }
.tap-floaters span:nth-child(1) { left: 6%;  animation-delay: 0s; }
.tap-floaters span:nth-child(2) { left: 20%; animation-delay: -3s; font-size: 16px; }
.tap-floaters span:nth-child(3) { left: 34%; animation-delay: -6s; }
.tap-floaters span:nth-child(4) { left: 50%; animation-delay: -1.5s; font-size: 28px; }
.tap-floaters span:nth-child(5) { left: 64%; animation-delay: -4.5s; }
.tap-floaters span:nth-child(6) { left: 76%; animation-delay: -7.5s; font-size: 14px; }
.tap-floaters span:nth-child(7) { left: 86%; animation-delay: -2.2s; }
.tap-floaters span:nth-child(8) { left: 94%; animation-delay: -5.2s; font-size: 18px; }
@keyframes floatUp { from { transform: translateY(0) rotate(0); } to { transform: translateY(-115vh) rotate(40deg); } }

.tap-pre { font-weight: 700; font-size: 16px; opacity: .85; }
.tap-stage { position: relative; width: 270px; height: 290px; margin: 18px auto 0; display: grid; place-items: center; }
.tap-stage .rays { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
.tap-doll { position: relative; z-index: 2; width: 230px; height: 230px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.tap-doll img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(60, 40, 30, .25)); pointer-events: none; }
.tap-shadow { position: absolute; bottom: 18px; left: 50%; width: 140px; height: 18px; margin-left: -70px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 40, 30, .3), transparent); z-index: 1; }
.tap-page.is-secret .tap-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }

/* 对话气泡 */
.tap-bubble { position: absolute; z-index: 3; top: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 260px;
  background: #fff; color: var(--ink); border: var(--toon-border); border-radius: 18px; padding: 6px 14px; font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 0 #4a3b32; opacity: 0; }
.tap-bubble::after { content: ""; position: absolute; bottom: -9px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #4a3b32; border-bottom: 0; }

/* 入场：从天而降 → 弹一弹 → 漂浮 */
.tap-page.play .tap-doll { animation: tapDrop .95s cubic-bezier(.3, 1.4, .5, 1) both, tapIdle 3.2s ease-in-out .95s infinite; }
.tap-page.play .tap-shadow { animation: tapShadow .95s cubic-bezier(.3, 1.4, .5, 1) both; }
.tap-page.play .tap-bubble { animation: tapBubble .45s cubic-bezier(.2, 1.6, .4, 1) 1s both; }
.tap-page.play .tap-name { animation: tapUp .5s ease .55s both; }
.tap-page.play .tap-title, .tap-page.play .tap-extra, .tap-page.play .tap-poke { animation: tapUp .5s ease .7s both; }
.tap-page.play .tap-actions { animation: tapUp .5s ease .85s both; }
@keyframes tapDrop {
  0%   { transform: translateY(-120vh) scale(.6) rotate(-14deg); }
  55%  { transform: translateY(0) scale(1.12, .86) rotate(4deg); }
  72%  { transform: translateY(-26px) scale(.95, 1.06) rotate(-3deg); }
  86%  { transform: translateY(0) scale(1.04, .96) rotate(1deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}
@keyframes tapShadow { 0% { transform: scale(.2); opacity: 0; } 55% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes tapIdle { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes tapBubble { from { opacity: 0; transform: translateX(-50%) scale(.3); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes tapUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 戳一戳：压扁再弹回 */
.tap-page.play .tap-doll.poked { animation: tapPoke .5s cubic-bezier(.3, 1.6, .5, 1), tapIdle 3.2s ease-in-out .5s infinite; }
@keyframes tapPoke { 0% { transform: scale(1); } 30% { transform: scale(1.18, .8); } 60% { transform: scale(.92, 1.1); } 100% { transform: scale(1); } }
.tap-bubble.pop { animation: tapBubble .35s cubic-bezier(.2, 1.6, .4, 1) both !important; opacity: 1; }

.tap-poke { font-size: 12px; opacity: .7; margin-top: 2px; }
.tap-name { font-size: 40px; margin-top: 8px; letter-spacing: 1px; }
.tap-title { font-weight: 700; color: var(--pink-deep); }
.tap-page.is-secret .tap-title { color: #e7dcff; }
.tap-page.is-big .tap-title, .tap-page.is-big .tap-name { color: #f7d774; }
.tap-extra { font-weight: 800; margin-top: 6px; min-height: 1em; }
.tap-actions { margin-top: 20px; }
.tap-actions .btn + .btn { margin-top: 10px; }
.tap-page.is-secret .tap-actions .btn-ghost { color: #e7dcff; }
.tap-page .crown { top: 4px; }
.reveal-hint { font-size: 13px; font-weight: 700; margin: -4px 0 12px; }
.reveal-box.is-secret .reveal-hint { color: #f7d774; }
.col-tap-hint { font-size: 12px; color: var(--pink-deep) !important; font-weight: 700; margin-top: 2px; }
.g-item[data-tap-preview] { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .tap-floaters span, .tap-page.play .tap-doll, .tap-page.play .tap-shadow, .tap-page.play .tap-bubble,
  .tap-page.play .tap-name, .tap-page.play .tap-title, .tap-page.play .tap-extra, .tap-page.play .tap-poke, .tap-page.play .tap-actions { animation: none !important; opacity: 1; }
}
/* 展示页打开时：隐藏右上角「我的图鉴」，让关闭按钮能点到（语言切换保留） */
body.tap-open .nav-collection { display: none; }
.tap-page.is-secret .tap-actions .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 6px 0 #c9bfd9; }
.tap-page.is-big .tap-actions .btn-primary { box-shadow: 0 6px 0 #c9a227; }
.tap-page.is-secret .tap-pre { color: #e7dcff; }
