  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px 10px 0px 10px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            margin-bottom: 25px;
            padding: 15px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            font-size: 26px;
            color: #2c3e50;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .device-management {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .device-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .device-btn {
            background: #4a69bd;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 15px;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .device-btn:hover {
            background: #3c5aa8;
        }
        
        .user-management {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .user-selector {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .user-selector select {
            padding: 8px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
        }
        
        .user-btn {
            background: #4a69bd;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 15px;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .user-btn:hover {
            background: #3c5aa8;
        }
        
        .stats {
            background: linear-gradient(135deg, #6a89cc, #4a69bd);
            color: white;
            border-radius: 15px;
            padding: 10px;
            margin-bottom: 10px;
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        }
        
        .streak {
            font-size: 14px;
            margin-bottom: 5px;
            text-align: center;
        }
        
        .today-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 10px;
        }
        
        .stat-item {
            background-color: rgba(255,255,255,0.2);
            padding: 5px;
            border-radius: 10px;
            text-align: center;
            backdrop-filter: blur(5px);
        }
        
        .stat-value {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 0px;
        }
        
        .stat-label {
            font-size: 14px;
        }
        
        .date-selector {
            background-color: white;
            border-radius: 15px;
            padding: 10px;
            margin-bottom: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .date-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .date-display {
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
        }
        
        .date-btn {
            background: #4a69bd;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 15px;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .date-btn:hover {
            background: #3c5aa8;
        }
        
        .week-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }
        
        .day {
            text-align: center;
            padding: 10px 5px;
            border-radius: 8px;
            background-color: #f8f9fa;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .day.active {
            background-color: #4a69bd;
            color: white;
        }
        
        .day.today {
            border: 2px solid #4a69bd;
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .action-btn {
            flex: 1;
            background: white;
            color: #4a69bd;
            border: 2px solid #4a69bd;
            border-radius: 10px;
            padding: 15px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .action-btn:hover {
            background: #4a69bd;
            color: white;
        }
        
        .study-plan {
            background-color: white;
            border-radius: 15px;
            padding: 10px;
            margin-bottom: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .plan-section {
            margin-bottom: 25px;
        }
        
        .section-title {
            font-size: 18px;
            margin-bottom: 15px;
            color: #2c3e50;
            padding-bottom: 8px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .task {
            display: flex;
            align-items: center;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            background-color: #f8f9fa;
            transition: all 0.3s;
        }
        
        .task:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .task.uncompleted {
            border-left: 5px solid #e74c3c;
            border-bottom: 1px solid #e74c3c;
        }
        
        .task.completed {
            border-left: 5px solid #2ecc71;
            border-bottom: 1px solid #2ecc71;
/*            opacity: 0.8;*/
        }
        
        .task-content {
            flex: 1;
        }
        
        .task-subject {
            font-weight: bold;
            margin-bottom: 5px;
            color: #2c3e50;
        }
        
        .task-details {
            font-size: 14px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .task-time {
            font-size: 12px;
            color: #999;
        }
        
        .task-actions {
            display: flex;
            gap: 10px;
        }
        
        .status-btn {
            border: none;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .complete-btn {
            background: #e74c3c;
            color: white;
        }
        
        .complete-btn.completed {
            background: #2ecc71;
        }
        
        .check-btn {
            background: #e74c3c;
            color: white;
        }
        
        .check-btn.checked {
            background: #27ae60;
        }
        
        .delete-btn {
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .fixed-badge {
            background: #9b59b6;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 8px;
        }
        
        .footer {
            text-align: center;
            margin-top: 30px;
            color: #7f8c8d;
            font-size: 14px;
        }
        
        .design-principle {
            margin-top: 5px;
            font-size: 12px;
        }
        
        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 15px;
            padding: 25px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 20px;
            color: #2c3e50;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #2c3e50;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
        }
        
        textarea {
            height: 80px;
            resize: vertical;
        }
        
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }
        
        .cancel-btn {
            background: #e0e0e0;
            color: #333;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .cancel-btn:hover {
            background: #d0d0d0;
        }
        
        .add-btn {
            background: #4a69bd;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .add-btn:hover {
            background: #3c5aa8;
        }
        
        .fixed-plans-list {
            margin-top: 15px;
        }
        
        .fixed-plan-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .fixed-plan-content {
            flex: 1;
        }
        
        .fixed-plan-actions {
            display: flex;
            gap: 5px;
        }
        
        .student-list {
            margin-top: 15px;
        }
        
        .student-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .student-name {
            flex: 1;
            font-weight: bold;
        }
        
        .student-actions {
            display: flex;
            gap: 5px;
        }
        
        .edit-btn {
            background: #3498db;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .sync-status {
            margin-top: 10px;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            text-align: center;
            display: none;
        }
        
        .sync-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .sync-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        @media (max-width: 600px) {
            .today-stats {
/*                grid-template-columns: 1fr;*/
            }
            
            .week-days {
                grid-template-columns: repeat(7, 1fr);
                gap: 5px;
            }
            
            .day {
                font-size: 12px;
                padding: 8px 3px;
            }
            
            .action-buttons {
/*                flex-direction: column;*/
            }
            
            .task {
                flex-wrap: wrap;
            }
            
            .task-actions {
                width: 100%;
                justify-content: flex-end;
                margin-top: 10px;
            }
            
            .modal-content {
                width: 95%;
                padding: 20px;
            }
            
            .user-management, .device-management {
                flex-direction: column;
                gap: 15px;
                align-items: stretch;
            }
            
            .user-selector, .device-info {
                justify-content: space-between;
            }
        }