* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    background-image: url(../images/bg-1.png);
    background-size: 100%;
    min-height: 100vh;
    width: 100vw;
    padding-bottom: 20px;
}

.img_box {
    width: 100%;
    text-align: center;
    padding-top: 3vh;
}

.img_box .logo {
    width: 40%;
    margin: 0 auto;
}

.title {
    display: flex;
    justify-content: center;
    letter-spacing: 0.8em;
    color: #fff;
    font-size: 24px;
    margin-bottom: 2vh;
}

.cart_box .cart_item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart_box .cart_item_1 {
    gap: 2%;
    margin-bottom: 1vh;
}

.cart_box .cart_item_1 img {
    width: 32%;
}

.cart_box .cart_item_2 {
    gap: 2%;
}

.cart_box .cart_item_2 img {
    width: 30%;
}

.content_box {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 90%;
    background-color: #eff6ff;
    margin: 0 auto;
    border-radius: 10px;
    margin-top: 2vh;
    padding: 40px 20px;
}

.content_box h3 {
    color: #01112a;
    font-size: 14px;
    font-weight: normal;
}

.content_box .search_box {
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #dbebff;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    padding: 0 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.content_box .search_box input {
    flex: 1;
    height: 42px;
    border: none;
    outline: none;
    background-color: transparent;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.content_box .search_box input::placeholder {
    color: #01112a;
    font-size: 18px;
    font-weight: 600;
}

.content_box .search_box .icon_scan {
    width: 28px;
    height: 28px;
}

.content_box .btn {
    width: 100%;
    height: 48px;
    background-color: #083b76;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 999px;
    text-align: center;
    line-height: 46px;
}

.content_box .tip {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #dd0a0a;
}

.content_box .recommend_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    height: 40px;
    border-radius: 999px;
    border: 2px solid #000;
    color: #000;
    text-align: center;
    margin-top: 40px;
    font-weight: 500;
}

/* 扫码相关样式 */
#scanner-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

#scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scanner-container canvas {
    display: none;
}

.close-scanner {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #000;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    z-index: 1000;
}

.loading {
    color: #666;
    font-style: italic;
}