 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        :root {
            --primary: #2d8cff;
            --primary-dark: #1a6fd6;
            --success: #00c853;
            --warning: #ff9800;
            --danger: #f44336;
            --bg-light: #f8fafc;
            --card-bg: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --text-light: #999999;
            --border: #e6e6e6;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            color: var(--text-primary);
            line-height: 1.4;
            padding: 12px;
            min-height: 100vh;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 100%;
            margin: 0 auto;
        }
        
        .header {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 4px solid var(--primary);
        }
        
        .device-id {
            font-size: 16px;
            font-weight: 600;
        }
        
        .device-status {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .status-indicator {
            display: flex;
            align-items: center;
            padding: 4px 10px;
            background-color: rgba(0, 200, 83, 0.1);
            border-radius: 16px;
            font-size: 13px;
            color: var(--success);
        }
        
        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-right: 5px;
        }
        
        .online {
            background-color: var(--success);
        }
        
        .offline {
            background-color: var(--danger);
        }
        
        .info-cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .info-card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 15px;
            box-shadow: var(--shadow);
        }
        
        .card-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        
        .info-item {
            margin-bottom: 10px;
        }
        
        .info-label {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 3px;
        }
        
        .info-value {
            font-size: 13px;
            font-weight: 500;
        }
        
        .signal-strength {
            display: flex;
            align-items: center;
        }
        
        .signal-bars {
            display: flex;
            align-items: flex-end;
            margin-left: 6px;
            gap: 1px;
        }
        
        .signal-bar {
            width: 3px;
            background-color: var(--success);
            border-radius: 1px;
        }
        
        .control-section {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: var(--shadow);
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .liquid-controls {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
        
        .liquid-control {
            background: var(--bg-light);
            border-radius: 10px;
            padding: 12px;
        }
        
        .control-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .control-title {
            font-size: 14px;
            font-weight: 500;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .3s;
            border-radius: 22px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: var(--success);
        }
        
        input:checked + .slider:before {
            transform: translateX(18px);
        }
        
        .control-body {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .time-control {
            display: flex;
            align-items: center;
        }
        
        .time-label {
            font-size: 13px;
            margin-right: 6px;
            color: var(--text-secondary);
        }
        
        .time-input {
            width: 60px;
            padding: 6px 8px;
            border: 1px solid var(--border);
            border-radius: 6px;
            text-align: center;
            font-size: 13px;
        }
        
        .level-status {
            display: flex;
            align-items: center;
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .level-high {
            background-color: rgba(0, 200, 83, 0.1);
            color: var(--success);
        }
        
        .level-low {
            background-color: rgba(244, 67, 54, 0.1);
            color: var(--danger);
        }
        
        .control-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--card-bg);
            padding: 12px 15px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }
        
        .control-button {
            width: 100%;
            padding: 12px;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .control-button:active {
            background-color: var(--primary-dark);
        }
        
        .footer {
            text-align: center;
            font-size: 11px;
            color: var(--text-light);
            padding: 12px;
            margin-bottom: 60px; /* 为底部控制按钮留出空间 */
        }
        
        /* 响应式设计 */
        @media (min-width: 480px) {
            .info-cards {
                grid-template-columns: 1fr 1fr;
            }
        }