body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.miners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.miner-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #4CAF50;
}

.miner-card.offline {
    border-left-color: #f44336;
}

.miner-card.warning {
    border-left-color: #ff9800;
}

.miner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.miner-model {
    font-weight: bold;
    font-size: 18px;
}

.miner-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
}

.status-running {
    background-color: #4CAF50;
}

.status-offline {
    background-color: #f44336;
}

.status-warning {
    background-color: #ff9800;
}

.miner-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.detail-value {
    font-weight: bold;
    font-size: 14px;
}

.control-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #667eea;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #5a6fd8;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.temperature-high {
    color: #f44336;
    font-weight: bold;
}

.temperature-normal {
    color: #4CAF50;
}