/* ============ 下山历练页专属样式 ============ */
.play-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* ---- 鱼币余额条 ---- */
.coin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #fff4e4, #fdeccd);
    border: 1.5px solid #f2d8a8;
    border-radius: 18px;
    padding: 16px 24px;
    margin: 30px 0 22px;
    box-shadow: 0 6px 18px rgba(224, 154, 47, .15);
}
.coin-left { display: flex; align-items: center; gap: 12px; }
.coin-left i { font-style: normal; font-size: 34px; filter: drop-shadow(0 3px 5px rgba(224,154,47,.4)); }
.coin-left b {
    font-size: 32px;
    color: #d98f2f;
    font-family: "ZCOOL KuaiLe", "楷体", 黑体, sans-serif;
    line-height: 1;
    display: block;
}
.coin-left span { font-size: 11px; color: #b39a82; letter-spacing: 1px; }
.coin-right p { margin: 2px 0; font-size: 12px; color: #a4703a; }
.coin-right b { color: #fd7161; }
.coin-next { color: #c9a06a !important; }

/* ---- 堂/阁/坊卡片 ---- */
.hall-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    margin-bottom: 22px;
    overflow: hidden;
}
.hall-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #4a3a28;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hall-card h4::before {
    content: "";
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fd7161, #fdc33f);
}
.hall-desc { margin: 0 0 16px; font-size: 12.5px; color: #b39a82; }

/* ---- 演武堂 ---- */
.game-info {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.game-info span { font-size: 14px; color: #8a7a66; }
.game-info b {
    color: #fd7161;
    font-size: 18px;
    font-family: "ZCOOL KuaiLe", "楷体", 黑体, sans-serif;
}
.game-info .hero-btn { margin-left: auto; padding: 9px 26px; font-size: 14px; }
.ghost-btn {
    border: 1.5px solid #f0dccb;
    background: #fff;
    color: #b39a82;
    font-family: inherit;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
}
.ghost-btn:hover { border-color: #fd7161; color: #fd7161; }
.fish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}
.fish-cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(160deg, #fdf3e7, #f9e7d2);
    border: 1.5px solid #f2ddc2;
    cursor: pointer;
    transition: transform .12s;
    overflow: hidden;
}
.fish-cell::after {
    content: "💨";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: .25;
}
.fish-cell.up::after { content: none; }
.fish-cell.up {
    background:
        url('assets/气运鱼.png') center / 72% no-repeat,
        linear-gradient(160deg, #ffe9d6, #ffd4b8);
    animation: cellPop .18s cubic-bezier(.34, 1.56, .64, 1);
}
.fish-cell.hit { transform: scale(.88); background: linear-gradient(160deg, #ffe2ae, #ffd08a); }
@keyframes cellPop {
    from { transform: scale(.9); }
    to   { transform: scale(1); }
}

/* ---- 云游阁 ---- */
.cloud-tabs { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cloud-tab {
    border: 1.5px solid #f0dccb;
    background: #fdf6f0;
    color: #a4703a;
    font-family: inherit;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .2s;
}
.cloud-tab.active {
    background: linear-gradient(to right, #fd7161, #fdc33f);
    border-color: transparent;
    color: #fff;
}
.cloud-frame {
    width: 100%;
    height: 620px;
    border: 1.5px solid #f0dccb;
    border-radius: 14px;
    background: #fdf6f0;
}

/* ---- 万宝阁 ---- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.shop-item {
    background: #fdf6f0;
    border: 1.5px solid #f2ddc2;
    border-radius: 16px;
    padding: 18px 10px 14px;
    text-align: center;
    transition: transform .25s;
}
.shop-item:hover { transform: translateY(-4px); }
.shop-item i { font-style: normal; font-size: 30px; }
.shop-item b { display: block; font-size: 13px; color: #4a3a28; margin: 8px 0 4px; }
.shop-item span { display: block; font-size: 12px; color: #e09a2f; margin-bottom: 10px; }
.shop-item button {
    border: none;
    background: #eadfce;
    color: #b3a89a;
    font-family: inherit;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: default;
}

/* ---- 传闻入口 ---- */
.rumor-btn {
    display: block;
    margin: 6px auto 22px;
    border: 1.5px dashed #c9bba7;
    background: rgba(255, 255, 255, .6);
    color: #a08a68;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 10px 26px;
    border-radius: 50px;
    cursor: pointer;
    opacity: .75;
    transition: all .25s;
}
.rumor-btn:hover {
    opacity: 1;
    color: #7e5e38;
    border-color: #a08a68;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
}

/* ---- 黑水赌坊 ---- */
.casino-card {
    background: linear-gradient(150deg, #2a1c3f, #1d1430);
    border: 1px solid #4a3a68;
}
.casino-card.hidden { display: none; }
.casino-card.reveal { animation: casinoReveal .55s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes casinoReveal {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.casino-card h4 { color: #d9c8f5; }
.casino-card h4::before { background: linear-gradient(to bottom, #8b5fb8, #c9a0f0); }
.casino-card .hall-desc { color: #8a7aa8; }
.casino-card.locked .dice-panel { filter: blur(6px) grayscale(.6); pointer-events: none; user-select: none; }
.casino-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(20, 12, 34, .55);
    border-radius: 20px;
    text-align: center;
}
.casino-card.locked .casino-veil { display: flex; }
.casino-veil i { font-style: normal; font-size: 40px; opacity: .5; animation: veilFloat 3s ease-in-out infinite; }
@keyframes veilFloat {
    0%, 100% { transform: translateY(0); opacity: .4; }
    50%      { transform: translateY(-8px); opacity: .7; }
}
.casino-veil p { margin: 0; font-size: 16px; color: #b8a5dd; letter-spacing: 3px; }
.casino-veil span { font-size: 12px; color: #6b5a8a; }
.casino-veil b { color: #c9a0f0; }

.dice-panel {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    transition: filter .4s;
}
.dices { display: flex; align-items: center; gap: 12px; }
.dice {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #4a3a28;
    background: linear-gradient(145deg, #fff8ec, #ffedd0);
    border-radius: 14px;
    border: 1.5px solid #e8d5b0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.dice-sum { font-size: 26px; color: #c9a0f0; margin-left: 6px; }
.bet-panel { flex: 1; min-width: 260px; }
.bet-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.bet-amount label { font-size: 13px; color: #8a7aa8; }
.bet-amount input {
    width: 90px;
    border: 1.5px solid #4a3a68;
    background: rgba(255, 255, 255, .08);
    color: #d9c8f5;
    font-family: inherit;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 10px;
    outline: none;
}
.bet-amount input:focus { border-color: #8b5fb8; }
.chip {
    border: 1.5px solid #4a3a68;
    background: rgba(255, 255, 255, .06);
    color: #b8a5dd;
    font-family: inherit;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 50px;
    cursor: pointer;
}
.chip:hover { border-color: #8b5fb8; color: #d9c8f5; }
.bet-choose { display: flex; gap: 12px; }
.bet-big, .bet-small {
    flex: 1;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 2px;
    padding: 12px 0;
    border-radius: 50px;
    transition: transform .15s, filter .15s;
}
.bet-big { background: linear-gradient(to right, #d9534f, #f0856a); }
.bet-small { background: linear-gradient(to right, #4f7fd9, #6ab0f0); }
.bet-big:hover, .bet-small:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bet-result {
    margin: 14px 0 0;
    font-size: 14px;
    color: #8a7aa8;
    min-height: 20px;
}
.bet-result.win { color: #7ee2a0; }
.bet-result.lose { color: #f0856a; }

/* ---- 响应式 ---- */
@media (max-width: 800px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .fish-grid { max-width: 100%; }
    .cloud-frame { height: 480px; }
    .dice-panel { gap: 18px; }
}

/* 赌坊输赢反馈 */
.coin-bar.pulse { animation: coinPulse .6s; }
@keyframes coinPulse {
    30% { transform: scale(1.03); box-shadow: 0 10px 28px rgba(224, 154, 47, .4); }
}
.dice-panel.shake { animation: diceShake .5s; }
@keyframes diceShake {
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* 鱼币图标 */
.coin-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(224, 154, 47, .4));
    animation: coinSpin 6s ease-in-out infinite;
}
@keyframes coinSpin {
    0%, 100% { transform: rotateY(0deg) rotate(-6deg); }
    50%      { transform: rotateY(24deg) rotate(6deg); }
}

/* 云游阁：原生尺寸 iframe 等比缩放 */
.cloud-frame-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1.5px solid #f0dccb;
    border-radius: 14px;
    background: #fdf6f0;
}
.cloud-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 900px;
    border: none;
    transform-origin: 0 0;
    background: #fdf6f0;
}
.cloud-tip { margin: 10px 0 0; font-size: 11.5px; color: #c9a06a; text-align: center; }

/* ============ 垂钓湖 · 钓鱼模拟器 ============ */
.lake-stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 14px; font-size: 13px; color: #8a7f74; }
.lake-stats b { color: #e09a2f; }
.lake-scene { background: linear-gradient(180deg, #e8f4fb, #d7ecf7); border-radius: 16px; padding: 18px 16px 14px; text-align: center; }
.lake-water { position: relative; height: 120px; background: linear-gradient(180deg, #bfe3f5, #8fc7e8); border-radius: 12px; overflow: hidden; box-shadow: inset 0 6px 14px rgba(255, 255, 255, .5); }
.lake-bobber {
    position: absolute;
    left: 45%;
    top: 40px;
    transition: left 1.8s ease-in-out, top 1.8s ease-in-out;
    will-change: left, top;
}
.lake-bobber.floating { animation: bob-float 1.6s ease-in-out infinite; }
@keyframes bob-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.lake-bobber.biting { animation: bob-bite .28s ease-in-out infinite; }
@keyframes bob-bite { 0%, 100% { transform: translateY(4px) rotate(0); } 50% { transform: translateY(10px) rotate(-12deg); } }
.lake-bobber img { display: block; width: 38px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 40, 80, .25)); }
.lake-bobber.biting img { filter: drop-shadow(0 0 6px rgba(224, 75, 58, .95)); }
@keyframes bob-bite { 0%, 100% { transform: translateX(-50%) translateY(6px) rotate(0); } 50% { transform: translateX(-50%) translateY(12px) rotate(14deg); } }
.lake-hint { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: #3d6d8a; background: rgba(255, 255, 255, .75); padding: 3px 10px; border-radius: 12px; }
.lake-status { margin: 12px 0 4px; font-size: 14px; color: #5d564d; min-height: 20px; }
.lake-status.good { color: #3f9d63; font-weight: bold; }
.lake-status.bad { color: #d1553f; font-weight: bold; }
.lake-status.hot { color: #d1553f; font-weight: bold; animation: lake-blink .5s step-end infinite; }
.lake-status.warn { color: #c07f16; font-weight: bold; }
@keyframes lake-blink { 50% { opacity: .4; } }
.reel-bar { margin: 12px auto 4px; max-width: 520px; }
.reel-track { position: relative; height: 26px; background: linear-gradient(90deg, #4a90c9, #79b6de); border-radius: 13px; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); }
.reel-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #ffd76e, #f7b733); box-shadow: 0 0 10px rgba(247, 183, 51, .8); }
.reel-ind { position: absolute; top: -3px; bottom: -3px; width: 6px; margin-left: -3px; background: #fff; border-radius: 3px; box-shadow: 0 0 8px rgba(255, 255, 255, .9); }
.reel-btn { display: block; margin: 12px auto 0; animation: reel-pulse 1s ease-in-out infinite; }
@keyframes reel-pulse { 50% { transform: scale(1.06); } }
.lake-actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.hook-btn { background: linear-gradient(135deg, #e04b3a, #c03426) !important; animation: reel-pulse .5s ease-in-out infinite; }
.bag-box { margin-top: 16px; background: #fff; border-radius: 14px; padding: 12px 14px; }
.bag-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bag-head h5 { font-size: 14px; color: #5d564d; display: flex; gap: 8px; align-items: baseline; }
.bag-head b { color: #e09a2f; }
.bag-tip { font-size: 11px; color: #b3a89a; }
.bag-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.bag-empty { font-size: 13px; color: #b3a89a; align-self: center; }
.bag-item { font-size: 12px; padding: 5px 10px; border-radius: 14px; cursor: pointer; color: #fff; transition: transform .15s; }
.bag-item:hover { transform: scale(1.07); }
.bag-item.c0 { background: #9aa8b5; }
.bag-item.c1 { background: #5b8fd9; }
.bag-item.c2 { background: #9b59b6; }
.bag-item.c3 { background: #e07b2f; }
.bag-item.c4 { background: #d94a5b; }
.bag-item.c5 { background: linear-gradient(135deg, #f0b13d, #e04b3a); box-shadow: 0 0 10px rgba(240, 177, 61, .7); }

/* 鱼获图鉴弹窗 */
.book-bars { margin: 8px 0 12px; }
.book-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #5d564d; margin: 6px 0; }
.book-row b { width: 34px; text-align: right; flex-shrink: 0; }
.book-row span { width: 70px; flex-shrink: 0; color: #b3a89a; }
.book-bar { flex: 1; height: 8px; background: #f3ece3; border-radius: 4px; overflow: hidden; }
.book-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #9aa8b5, #5b8fd9); }
.book-row.c4 .book-bar i { background: linear-gradient(90deg, #d94a5b, #f0b13d); }
.book-row.c5 .book-bar i { background: linear-gradient(90deg, #e04b3a, #f7b733); }
.book-list { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
.book-fish { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5d564d; background: #fdf9f3; border-radius: 10px; padding: 6px 10px; }
.book-fish i { font-style: normal; font-size: 16px; }
.book-fish b { flex: 1; }
.book-fish span { color: #b3a89a; }
.book-fish.c2 i { color: #9b59b6; }
.book-fish.c3 i { color: #e07b2f; }
.book-fish.c4 i { color: #d94a5b; }
.book-fish.c5 i { color: #e04b3a; }
@media (max-width: 800px) {
    .book-list { grid-template-columns: 1fr; }
    .lake-water { height: 100px; }
}

/* ============ 万宝阁 · 拍卖会 ============ */
.shop-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
#shopCountdown { font-size: 13px; color: #8a7f74; background: #fdf6f0; padding: 6px 14px; border-radius: 16px; }
.shop-boosts { font-size: 12px; color: #8a7f74; flex: 1; text-align: right; }
.shop-boosts b { color: #3f9d63; background: #eaf6ee; padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.auc-item { position: relative; background: #fff; border: 2px solid #eee2d3; border-radius: 14px; padding: 26px 12px 14px; text-align: center; transition: transform .2s, border-color .2s; }
.auc-item:hover { transform: translateY(-3px); }
.auc-item.t0 { border-color: #e8dfd2; }
.auc-item.t1 { border-color: #c9a86a; }
.auc-item.t2 { border-color: #e0b13d; box-shadow: 0 0 14px rgba(240, 177, 61, .35); }
.auc-item.off { opacity: .55; }
.auc-tier { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #fff; }
.auc-item.t0 .auc-tier { background: #9aa8b5; }
.auc-item.t1 .auc-tier { background: #c9a86a; }
.auc-item.t2 .auc-tier { background: linear-gradient(135deg, #f0b13d, #e04b3a); }
.auc-item i { font-style: normal; font-size: 30px; display: block; margin-bottom: 6px; }
.auc-item b { display: block; font-size: 14px; color: #5d564d; margin-bottom: 6px; }
.auc-item p { font-size: 11px; color: #b3a89a; min-height: 30px; margin-bottom: 8px; }
.auc-item button { width: 100%; border: none; border-radius: 10px; padding: 7px 0; font-size: 12px; cursor: pointer; background: linear-gradient(135deg, #e09a2f, #d97b2f); color: #fff; }
.auc-item button.poor { background: #c9bba7; }
.auc-item button:disabled { cursor: default; }
.auc-item button.got { background: #3f9d63; }
.auc-item button.sold { background: #b3a89a; }
.shop-inv { margin-top: 12px; }
.shop-inv h5 { font-size: 13px; color: #8a7f74; margin-bottom: 8px; }
.inv-item { border: 1px solid #e8dfd2; background: #fdf9f3; border-radius: 16px; padding: 6px 12px; font-size: 12px; color: #5d564d; cursor: pointer; margin: 0 8px 8px 0; }
.inv-item:hover { background: #fff4e3; }
.shop-msg { font-size: 13px; color: #c07f16; min-height: 18px; margin-top: 8px; }
.shop-msg.good { color: #3f9d63; }
