﻿:root {
    --main-blue: #1b3245;
    --light-blue: #6ee0ff;
    --border-radius: 12px;
    --box-padding: 1.5rem;
    --font-main: 'Microsoft YaHei','Arial', 'PingFang SC', sans-serif;
}

html {
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
        font-family: var(--font-main);
    background: #D9E2F3;
    color: var(--main-blue);
    min-height: 100vh;
    background: url('../images/bg_new.jpg') no-repeat center top / cover;
}

.container {

    max-width: 420px;
    margin: 0 auto;
    /*    background: #D9E2F3;*/
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.8rem;
}

.newLogo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 9px;
}

.newLogo img {
        width: 80px;
}

.section1{

    font-size:1.3rem;
    color:black;
    font-weight:300;
    margin-top:8px;
}
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1.2rem 0.5rem 1.2rem;
    box-sizing: border-box;
}

.logo {
    height: 2.2rem;
}

.bayer {
    height: 2.2rem;
}

.main-box {
    width: 90%;
    background: #fff;
    border: 4px solid var(--light-blue);
    border-radius: 0;
    margin-top: 0.5rem;
    padding: var(--box-padding);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-height: 220px;
}

.tube-img {
    width: 38%;
    min-width: 90px;
    max-width: 120px;
    margin-right: 1.2rem;
    align-self: flex-end;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.main-title-underline {
    width: 60%;
    height: 4px;
    background: var(--light-blue);
    margin: 0.2rem 0 0.7rem 0;
    border-radius: 2px;
}

.b5-logo {
    width: 3.2rem;
    margin-bottom: 0.5rem;
}

.desc {
    font-size: 1rem;
    color: var(--main-blue);
    margin-bottom: 0.2rem;
    line-height: 1.5;
    word-break: break-all;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: black;
    margin: 1rem 0 0.1rem 0;
    text-align: center;
    letter-spacing: 0.8px;
}

.result-box {
    width: 100%;

    min-height: 70px;
    text-align:center;
    border-radius: 0;
    box-sizing: border-box;
    padding: 1.1rem 0rem 1.1rem 0rem;

    color: #16286d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-left: auto;
    margin-right: auto;

    line-height: 1.6;
    font-family: var(--font-main);
}

.result-title {
    font-weight: 700;
    font-size: 1.3rem;
    /*    margin-bottom: 0.2rem;*/
    color: #16286d;
    letter-spacing:0.8px;
    text-align: center;
}

.result-left {
    text-align: left
}

.center {
    text-align: center;
    width: 100%;
}

.blue {
    color: #00b0f0 !important;
}

.main-blue {
    color: #16286d !important;
}

.main-black {
    color: black !important;
}

.result-highlight {
    color: #00b0f0;
    font-weight: 700;
    font-size: 1.35rem;
}

.result-strong {
    font-weight: bold;
    color: #16286d;
}

.result-small {
    font-size: 1.01rem;
    color: #333;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 0.2rem;
}

.result-list {
    margin: 0.2rem 0 0 1.2rem;
    padding: 0;
    color: #333;
    font-size: 1.01rem;
    line-height: 1.6;
}

    .result-list li {
        margin-bottom: 0.1rem;
    }

.btn-scan {
    width: 90%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 10px;
}

.scan-btn {
    width: 100%;
    background: var(--main-blue);
    color: var(--light-blue);
    border: none;
    border-radius: 2rem;
    font-size: 1.2rem;
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .scan-btn img {
        height: 1.5rem;
        margin-left: 0.7rem;
    }

.product-img-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.product-img {
    width: 100%;
    display: block;
}

.main-content-width {
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
}

.logic-section {
    margin-top: 1rem;
}

#logo-section {
    margin-bottom: 1rem;
}

.btm_banner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    overflow: hidden;
    width: 100%;
    position: fixed;
    /* 定位到底部 */
    margin: 0px;
    left: 0;
    bottom: 0;
    max-height: 251px;
    /* 关键：添加底部安全区内边距 */
    padding: 0px;
    border: none;
    margin-bottom:-5px;
    
}

    .btm_banner img {
        width: 100%;
        height: 100%;
        margin-left: auto;
        margin-right: auto;
        margin: 0px;
        left: 0;
        bottom: 0px;
        object-fit: cover;
        /* 关键：添加底部安全区内边距 */
        padding: 0px;
    }

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .container {
        max-width: 100vw;
    }

    .main-box {
        flex-direction: column;
        align-items: center;
    }

    .tube-img {
        margin: 0 0 1rem 0;
        width: 60%;
        max-width: 180px;
    }

   
}

.main-content {
    align-items: center;
}

.main-title {
    font-size: 1.5rem;
}

.mail-href a {
    color: #00b0f0;
    font-size: 1.6rem;
    text-decoration: none;
    font-weight: normal;
}

.main-href a {
    color: #00b0f0;
    font-size: 1.6rem;
    text-decoration: none;
    font-weight:normal;
}


.main-href-decoration a {
    color: #00b0f0;
    text-decoration: #00b0f0 underline;
    font-size: 1.5rem;
}

.main-title-underline {
    width: 80%;
}

.b5-logo {
    width: 2.2rem;
}

.result-box {
    font-size: 0.95rem;
}

#qr-reader {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    margin: 0 !important;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    display: none; /* 只用display:none，JS控制显示时再变为flex */
}

    #qr-reader.show {
        display: flex !important;
    }

    #qr-reader * {
        box-sizing: border-box;
    }

    #qr-reader video, #qr-reader canvas {
        /* width: 100vw !important;
      height: 100vh !important; */
        object-fit: cover;
        display: block;
    }

    #qr-reader #qr-shaded-region {
        border-width: 200px 4px !important;
    }

.result-tips{
   padding-bottom:15px;
}
/**四角边框 */
.corner-box {
    margin-top: 20px;
    position: relative;
    width: 95%;
    min-height: 130px;
    padding: 2px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center; /* 垂直居中 */
}

    /* 生成上下左右四条短实线 */
    .corner-box::before,
    .corner-box::after {
        content: '';
        position: absolute;
        width: 20px; /* 角线长度 */
        height: 20px;
        border: 2px solid #333; /* 实线颜色和粗细 */

    }

    /* 左上角和右下角 */
    .corner-box::before {
        top: 0;
        left: 0;
        border-right: none;
        border-bottom: none;
    }

    .corner-box::after {
        bottom: 0;
        right: 0;
        border-left: none;
        border-top: none;
    }

    /* 右上角和左下角 */
    .corner-box span::before,
    .corner-box span::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid #333;
    }

    .corner-box span::before {
        top: 0;
        right: 0;
        border-left: none;
        border-bottom: none;
    }

    .corner-box span::after {
        bottom: 0;
        left: 0;
        border-right: none;
        border-top: none;
    }

.tips {
    margin-top: 30px;
    border: 2px dashed black;
    width: 95%;
    border-radius:12px;
}

#anticounterfeit-section {
    display: grid;
    place-items: center;
}

