/* 全域樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    background-color: #1a2332;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 感測器容器 - 並排顯示 */
.sensors-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 單個感測器卡片 */
.sensor-card {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 2px solid #2d3a4f;
    border-radius: 16px;
    background-color: rgba(26, 35, 50, 0.8);
}

/* 感測器標題 */
.sensor-header {
    font-size: 24px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d3a4f;
}

/* 上排：溫度和濕度 */
.top-row {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.metric-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 圖標樣式 */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon.thermometer svg {
    width: 40px;
    height: 70px;
}

.icon.thermometer .thermometer-img {
    width: 50px;
    height: 70px;
    object-fit: contain;
}

.icon.droplet svg {
    width: 50px;
    height: 70px;
}

/* 數值樣式 */
.value {
    display: flex;
    align-items: baseline;
}

.value .number {
    font-size: 72px;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: -2px;
}

.value .unit {
    font-size: 42px;
    font-weight: 500;
    color: #4ade80;
    margin-left: 2px;
}

.value.green .number,
.value.green .unit {
    color: #4ade80;
}

/* 下排：PM2.5 和 PM10 */
.bottom-row {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.pm-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pm-label {
    font-size: 42px;
    font-weight: 600;
    color: #e0e0e0;
    letter-spacing: 1px;
}

.pm-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smiley-icon svg {
    width: 48px;
    height: 48px;
}

.status-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-text .chinese {
    font-size: 36px;
    font-weight: 600;
    color: #4ade80;
    line-height: 1.1;
}

.status-text .english {
    font-size: 18px;
    font-weight: 500;
    color: #4ade80;
    line-height: 1.2;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        gap: 20px;
    }

    .top-row {
        flex-direction: column;
        gap: 30px;
    }

    .bottom-row {
        flex-direction: column;
        gap: 20px;
    }

    .value .number {
        font-size: 48px;
    }

    .value .unit {
        font-size: 28px;
    }

    .pm-label {
        font-size: 28px;
    }

    .status-text .chinese {
        font-size: 24px;
    }

    .status-text .english {
        font-size: 14px;
    }
}