﻿@charset "utf-8";

a.link_text{
  width: auto;
  height: 40px;
  line-height: 40px;
  border-radius: 20px;
  background-color: #f60;
  background-image: url(images/back.png);
  background-position: top ceter;
  background-size: cover;
  color:#000;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  font-weight:bold;
}
a.link_text:hover{
  background-color: #333;
}
#search{
  padding:5px;
  display: grid;
  grid-template-columns: auto 40px;
  border-radius: 30px;
  height: 40px;
  line-height: 40px;
  overflow: hidden;
  background-color: #222;
}
#scan{
  width:40px;
  background-size:30px auto;
  background-image: url("scan.png");
  background-position: center;
  background-repeat: no-repeat;
}
#qd_sn{
  display: block;
  width: 100%;
  height: auto;
  outline: none;
  border: none;
  background-color: transparent;
  color:#fff;
}
#tips{
  display: block;
  padding: 10px;
  width: auto;
  height: auto;
  overflow:hidden;
  color:#f00;
}
#state{
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 100px;
}
#state *{
  max-width: 100%;
  height: auto;
}
#tb{
  display: grid;
  grid-template-columns:calc(25% - 60px/4) calc(25% - 60px/4) calc(25% - 60px/4) calc(25% - 60px/4);
  row-gap:20px;
  column-gap:20px;
}
@media (max-width:480px){
  #tb{
    display: grid;
    grid-template-columns:calc(50% - 10px/2) calc(50% - 10px/2);
    row-gap:10px;
    column-gap:10px;
  }
}
a.tb_tb{
  display: block;
  width:auto;
  height:auto;
  overflow: hidden;
}
.tb_pic{
  position:relative;
  padding-bottom: 100%;
  width: auto;
  height: auto;
  overflow: hidden;
  display: block;
  margin:auto;
}
.tb_name{
  display: block;
  margin-top:10px;
  text-align: center;
}