.hzin{

}
.hzin input{
    height: 1.8rem;
    line-height: 1.8rem;
    width: calc(100% - 4.5rem);
    float: left;
    border: 1px solid #eee;
    border-radius: 3px;
    padding-left: 0.5rem;
}

.night .hzin input{
    background-color: #181a1b;
    border: 1px solid #444;
    color: #eee;
}

.hzin button{
    width: 4rem;
    height: 1.8rem;
    line-height: 1.8rem;
    border: 0;
    background-color: #2196f3;
    color: #fff;
    float: right;
    border-radius: 3px;
}

.hzin_res{
    min-height: 5rem;
    border: 1px solid #eee;
    margin-top: 0.75rem;
    position: relative;
    border-radius: 3px;
}

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

.hzin_res p{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: #ddd;
}

.hzin_lx{
    min-height: 5rem;
    border: 1px solid #eee;
    margin-top: 0.75rem;
    position: relative;
    border-radius: 3px;
    padding: 1rem 0;
}

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

.hzin_lx p{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: #ddd;
}

#char-display {
    padding: 0.5rem;
}

.char-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(100% / 8);
    float: left;
    padding: 0.75rem 0;
}

.char-canvas {
    width: 5rem;
    height:5rem;
    border: 1px dashed #bdc3c7;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.night .char-canvas{
    background-color: #444;
    border: 1px dashed #555;
}

.char-canvas:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.char-text {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.night .char-text{
    color:#aaa;
}

.char-text-button {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
}

#practice-canvas{
    width: 10rem;
    height: 10rem;
    margin: auto;
    border: 1px dashed #bdc3c7;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
}

.night #practice-canvas{
    background-color: #444;
    border: 1px dashed #555;
}

.hzin_lx_buts{
    text-align: center;
}

.hzin_lx_buts button{
    height: 1.4rem;
    line-height: 1.4rem;
    padding: 0 0.5rem;
    border: 0;
    background-color: #2196f3;
    color: #fff;
    font-size: 0.6rem;
    border-radius: 6px;
}

#prctip{
    text-align: center;
    height: 1.8rem;
    line-height: 1.8rem;
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 1270px){
    .char-item {
        width: calc(100% / 6);
    }
}

@media screen and (max-width: 1046px){
    .char-item {
        width: calc(100% / 4);
    }
}

@media screen and (max-width: 505px){
    .char-item {
        width: calc(100% / 3);
    }
}

@media screen and (max-width: 370px){
    .char-item {
        width: calc(100% / 2);
    }
}