.huyingpingmus {
    border: 1px solid #eee;
    padding: 0.75rem;
}

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

.huyingpingmus h2 {
    font-size: 0.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.night .huyingpingmus hr{
        border-bottom: 1px solid #444;
}

.huyingpingmus p {
    font-size: 0.6rem;
    line-height: 1.2rem;
}

.huyingpingmus>div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.huyingpingmus>div button{
     color: #fff !important;
    height: 1.8rem;
    line-height: 1.8rem;
    background-color: #ff7503;
    display: block;
    transition: all 0.5s;
    text-align: center;
    font-size: 0.7rem;
    border-radius: 3px;
    margin-top: 0.25rem;
    border: 0;
    cursor: pointer;
}

.huyingpingmus>div button:nth-child(1){
    background-color: #03A9F4;
}

.huyingpingmus>div button:nth-child(2){
    background-color: #4CAF50;
}

.huyingpingmus>div button:nth-child(3){
    background-color: #FF9800;
}

.huyingpingmus>div button:nth-child(4){
    background-color: #607D8B;
}


.view {
    display: none;
    width: 100%;
    height: 15rem;
    position: relative;
    display: none;
    flex-direction: column;
    border: 1px solid #8BC34A;
    margin-bottom: 0.75rem;
    border-radius: 3px;
    overflow: hidden;
}

.view h3{
       margin-bottom: 0.5rem;
    font-size: 0.6rem;
    padding: 0.3rem 0 0.3rem 0.5rem;
    background-color: #8BC34A;
    color: #fff;
}


.view-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-btn {
        position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    padding: 0.2rem 0.8rem;
    background: rgba(35, 134, 54, 0.8);
    color: #fff;
    border: 1px solid #2ea043;
    border-radius: 8px;
    /* font-size: 14px; */
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* 画布基础样式 */
canvas {
    position: absolute;
    background: transparent;
    touch-action: none;
}

/* 非全屏下：宽度占满父元素，垂直居中，保留上下边框 */
.view:not(.fullscreen-view) canvas {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 全屏下：从左上角开始铺满全屏，取消边框 */
.view.fullscreen-view canvas {
    top: 0;
    left: 0;
    transform: none;
    border: none;
}

.fullscreen-view h3{
    display: none;
}

.fullscreen-view.view{
    border:0;
    display: flex;
}

.status-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    bottom: 0.75rem;
    z-index: 20;
    border: 1px solid #222;
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    pointer-events: none;
}

.stat {
    text-align: center;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat .v {
    color: #58a6ff;
}

.stat .l {
    color: #8a929b;
}

.stat .v.warn {
    color: #f0883e;
}

.stat .v.ok {
    color: #3fb950;
}

.hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4a525c;
    font-size: 0.7rem;
    pointer-events: none;
    z-index: 10;
    text-align: center;
}

.controls {
    position: absolute;
    bottom: 0.75rem;
    width: 9rem;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    text-align: center;
    z-index: 20;
}

.btn {
    padding: 0.25rem 0.5rem;
    background: #238636;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 8px;
}

.btn.secondary {
    background: #21262d;
    border: 1px solid #30363d;
}

@media (max-width:615px) {
    .huyingpingmus>div {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}