@media screen and (max-width: 768px) {
  body {
      background-color: #000000;
  }
/*    主图*/
    .banner {
        width: 100%;
        height: 100%;
    }
    .banner .new2 {
        width: 100%;
        height: 120%;
    }
    .Logo {
        width: 90%;
        margin-left: 5%;
        margin-top: -5%;
    }
    .logo {
        width: 100%;
    }
    .main {
        background-color: #D3D3D3;
        height: 30%;
        width: 90%;
        margin-left: 5%;
        /*添加弧度*/
        border-radius: 10px;
        .main_1 {
            width: 100%;
            height: 10%;
            p {
                width: 90%;
                margin-left: 5%;
                font-size: 28px;
                margin-bottom: 5%;
                color: #0d0d0d;
            }
        }
        .main_2 {
            p {
                width: 90%;
                margin-left: 5%;
                color: #0d0d0d;
            }
        }
    }
    .img {
        margin-top: 8%;
        margin-bottom: 8%;
        img {
            width: 50%;
            margin-left: 25%;
        }
    }
    .scroll-container {
        display: flex;
        overflow-x: auto; /* 允许水平滚动 */
        padding: 10px 0; /* 可选：增加容器上下的间距 */
    }

    .scroll-wrapper1 {
        background-color: #D3D3D3;
        width: 35%;
        margin-left: 3%; /* 让第一个框距离左边 5% */
        margin-right: 5%; /* 其他框之间的间距 */
        border-radius: 10px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
    }

    .scroll-wrapper2, .scroll-wrapper3, .scroll-wrapper4 {
        background-color: #D3D3D3;
        width: 35%;
        margin-right: 5%; /* 设置每个框之间的间隔 */
        border-radius: 10px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
    }

    .scroll-wrapper1 div, .scroll-wrapper2 div, .scroll-wrapper3 div, .scroll-wrapper4 div {
        margin-left: 5%;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    .box1 {
        margin-bottom: 25%;
        margin-top: 50%;
    }
    .data {
        margin-left: 5%;
        margin-top: 10%;
        margin-bottom: 5%;
        width: 90%;
        margin-left: 5%;
         h1 {
             font-size: 28px;
         }
    }
/*    实测数据*/
    /* 外层容器 */
    .indicator-wrapper {
        width: 90%;
        background-color: #e0e0e0;
         margin-left: 5%;
        border-radius: 12px;
    }

    /* 单个指标项 */
    .indicator-item {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #aaa;
    }

    /* 最后一个元素不加下边框 */
    .indicator-item:last-child {
        border-bottom: none;
    }

    /* 图标样式 */
    .indicator-item img {
        width: 42px;
        height: 42px;
        margin-left: 5%;
    }

    /* 文字区域 */
    .indicator-text {
        flex-grow: 1;
        margin-left: 35%;
    }

    /* 标题 */
    .indicator-title {
        font-size: 16px;
        font-weight: bold;
        color: #333;
    }

    /* 实测值颜色 */
    .indicator-value {
        color: #222;
    }

    /* 实测值标注 */
    .indicator-measured {
        color: #000000;
        font-size: 14px;
    }

    /* 标准参考值 */
    .indicator-standard {
        font-size: 14px;
        color: #666;
    }
/*    实验数据*/
    #barChart {
        width: 100%;
        height: 400px;
        margin: 50px auto;

    }
/*    三个按钮样式*/
    /* 按钮容器样式 */
    .btn-container {
        display: flex;
        justify-content: center;
        gap: 10px; /* 按钮之间的间距 */
       margin-top: -10%;
        margin-bottom: 13%;

    }

    /* 通用按钮样式 */
    .chart-btn {
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        color: white;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* 按钮颜色对应柱状图 */
    .chart-btn[data-type="turbidity"] {
        background: linear-gradient(135deg, #5B9BD5, #4682B4); /* 浊度：渐变蓝 */
    }

    .chart-btn[data-type="fluffiness"] {
        background: linear-gradient(135deg, #F8B14C, #D98C20); /* 蓬松度：渐变橙 */
    }

    .chart-btn[data-type="fiber"] {
        background: linear-gradient(135deg, #8BDA85, #5CAC5C); /* 绒子含量：渐变绿 */
    }

    /* 悬停效果 */
    .chart-btn:hover {
        transform: scale(1.1); /* 悬停时放大 */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        opacity: 0.9;
    }

    /* 按钮点击时的效果 */
    .chart-btn:active {
        transform: scale(0.95);
    }
    #pdf-container {
        padding: 12px;
    }

    canvas {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        border-radius: 8px;
    }
    .pdf-container {
        h1 {
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            color: #ffffff;
            padding-bottom: 10px;
        }
    }

}


