* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background: linear-gradient(180deg, #fff0f6 0%, #ffe4ec 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景浮动爱心动画 */
.bg-float-heart{
    position: fixed;
    width: 100vw;
    height: 100vh;
    top:0;
    left:0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-float-heart span{
    position: absolute;
    color:#ffb6c1;
    font-size: 26px;
    opacity:0.35;
    animation: floatHeart 8s infinite ease-in-out;
}
.bg-float-heart span:nth-child(1){left:8%;top:15%;animation-delay:0s;}
.bg-float-heart span:nth-child(2){left:85%;top:30%;animation-delay:1.2s;}
.bg-float-heart span:nth-child(3){left:15%;top:65%;animation-delay:2.4s;}
.bg-float-heart span:nth-child(4){left:78%;top:72%;animation-delay:3.6s;}
.bg-float-heart span:nth-child(5){left:45%;top:8%;animation-delay:4.8s;}

@keyframes floatHeart{
    0%{transform: translateY(0px) rotate(0deg);}
    50%{transform: translateY(-30px) rotate(8deg);}
    100%{transform: translateY(0px) rotate(0deg);}
}

/* 头部标题 */
.header-wrap{
    position: relative;
    z-index: 2;
}
.main-title{
    font-size: clamp(1.8rem,6vw,2.5rem);
    color:#e94e88;
    font-weight: bold;
    letter-spacing:2px;
}
.sub-desc{
    color:#f088b0;
    margin-top:8px;
    font-size:15px;
}
.tip-bar{
    width: 160px;
    margin:12px auto 0;
    background:#ffd6e4;
    border-radius:30px;
    padding:4px 12px;
    font-size:14px;
    color:#d14b7e;
}

/* 大盒外层容器，居中展示 */
.big-box-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    position: relative;
    z-index:2;
}

/* 主浅蓝色大礼盒，对应你截图的样式 */
.big-box {
    width: 340px;
    height: 260px;
    background: linear-gradient(145deg, #dff4ff, #b8e5ff);
    border: 4px solid #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow:
    0 4px 12px rgba(80,160,220,0.22),
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 0 12px rgba(255,255,255,0.6);
    position: relative;
}
/* 礼盒顶部蝴蝶结 */
.box-bow{
    position:absolute;
    top:-30px;
    left:50%;
    transform:translateX(-50%);
    font-size:34px;
    filter: drop-shadow(0 2px 4px #ff88aa);
    z-index: 3;
}

/* ========== 重点修复：2行 × 3列网格布局 123 / 456 ========== */
.small-box-wrap {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 14px;
}

/* 单个盲盒 立体+拆盒动效 */
.small-box {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 -3px 6px #ffffff;
    transition: all 0.22s ease;
    overflow: hidden;
    position:relative;
}
/* 点击掀开盲盒下压动画 */
.small-box:active {
    transform: scale(0.94) translateY(3px);
    box-shadow:0 1px 3px #00000018;
}
.small-box:hover {
    box-shadow: 0 5px 14px rgba(255, 105, 180, 0.28);
    transform: translateY(-2px);
}

/* 已经拆开的盲盒样式 */
.small-box.open {
    background: linear-gradient(135deg,#f1f1f1,#e4e4e4);
    opacity: 0.72;
    cursor: not-allowed;
    transform: scale(0.97);
    box-shadow:none;
}

/* 序号 */
.box-num {
    font-weight: bold;
    color: #f06c9b;
    font-size: 20px;
    margin-bottom: 4px;
}
.open .box-num {
    color: #888888;
}

/* 礼物图标 */
.gift-icon{
    font-size: 32px;
    transition: transform 0.2s;
}
.small-box:hover .gift-icon{
    transform: scale(1.15) rotate(6deg);
}

/* 已售出文字 */
.sell-text{
    font-size:14px;
    line-height:1.3;
    color:#999;
    font-weight:500;
}

/* 礼花动画画布 */
.fire-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

/* 弹窗通用卡片 固定小尺寸，永远不会全屏 */
.pop-card{
    background:#ffffff;
    border-radius:22px;
    width:100%;
    max-width:340px;
    padding:28px 24px;
    text-align:center;
    box-shadow:0 8px 30px #00000026;
}
.pop-title{
    font-size:22px;
    font-weight:bold;
    color:#e94e88;
    margin-bottom:12px;
}
.pop-tip{
    color:#777;
    margin-bottom:24px;
}
.btn-main{
    width:100%;
    padding:13px;
    border:none;
    border-radius:999px;
    background:linear-gradient(90deg,#f480b4,#ec5e98);
    color:white;
    font-size:17px;
    cursor:pointer;
    transition:0.2s;
}
.btn-main:active{
    transform:scale(0.96);
}
.btn-cancel{
    margin-top:16px;
    border:none;
    background:transparent;
    color:#f088b0;
    font-size:15px;
    cursor:pointer;
}

/* 卡片弹窗 */
.card-img{
    width:100%;
    border-radius:14px;
    margin-bottom:16px;
}
.card-word{
    color:#555;
    line-height:1.7;
    margin-bottom:24px;
    font-size:16px;
}
.report-title{
    font-size:24px;
    font-weight:bold;
    color:#e94e88;
    margin-bottom:20px;
}
.report-text p{
    color:#666;
    line-height:1.8;
    margin-bottom:6px;
}