/* =========================================================
   阿易说 · 茶魂册（你本是一株茶）
   暗底鎏金 / 宣纸肌理 / 克制留白 / 1rem = 100px @750
   ========================================================= */

.ch-body {
    background-color: #120b06;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 9%, rgba(231,194,122,0.55), transparent),
        radial-gradient(1px 1px at 34% 22%, rgba(255,255,255,0.42), transparent),
        radial-gradient(1.5px 1.5px at 62% 14%, rgba(231,194,122,0.48), transparent),
        radial-gradient(1px 1px at 84% 31%, rgba(255,255,255,0.38), transparent),
        radial-gradient(1.5px 1.5px at 22% 58%, rgba(231,194,122,0.35), transparent),
        radial-gradient(1px 1px at 76% 72%, rgba(255,255,255,0.30), transparent),
        radial-gradient(120px 120px at 50% 8%, rgba(231,194,122,0.07), transparent),
        linear-gradient(180deg, #1a0f08 0%, #120b06 55%, #0d0704 100%);
    background-attachment: fixed;
    padding-bottom: 0.3rem;
}

.ch-app { position: relative; min-height: 12rem; padding-top: 1.1rem; }

/* ---------- 视图切换 ---------- */
.ch-view { display: none; -webkit-animation: chFade 0.55s ease both; animation: chFade 0.55s ease both; }
.ch-view.active { display: block; }
@keyframes chFade { from { opacity: 0; transform: translateY(0.18rem); } to { opacity: 1; transform: none; } }

/* ---------- 通用按钮 ---------- */
.ch-btn {
    display: block; box-sizing: border-box; width: 100%;
    font-size: 0.30rem; letter-spacing: 0.06em; text-align: center;
    padding: 0.24rem 0.2rem; border-radius: 0.08rem; cursor: pointer;
    font-family: inherit; -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ch-btn:active { transform: scale(0.975); }
.ch-btn-gold {
    color: #241710; font-weight: bold;
    background: linear-gradient(135deg, #e7c27a 0%, #d9b06a 55%, #c39451 100%);
    box-shadow: 0 0.06rem 0.28rem rgba(217,176,106,0.24), inset 0 1px 0 rgba(255,255,255,0.35);
}
.ch-btn-ghost {
    color: #e7c27a; background: rgba(217,176,106,0.06);
    border: 1px solid rgba(217,176,106,0.45);
}
.ch-btn-ghost:active { background: rgba(217,176,106,0.16); }
.ch-btn.sm { font-size: 0.24rem; padding: 0.18rem 0.1rem; }
.ch-link {
    flex: 1 1 0; text-align: center; font-size: 0.23rem; color: #a8895f;
    background: none; border: none; padding: 0.16rem 0; cursor: pointer;
    font-family: inherit; text-decoration: none;
}
.ch-link:active { color: #e7c27a; }

.ch-disclaimer {
    font-size: 0.20rem; color: #7d6245; text-align: center;
    line-height: 1.6; padding: 0.3rem 0.36rem 0.2rem;
}

/* ---------- 1. 封面 ---------- */
.ch-cover { position: relative; }
.ch-cover-art { position: relative; width: 100%; overflow: hidden; }
.ch-cover-art img { width: 100%; display: block; }
.ch-cover-art::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2rem;
    background: linear-gradient(180deg, rgba(18,11,6,0) 0%, rgba(18,11,6,0.72) 55%, #120b06 100%);
    pointer-events: none;
}
.ch-cover-copy { position: relative; margin-top: -1.05rem; padding: 0 0.6rem; z-index: 2; text-align: center; }
.ch-cover-sub { font-size: 0.22rem; letter-spacing: 0.34em; color: #c9a970; margin-bottom: 0.26rem; }
.ch-cover-line {
    font-size: 0.34rem; color: #f1e0bb; letter-spacing: 0.06em; line-height: 1.7;
    text-shadow: 0 0 0.26rem rgba(231,194,122,0.28);
}
.ch-cover-desc { font-size: 0.24rem; color: #a68a68; line-height: 2; margin: 0.24rem 0 0.44rem; }
.ch-cover-btns { display: flex; flex-direction: column; gap: 0.2rem; padding: 0 0.5rem; }
.ch-progress-mini { font-size: 0.22rem; color: #8a6f52; margin-top: 0.32rem; min-height: 0.3rem; }

/* ---------- 2. 观茶六问 ---------- */
.ch-quiz-top { display: flex; align-items: center; justify-content: space-between; padding: 0.22rem 0.36rem 0.1rem; }
.ch-back {
    font-size: 0.24rem; color: #a8895f; background: none; border: none;
    cursor: pointer; font-family: inherit; padding: 0.06rem 0.1rem;
}
.ch-quiz-count { font-size: 0.22rem; color: #8a6f52; letter-spacing: 0.08em; }

/* 炉火进度 */
.ch-fire { display: flex; justify-content: center; gap: 0.24rem; padding: 0.26rem 0 0.14rem; }
.ch-fire i {
    display: block; width: 0.16rem; height: 0.28rem; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
    background: #3a2a1c; border: 1px solid #57402a; position: relative;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.ch-fire i.on {
    background: linear-gradient(180deg, #f3d68f 0%, #e0a850 55%, #b9712c 100%);
    border-color: #e7c27a; box-shadow: 0 0 0.16rem rgba(231,194,122,0.55);
    -webkit-animation: chFire 1.6s ease-in-out infinite alternate;
    animation: chFire 1.6s ease-in-out infinite alternate;
}
@keyframes chFire { from { transform: scaleY(1) translateY(0); } to { transform: scaleY(1.12) translateY(-0.02rem); } }
.ch-fire.big { padding: 0.18rem 0 0.3rem; }
.ch-fire.big i { width: 0.2rem; height: 0.34rem; }

.ch-quiz-body { padding: 0.4rem 0.5rem 0; }
.ch-quiz-q {
    font-size: 0.40rem; color: #f3e4c0; line-height: 1.8; text-align: center;
    letter-spacing: 0.03em; margin-bottom: 0.6rem; min-height: 1.5rem;
    text-shadow: 0 0 0.3rem rgba(231,194,122,0.18);
}
.ch-quiz-opts { display: flex; flex-direction: column; gap: 0.22rem; }
.ch-opt {
    display: block; width: 100%; box-sizing: border-box; text-align: left;
    font-size: 0.28rem; color: #e6d5b6; line-height: 1.6;
    background: linear-gradient(100deg, rgba(217,176,106,0.09), rgba(217,176,106,0.02));
    border: 1px solid rgba(217,176,106,0.28); border-left: 3px solid rgba(217,176,106,0.55);
    border-radius: 0.08rem; padding: 0.26rem 0.28rem; cursor: pointer;
    font-family: inherit; -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
    -webkit-animation: chOptIn 0.42s ease both; animation: chOptIn 0.42s ease both;
}
.ch-opt:nth-child(1) { animation-delay: 0.04s; }
.ch-opt:nth-child(2) { animation-delay: 0.11s; }
.ch-opt:nth-child(3) { animation-delay: 0.18s; }
.ch-opt:nth-child(4) { animation-delay: 0.25s; }
@keyframes chOptIn { from { opacity: 0; transform: translateX(0.22rem); } to { opacity: 1; transform: none; } }
.ch-opt:active, .ch-opt.picked {
    background: linear-gradient(100deg, rgba(231,194,122,0.24), rgba(231,194,122,0.08));
    border-color: #d9b06a; color: #fff3d6;
}
.ch-opt .ch-opt-idx { color: #c9a970; font-size: 0.24rem; margin-right: 0.18rem; }
.ch-prev {
    display: block; margin: 0.42rem auto 0; font-size: 0.23rem; color: #8a6f52;
    background: none; border: none; cursor: pointer; font-family: inherit; padding: 0.1rem;
}
.ch-prev[disabled] { opacity: 0.3; }

/* ---------- 3. 揭盖动画 ---------- */
.ch-reveal { min-height: 10.5rem; position: relative; text-align: center; padding-top: 2.4rem; }
.ch-lid-wrap { position: relative; width: 3.2rem; height: 3.2rem; margin: 0 auto; }
.ch-lid {
    position: absolute; left: 50%; top: 1.3rem; width: 3.0rem; height: 0.9rem;
    margin-left: -1.5rem; border-radius: 50% 50% 22% 22% / 78% 78% 22% 22%;
    background: linear-gradient(180deg, #6b4a2c 0%, #3a2414 60%, #241408 100%);
    border: 2px solid rgba(231,194,122,0.55);
    box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.6), inset 0 2px 0 rgba(231,194,122,0.25);
    -webkit-animation: chLid 1.9s cubic-bezier(.3,.8,.3,1) forwards;
    animation: chLid 1.9s cubic-bezier(.3,.8,.3,1) forwards;
    z-index: 3;
}
.ch-lid-knob {
    position: absolute; left: 50%; top: -0.24rem; width: 0.42rem; height: 0.28rem;
    margin-left: -0.21rem; border-radius: 50% 50% 30% 30%;
    background: linear-gradient(180deg, #d9b06a, #7a4a28); border: 1px solid #e7c27a;
}
@keyframes chLid {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    55%  { transform: translateY(-1.5rem) rotate(-16deg); opacity: 1; }
    100% { transform: translateY(-2.6rem) rotate(-26deg); opacity: 0; }
}
.ch-smoke { position: absolute; left: 50%; top: 1.5rem; width: 1.6rem; height: 2.2rem; margin-left: -0.8rem; }
.ch-smoke i {
    position: absolute; bottom: 0; width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(243,228,192,0.5), rgba(243,228,192,0));
    filter: blur(6px); opacity: 0;
    -webkit-animation: chSmoke 2.4s ease-out infinite; animation: chSmoke 2.4s ease-out infinite;
}
.ch-smoke i:nth-child(1) { left: 0.1rem; animation-delay: 0.1s; }
.ch-smoke i:nth-child(2) { left: 0.55rem; animation-delay: 0.5s; width: 0.7rem; height: 0.7rem; }
.ch-smoke i:nth-child(3) { left: 0.3rem; animation-delay: 0.9s; }
.ch-smoke i:nth-child(4) { left: 0.8rem; animation-delay: 1.3s; width: 0.4rem; height: 0.4rem; }
.ch-smoke i:nth-child(5) { left: 0.5rem; animation-delay: 1.7s; width: 0.6rem; height: 0.6rem; }
@keyframes chSmoke {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    25%  { opacity: 0.85; }
    100% { transform: translateY(-2.4rem) scale(1.9); opacity: 0; }
}
.ch-reveal-word {
    margin-top: 1.2rem; font-size: 0.28rem; color: #d9b06a; letter-spacing: 0.16em;
    -webkit-animation: chBreath 2s ease-in-out infinite; animation: chBreath 2s ease-in-out infinite;
}
@keyframes chBreath { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- 4. 结果卡 ---------- */
.ch-result { padding: 0.2rem 0.4rem 0; }
.ch-result-card {
    position: relative; background: linear-gradient(180deg, #2a1810 0%, #1c1109 100%);
    border: 1px solid rgba(217,176,106,0.42); border-radius: 0.14rem;
    padding: 0.22rem 0.22rem 0.3rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.5), inset 0 0 0.5rem rgba(231,194,122,0.05);
}
.ch-result-card::before {
    content: ''; position: absolute; inset: 0.08rem; border: 1px solid rgba(217,176,106,0.16);
    border-radius: 0.08rem; pointer-events: none;
}
.ch-result-art { position: relative; overflow: hidden; border-radius: 0.08rem; }
.ch-result-art img { width: 100%; display: block; }
.ch-result-art::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.2rem;
    background: linear-gradient(180deg, rgba(28,17,9,0), #1c1109); pointer-events: none;
}
.ch-result-seal {
    position: absolute; right: 0.22rem; top: 0.22rem; z-index: 2;
    font-size: 0.22rem; color: #241710; font-weight: bold; letter-spacing: 0.1em;
    background: linear-gradient(135deg, #e7c27a, #d9b06a); border-radius: 0.06rem;
    padding: 0.08rem 0.16rem; box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,0.4);
}
.ch-result-seal.hide { display: none; }
.ch-result-name {
    font-size: 0.52rem; color: #f3e4c0; text-align: center; letter-spacing: 0.14em;
    margin: -0.35rem 0 0.08rem; position: relative; z-index: 2;
    text-shadow: 0 0 0.3rem rgba(231,194,122,0.3);
}
.ch-result-sub { font-size: 0.22rem; color: #c9a970; text-align: center; letter-spacing: 0.3em; margin-bottom: 0.34rem; }
.ch-poem {
    font-size: 0.27rem; color: #e8d5b2; line-height: 2.05; text-align: center;
    padding: 0 0.1rem; position: relative; z-index: 2;
    letter-spacing: 0.01em; text-wrap: pretty;
}
.ch-divider { text-align: center; color: rgba(217,176,106,0.6); margin: 0.3rem 0 0.24rem; position: relative; }
.ch-divider::before, .ch-divider::after {
    content: ''; display: inline-block; width: 1.5rem; height: 1px; vertical-align: middle;
    background: linear-gradient(90deg, transparent, rgba(217,176,106,0.5));
}
.ch-divider::after { background: linear-gradient(90deg, rgba(217,176,106,0.5), transparent); }
.ch-divider span { margin: 0 0.2rem; font-size: 0.22rem; }
.ch-info-row {
    display: flex; align-items: flex-start; gap: 0.2rem;
    padding: 0.16rem 0.12rem; border-bottom: 1px solid rgba(217,176,106,0.12);
}
.ch-info-row:last-of-type { border-bottom: none; }
.ch-info-k { flex: 0 0 1.5rem; font-size: 0.22rem; color: #9c7c54; letter-spacing: 0.04em; line-height: 1.8; }
.ch-info-v { flex: 1 1 auto; font-size: 0.24rem; color: #e8d5b2; line-height: 1.8; }
.ch-result-btns { display: flex; gap: 0.18rem; margin-top: 0.3rem; }
.ch-result-btns.three { margin-top: 0.24rem; gap: 0; justify-content: space-between; }

/* ---------- 5. 茶魂册 ---------- */
.ch-book { padding: 0 0.36rem; }
.ch-book-head { position: relative; text-align: center; padding: 0.18rem 0 0; }
.ch-book-head .ch-back { position: absolute; left: 0; top: 0.18rem; }
.ch-book-title { font-size: 0.34rem; color: #f1e0bb; letter-spacing: 0.3em; padding: 0.1rem 0 0.12rem; }
.ch-book-progress { font-size: 0.22rem; color: #a8895f; letter-spacing: 0.08em; }
/* 六格册页纹样：作为册页底纹若隐若现（不抢格子） */
.ch-book { position: relative; }
.ch-book::before {
    content: ''; position: absolute; left: 0; right: 0; top: 1.2rem; height: 8rem;
    background: url('../img/chahun/chahun_grid.jpg') center top / 100% auto no-repeat;
    opacity: 0.13; pointer-events: none; z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0));
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0));
}
.ch-book > * { position: relative; z-index: 1; }
.ch-book-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.22rem;
    margin-top: 0.1rem;
}
.ch-cell {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    border: 1px solid rgba(217,176,106,0.32); border-radius: 0.08rem;
    background: #1c1109; cursor: pointer;
    box-shadow: inset 0 0 0.4rem rgba(0,0,0,0.5);
}
.ch-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 封印态：保留原图的金环问号与茶烟，只轻压暗，不再灰度化、不叠第二层问号 */
.ch-cell.locked img { filter: brightness(0.78) saturate(0.85); }
.ch-cell.locked::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,11,6,0.10), rgba(18,11,6,0.28));
    pointer-events: none;
}
.ch-cell-name {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    font-size: 0.24rem; color: #f3e4c0; letter-spacing: 0.1em; text-align: center;
    padding: 0.3rem 0 0.12rem;
    background: linear-gradient(180deg, transparent, rgba(12,7,4,0.88));
}
.ch-cell.locked .ch-cell-name { color: #7d6245; }
.ch-cell.just-got { -webkit-animation: chGot 1.1s ease both; animation: chGot 1.1s ease both; }
@keyframes chGot {
    0% { box-shadow: 0 0 0 rgba(231,194,122,0); border-color: rgba(217,176,106,0.32); }
    35% { box-shadow: 0 0 0.5rem rgba(231,194,122,0.85); border-color: #e7c27a; }
    100% { box-shadow: 0 0 0 rgba(231,194,122,0); border-color: rgba(217,176,106,0.32); }
}
.ch-master { display: none; text-align: center; padding: 0.4rem 0 0.1rem; }
.ch-master.show { display: block; -webkit-animation: chFade 1s ease both; animation: chFade 1s ease both; }
.ch-master img { width: 3.0rem; margin: 0 auto; border-radius: 50%; }
.ch-master-word { font-size: 0.3rem; color: #e7c27a; letter-spacing: 0.22em; margin-top: 0.2rem; }
.ch-master-sub { font-size: 0.22rem; color: #8a6f52; margin-top: 0.1rem; }
.ch-book-btns { display: flex; gap: 0.18rem; margin-top: 0.4rem; }
.ch-book-btns .ch-btn-ghost { flex: 0 0 2.1rem; width: 2.1rem; font-size: 0.23rem; }

/* ---------- 分享按钮浮标（沿用站点样式则无需额外定义） ---------- */
