/* =========================================================
   DS412+ / DS415+
   共用外觀
========================================================= */

.synology4-wrapper {

    width: 300px;
    height: 240px;

    transform:
        scale(.32);

    transform-origin:
        center center;

    flex-shrink: 0;
}


.synology-nas {

    width: 300px;
    height: 240px;

    position: relative;

    background: linear-gradient(145deg, #1e1e22, #121214);
    border-radius: 6px;

    padding: 12px 8px 12px 14px;
    box-sizing: border-box;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.7),
        inset 0 1px 1px rgba(255,255,255,0.05);

    display: flex;
    gap: 12px;

    border: 1px solid #28282c;

    font-family: 'Segoe UI', sans-serif;
}

.synology4-wrapper .synology-model {
    position: absolute;

    left: 18px;
    bottom: 7px;

    color: #66666a;

    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 7px;
    font-weight: 600;

    letter-spacing: 0.4px;

    text-shadow:
        0 1px 1px rgba(0,0,0,.9);

    opacity: .85;

    z-index: 20;
    pointer-events: none;
}


/* =========================================================
   硬碟槽
========================================================= */

.synology-nas .drive-bays-zone {

    flex: 1;

    display: flex;

    gap: 6px;

    height: 100%;
}

.synology-nas .v-bay {

    flex: 1;

    height: 205px;

    background: #0e0e10;

    border:
        2px solid #1a1a1d;

    border-radius: 4px;

    position: relative;

    box-shadow:
        inset 0 0 10px
        rgba(0,0,0,.9);

    overflow: hidden;
}

.synology-nas .bay-mesh {

    width: 100%;
    height: 130px;

    background-image:
        radial-gradient(
            #111 20%,
            transparent 20%
        );

    background-size:
        3px 3px;

    opacity: .4;

    margin-top: 10px;
}

.synology-nas .bay-latch {

    width: 16px;
    height: 35px;

    background:
        linear-gradient(
            #2c2c31,
            #1e1e22
        );

    border: 1px solid #111;

    position: absolute;

    bottom: 12px;

    left: 50%;

    transform:
        translateX(-50%);

    border-radius: 2px;

    box-shadow:
        0 2px 4px
        rgba(0,0,0,.5);
}


/* =========================================================
   控制面板
========================================================= */

.synology-nas .right-panel {

    width: 32px;
    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: center;

    background: #161619;

    border-radius: 3px;

    padding: 10px 0;

    box-sizing: border-box;

    border-left: 1px solid #222;
}


/* =========================================================
   LED
========================================================= */

.synology-nas .led-group {

    display: flex;

    flex-direction: column;

    gap: 12px;

    align-items: center;
}

.synology-nas .led-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;
}

.synology-nas .led-item label {

    font-size: 6px;

    color: #777;

    transform: scale(.8);
}

.synology-nas .led {

    width: 4px;
    height: 4px;

    border-radius: 50%;
}

.synology-nas .status-green {

    background: #00e676;

    box-shadow:
        0 0 6px #00e676,
        0 0 2px #fff;
}

.synology-nas .disk-green {

    background: #39ff14;

    box-shadow:
        0 0 5px #39ff14;

    animation:
        synology4-hdd-blink
        1.5s
        infinite
        alternate;
}

/* DISK 1 */
.synology-nas .led-item:nth-child(2) .disk-green {
    animation-delay: 0s;
}

/* DISK 2 */
.synology-nas .led-item:nth-child(3) .disk-green {
    animation-delay: -0.35s;
}

/* DISK 3 */
.synology-nas .led-item:nth-child(4) .disk-green {
    animation-delay: -0.8s;
}

/* DISK 4 */
.synology-nas .led-item:nth-child(5) .disk-green {
    animation-delay: -0.2s;
}

/* =========================================================
   下方
========================================================= */

.synology-nas .panel-bottom {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    width: 100%;
}

.synology-nas .usb-port {

    width: 5px;
    height: 9px;

    background: #111;

    border:
        1px solid #444;

    border-radius: 1px;
}

.synology-nas .power-button {

    width: 10px;
    height: 28px;

    background:
        linear-gradient(
            #303035,
            #222226
        );

    border: 1px solid #111;

    border-radius: 2px;

    display: flex;

    justify-content: center;

    padding-top: 3px;

    box-sizing: border-box;
}

.synology-nas .power-blue-led {

    width: 2px;
    height: 12px;

    background: #00b0ff;

    border-radius: 1px;

    box-shadow:
        0 0 6px #00b0ff,
        0 0 2px #fff;
}


@keyframes synology4-hdd-blink {

    0% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }

    70% {
        opacity: .2;
    }

    100% {
        opacity: 1;
    }

}