/* ============================================================
   东宝产品拼图站 — 固定竖屏大屏样式（1080×1920）
   换算：设计稿 px ÷ 100 = rem（1rem = 100px @1080）
   ============================================================ */

/* |1|全局重置与竖屏适配|global| */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #333;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; border: 0; }

.uc-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: url(../images/bg.png) no-repeat top center;
    background-size: 100% 100%;
}

/* |2|公共头层|header| */
.db-header { position: absolute; left: 0; top: 0; width: 100%; height: 4.2rem; z-index: 5; pointer-events: none; }
.db-logo { position: absolute; left: 0.6rem; top: 0.55rem; }
.db-logo img { width: 2.05rem; height: 0.53rem; }
.db-title { position: absolute; left: 0; top: 1.55rem; width: 100%; padding: 0 0.5rem; }
.db-title img { width: 100%; }

/* |3|屏幕容器|screen| */
.db-screen {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    padding-top: 4.2rem;
}

/* |4|待机|wait| */
.db-wait { padding-bottom: 1.2rem; }
.db-wait-hint { width: 100%; padding: 0 0.5rem; }
.db-wait-hint img { width: 100%; }

.db-carousel { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.wait-swiper { width: 9.2rem; height: 100%; max-height: 6.4rem; }
.swiper-container { position: relative; overflow: hidden; }
.swiper-wrapper { position: relative; height: 100%; }
.wait-swiper .swiper-slide {
    height: 100%; display: flex; align-items: center; justify-content: center;
}
.wait-swiper .swiper-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }

.db-start { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.db-start-text { font-size: 0.66rem; font-weight: 700; color: #2b2b2b; letter-spacing: 0.02rem; }
.db-start-text .db-key { color: #1a9c34; }
.db-mic { width: 1.5rem; cursor: pointer; animation: dbBreath 1.6s ease-in-out infinite; }
.db-mic img { width: 100%; }

/* |5|答题|play| */
.db-play { padding-bottom: 1.2rem; }
.db-play-hint { width: 100%; padding: 0 0.5rem; }
.db-play-hint img { width: 100%; }

.db-grid {
    flex: 1; width: 100%; padding: 0 0.7rem;
    display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
    gap: 0.35rem 0.5rem; align-content: center; min-height: 0;
}
.db-tile { position: relative; overflow: hidden; background: #fff; border-radius: 0.04rem; cursor: pointer; }
.db-tile-inner { position: absolute; inset: 0; overflow: hidden; }
.db-tile-inner img { position: absolute; max-width: none; }
.db-tile.on { box-shadow: 0 0 0 0.06rem #1a9c34 inset; }

.db-mic-play { margin-bottom: 0.4rem; }

/* |6|结果|result| */
.db-result { padding-bottom: 1.4rem; }
.db-result-stage { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.db-result-product { max-width: 9rem; max-height: 9rem; object-fit: contain; }
.db-result-badge { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 10.4rem; }

.db-result-note { width: 100%; padding: 0 0.5rem; }
.db-result-note img { width: 100%; }

/* |7|调试浮层|debug| */
.db-debug {
    position: fixed; left: 0.2rem; bottom: 0.2rem; z-index: 99;
    font-size: 0.22rem; line-height: 1.5; color: #fff; background: rgba(0, 0, 0, 0.6);
    padding: 0.12rem 0.18rem; border-radius: 0.06rem; max-width: 9rem;
}

/* |8|动画|anim| */
@keyframes dbBreath { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.94); } }
