/**
 * 硬件外壳样式
 * 模拟DOPPLER工业检测仪器的3D外观
 */

:root {
    /* 硬件配色 */
    --hardware-orange: #FF6B1A;
    --hardware-black: #2A2A2A;
    --hardware-gray: #3C3C3C;
    --hardware-dark-gray: #1A1A1A;
    --metal-silver: #C0C0C0;
    --screw-color: #808080;
    
    /* 阴影和高光 */
    --shadow-deep: rgba(0, 0, 0, 0.8);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --highlight: rgba(255, 255, 255, 0.2);
}

/* 硬件设备主容器 */
.hardware-device {
    position: relative;
    width: 1400px;
    height: 900px;
    margin: 20px auto;
    background: var(--hardware-black);
    border-radius: 15px;
    box-shadow: 
        0 0 0 8px var(--hardware-orange),
        0 0 0 12px var(--hardware-gray),
        0 20px 60px var(--shadow-deep),
        inset 0 2px 10px var(--shadow-medium);
    overflow: hidden;
}

/* 橙色外框装饰 */
.hardware-device::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--hardware-orange) 0%, #FF8533 50%, var(--hardware-orange) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* 四角螺丝装饰 */
.hardware-screw {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--metal-silver) 30%, var(--screw-color) 70%);
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 4px var(--shadow-medium),
        0 2px 4px var(--shadow-light);
    z-index: 10;
}

.hardware-screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--hardware-dark-gray);
    transform: translate(-50%, -50%);
}

.hardware-screw.top-left {
    top: 20px;
    left: 20px;
}

.hardware-screw.top-right {
    top: 20px;
    right: 20px;
}

.hardware-screw.bottom-left {
    bottom: 20px;
    left: 20px;
}

.hardware-screw.bottom-right {
    bottom: 20px;
    right: 20px;
}

/* 左侧按钮组 */
.left-buttons {
    position: absolute;
    left: 0;
    top: 120px;
    width: 80px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px 10px;
    background: linear-gradient(90deg, var(--hardware-orange) 0%, transparent 100%);
}

.left-button {
    width: 60px;
    height: 70px;
    background: linear-gradient(145deg, var(--hardware-gray) 0%, var(--hardware-black) 100%);
    border: 2px solid var(--hardware-orange);
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 
        0 4px 6px var(--shadow-medium),
        inset 0 1px 2px var(--highlight);
    user-select: none;
}

.left-button:hover {
    background: linear-gradient(145deg, var(--hardware-orange) 0%, #FF8533 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px var(--shadow-medium),
        inset 0 1px 2px var(--highlight);
}

.left-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 4px var(--shadow-medium),
        inset 0 2px 4px var(--shadow-deep);
}

/* 右侧按钮组 */
.right-buttons {
    position: absolute;
    right: 10px;
    top: 250px;
    width: 90px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.right-button {
    width: 80px;
    height: 60px;
    background: linear-gradient(145deg, var(--hardware-orange) 0%, #CC5515 100%);
    border: 3px solid var(--hardware-gray);
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 
        0 4px 8px var(--shadow-deep),
        inset 0 2px 4px var(--highlight);
    text-shadow: 1px 1px 2px var(--shadow-deep);
    user-select: none;
}

.right-button:hover {
    background: linear-gradient(145deg, #FF8533 0%, var(--hardware-orange) 100%);
    transform: scale(1.05);
}

.right-button:active {
    transform: scale(0.95);
    box-shadow: 
        0 2px 4px var(--shadow-medium),
        inset 0 4px 8px var(--shadow-deep);
}

/* 返回按钮（圆形） */
.right-button.back-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 24px;
    background: radial-gradient(circle, var(--hardware-gray) 0%, var(--hardware-dark-gray) 100%);
    border: 4px solid var(--hardware-orange);
}

.right-button.back-button:hover {
    background: radial-gradient(circle, var(--hardware-orange) 0%, #CC5515 100%);
}

/* 底部品牌标识 */
.brand-logo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial Black', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--metal-silver);
    letter-spacing: 4px;
    text-shadow: 
        2px 2px 4px var(--shadow-deep),
        0 0 10px rgba(255, 107, 26, 0.5);
}

/* 顶部装饰条 */
.top-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 40px;
    background: linear-gradient(180deg, var(--hardware-orange) 0%, transparent 100%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 顶部指示灯 */
.indicator-light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    background: radial-gradient(circle, #00FF00 0%, #008800 100%);
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.indicator-light.warning {
    background: radial-gradient(circle, #FFAA00 0%, #CC8800 100%);
    box-shadow: 
        0 0 10px rgba(255, 170, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.indicator-light.danger {
    background: radial-gradient(circle, #FF0000 0%, #CC0000 100%);
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 金属纹理效果 */
.metal-texture {
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%);
    background-size: 10px 10px;
}

/* 响应式调整 */
@media (max-width: 1440px) {
    .hardware-device {
        width: 1200px;
        height: 750px;
    }
}

@media (max-width: 1200px) {
    .hardware-device {
        width: 1000px;
        height: 625px;
        transform: scale(0.9);
    }
}

