body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; max-width: 900px; margin: 0 auto; padding: 30px; background-color: #f8f9fa; color: #333; } .container { background-color: white; border-radius: 10px; padding: 30px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } h1 { text-align: center; color: #2c3e50; margin-bottom: 30px; font-weight: 600; font-size: 28px; } table { width: 100%; border-collapse: collapse; margin: 25px 0; background-color: white; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border-radius: 8px; overflow: hidden; } th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #e9ecef; } th { background-color: #f8f9fa; font-weight: 600; color: #495057; } tr:hover { background-color: #f8f9fa; } .actions { display: flex; gap: 10px; align-items: center; } button { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; transition: all 0.3s; font-size: 14px; font-weight: 500; } .btn-primary { background-color: #4285f4; color: white; } .btn-primary:hover { background-color: #3367d6; } .btn-danger { background-color: #ea4335; color: white; } .btn-danger:hover { background-color: #d33426; } .btn-success { background-color: #34a853; color: white; } .btn-success:hover { background-color: #2d9248; } .header-actions { display: flex; justify-content: space-between; margin-bottom: 20px; } footer { text-align: center; margin-top: 40px; color: #6c757d; font-size: 14px; } /* 模态框样式 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; } .modal-content { background-color: white; border-radius: 8px; width: 400px; padding: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); } .modal-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: #2c3e50; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #495057; } .form-group input { width: 100%; padding: 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } /* 开关样式 */ .switch { position: relative; display: inline-block; width: 50px; height: 26px; } .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: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #34a853; } input:checked + .slider:before { transform: translateX(24px); }