/* ============================================
style.css — базовые настройки, фон, корпус
СВЕТЛАЯ ТЕМА
============================================ */
/* 1. ГЛОБАЛЬНЫЙ СБРОС */
*, *::before, *::after {
box-sizing: border-box;
}
html {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
min-height: 100vh;
font-family: 'Segoe UI', Arial, sans-serif;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background-image: url('../images/bg-factory.jpg');
background-size: cover;
background-position: center;
background-color: #e9ecef;
}
/* 2. ЗАТЕМНЕНИЕ ФОНА (МЕНЬШЕ ЗАТЕМНЕНИЯ ДЛЯ СВЕТЛОЙ ТЕМЫ) */
body::before {
content: "";
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgba(255, 255, 255, 0.5);
z-index: 0;
}
/* 3. АЛЮМИНИЕВЫЙ КОРПУС */
.hmi-container {
position: relative;
z-index: 1;
height: 92vh;
aspect-ratio: 16 / 10;
max-width: 95vw;
overflow: hidden;
background: linear-gradient(135deg, #e8e6df, #d5d0c8);
border-radius: 1.5vh;
box-shadow:
0 4vh 8vh rgba(0,0,0,0.4),
inset 0.2vh 0.2vh 0.5vh rgba(255,255,255,0.9),
inset -0.2vh -0.2vh 0.5vh rgba(0,0,0,0.2);
border: 0.1vh solid #bbb;
padding: 4vh;
display: flex;
}
/* 4. ЧЁРНЫЙ БЕЗЕЛЬ (МЕНЬШЕ КОНТРАСТА) */
.hmi-bezel {
position: relative;
width: 100%; height: 100%;
background-color: #2d2d2d;
border-radius: 0.5vh;
box-shadow: inset 0.2vh 0.2vh 0.5vh rgba(0,0,0,0.6);
padding-top: 5vh;
padding-bottom: 2vh;
padding-left: 2vh;
padding-right: 2vh;
display: flex;
}
/* Надписи на безеле */
.hmi-bezel::before,
.hmi-bezel::after {
position: absolute;
color: #999;
font-size: 2.5vh;
font-weight: bold;
pointer-events: none;
top: 1.5vh;
}
.hmi-bezel::before {
left: 3vh;
}
.hmi-bezel::after {
content: "HMI";
right: 3vh;
}
.hmi-version {
position: absolute;
bottom: 0.8vh;
right: 3vh;
color: #666;
font-size: 1.1vh;
font-weight: bold;
letter-spacing: 0.1vh;
pointer-events: none;
font-family: Arial, sans-serif;
}
/* 5. ЭКРАН */
.hmi-screen {
width: 100%; height: 100%;
background-color: #f8f9fa;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* КЛИКАБЕЛЬНЫЙ ЛОГОТИП */
.logo-btn {
position: absolute;
top: 1.2vh;
left: 2.5vh;
background: none;
border: none;
cursor: pointer;
color: #999;
font-size: 2.5vh;
font-weight: bold;
letter-spacing: 0.05vh;
padding: 0.3vh 0.5vh;
border-radius:0.3vh;
transition: color 0.2s;
z-index: 30;
font-family: Arial, sans-serif;
}
.logo-btn:hover {
color: #bbb;
}
/* КОНТЕЙНЕР СТРАНИЦ */
.nav-pages-container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
}

/* СТИЛИ ДЛЯ КАРТОЧЕК (если нужны) */
.card-overlay {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}
.card-overlay.visible {
opacity: 1;
pointer-events: auto;
}
.project-card {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
z-index: 1001;
max-width: 500px;
width: 90%;
opacity: 0;
pointer-events: none;
transition: all 0.3s;
}
.project-card.visible {
opacity: 1;
pointer-events: auto;
transform: translate(-50%, -50%) scale(1);
}
.project-card-close {
position: absolute;
top: 10px;
right: 10px;
background: #dc3545;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.project-card-close:hover {
background: #c82333;
}
.project-card h3 {
margin: 0 0 1rem 0;
color: #212529;
font-size: 24px;
}
.project-card p {
color: #495057;
line-height: 1.6;
margin: 0;
}

/* === SCADA HTML BAR (Вынесенная шапка мнемосхемы) === */
