.cardlistdiv{
    border: 1px solid #eee;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 3px;
}

.night .cardlistdiv{
    border: 1px solid #444;
}

.cardlist {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cardlist>div {
    border-radius: 3px;
    padding: 0.75rem 0.2rem;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.1s;
}

.night .cardlist>div {
    background-color: #181a1b;
    border: 1px solid #444;
}

.cardlist>div>div:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #54738f;
    margin-bottom: 0.4rem;
}

.night .cardlist>div>div:first-child {
    color: #aaa;
}

.cardlist>div>div:nth-child(2) {
    font-size: 1.4rem;
    line-height: 1.8;
}

/***************************************/

.cardlista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.cardlista>div {
    border-radius: 3px;
    padding: 0.75rem 0.2rem;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.1s;
}

.night .cardlista>div {
    background-color: #181a1b;
    border: 1px solid #444;
}

.cardlista>div>div:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #54738f;
    margin-bottom: 0.4rem;
}

.night .cardlista>div>div:first-child {
    color: #aaa;
}

.cardlista>div>div:nth-child(2) {
    font-size: 1.4rem;
    line-height: 1.8;
}

/***************************************/

.test-area{
    border: 1px solid #eee;
    padding: 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.night .test-area{
    border: 1px solid #444;
}

.canvas-box{
    position:relative; 
    background:#05070a; 
    border-radius:3px; 
    overflow:hidden;
    aspect-ratio:16/3; 
    background-image:
      linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size:30px 30px;
}

#testCanvas {
    display: block;
    width: 100%;
    height: 100%
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    padding: 0.2rem 0.5rem;
    height: 1.8rem;
    background: transparent;
    border: 1px solid #eee;
    border-radius: 3px;
}

.night .speed-control {
    border: 1px solid #444;
}

.speed-control label {
    white-space: nowrap
}

.speed-control input[type=range] {
    flex: 1;
}

.speed-control .speed-val {
    min-width: 1rem;
    text-align: right;
}

.speed-butdiv{
    padding: 0.2rem;
    height: 1.8rem;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 6rem;
    border-radius: 3px;
}

.night .speed-butdiv{
    border: 1px solid #444;
}

.speed-butdiv button {
    border: none;
    cursor: pointer;
    padding: 0.2rem 0rem;
    width: calc(50% - 0.1rem);
    border-radius: 3px;
    transition: .15s;
    background-color: #607D8B;
    color: #fff;
}

.speed-butdiv button:hover{
    background-color: #009688;
    border: 1px solid #009688;
}

.night .speed-butdiv button{
    color: #bbb;
}

.speed-control input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 20px;
}

/* 后面的横条 */
.speed-control input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    background: #607d8b;
    border-radius: 3px;
}

/* 上面的圆点 */
.speed-control input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #05b672;
    margin-top: -5px;
    border: none;
}

/* ========= Firefox 浏览器 ========= */
/* 后面的横条 */
.speed-control input[type=range]::-moz-range-track {
    height: 6px;
    background: #607d8b;
    border-radius: 3px;
}

/* 上面的圆点 */
.speed-control input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #05b672;
    border: none;
}
  
#gradeCard .good {
    color: #4ade80;
}

#gradeCard .warn {
    color: #fbbf24;
}

#gradeCard .bad {
    color: #f87171;
}

#gradeCard .rate {
    color: #7c5cff;
}


/***************************************/

.chart-area {
    background: transparent;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
}

.night .chart-area {
    border: 1px solid #444;
}

.chart-head {
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.night .chart-head {
    border-bottom: 1px solid #444;
}

.chart-box {
    position: relative;
    width: 100%;
    height: 200px;
    border: 1px solid #eee;
    background-color: #607D8B;
    border-radius: 3px;
    overflow: hidden;
}

.night .chart-box {
    background-color: #05070a;
    border: 1px solid #444;
}

#chartCanvas {
    display: block;
    width: 100%;
    height: 100%
}

/***************************************/

.chart-extdiv{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 0.5rem;
    border:1px solid #eee;
    padding: 0.5rem;
}

.night .chart-extdiv{
    border:1px solid #444;
}

.chart-extdiv button{
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #05b672;
    background-color: #05b672;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
}

.chart-extdiv button:nth-child(2){
    border: 1px solid #03A9F4;
    background-color: #03A9F4;
}

.chart-extdiv button:nth-child(3){
    border: 1px solid #795548;
    background-color: #795548;
}

.chart-extdiv button:nth-child(4){
    border: 1px solid #607D8B;
    background-color: #607D8B;
}

@media screen and (max-width: 960px) {
    .cardlist {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 886px) {
    .cardlist {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 650px) {
    .cardlist {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 420px) {

    .cardlista {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .controls {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .speed-control{
        width: 100%;
    }

    .speed-butdiv{
        width: 100%;
    }
}

@media screen and (max-width: 300px) {
    .cardlist {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}